i want a mob to be able to learn an attack here is my code:mob/Kai
icon='Kai.dmi'
verb
talk()
set src in oview(2)
switch(input("do you wanna learn kaioken?")in list("yes","no")
if("yes")
alert("usr.verbs+=kaioken")
if("no")
alert("come back again")
here is the error:D.B.S.F.dm:200:error: if: missing comma ',' or right-paren ')'
will someone plz help me?
ID:179755
Nov 12 2001, 1:54 pm
|
|
In response to Air _King
|
|
o thank u
|
In response to Air _King
|
|
what if they wanna learn it would i use usr.verb+=kaioken()?
|
In response to Vegetto5748
|
|
Vegetto5748 wrote:
what if they wanna learn it would i use usr.verb+=kaioken()? yes |
In response to Air _King
|
|
iy says kaioken bad proc
|
In response to Vegetto5748
|
|
Vegetto5748 wrote:
iy says kaioken bad proc did you make the proc? |
In response to Air _King
|
|
Air _King wrote:
Vegetto5748 wrote: Air_King sorry to tell you this but you have no idea what you're doing. Your code should look like this: mob/proc/Kaioken() |
In response to Air _King
|
|
oopsies
|
In response to Nadrew
|
|
Nadrew wrote:
Air _King wrote: yeah, I have no idea what Air_King is doing either, but if your talking about Air _King yeah he wasn't paying close attention I thought he knew that part. |
In response to Nadrew
|
|
> mob You ain't right yourself, bud. There's no "new" involved when adding a verb. =P |
In response to Spuzzum
|
|
Spuzzum wrote:
> > mob You ain't right yourself, bud. There's no "new" involved when adding a verb. =P It still works, I just got used to using new/path from working on my random battle system. |
you need another ) here: in list("yes","no") <<<