ID:174579
 
mob/sifu/verb/talk()
set src in oview(1)
usr.Dojo()

mob/proc/Dojo()
alert("Would you like to join my dojo?",,"Yes","No")
if("Yes")
usr.contents+=/obj/clothes/wgi
else
alert("I'm sorry to hear that and I hope you change your mind.")


When I talk to the sifu I get this error:

runtime error: cannot append to list
proc name: Dojo (/mob/proc/Dojo)
usr: Tokabol (/mob)
src: Tokabol (/mob)
call stack:
Tokabol (/mob): Dojo()
the sifu (/mob/sifu): talk()
You forgot to create an obj to add to usr.contents.



mob/sifu/verb/talk()
set src in oview(1)
usr.Dojo()

mob/proc/Dojo()
alert("Would you like to join my dojo?",,"Yes","No")
if("Yes")
usr.contents+=new/obj/clothes/wgi
else
alert("I'm sorry to hear that and I hope you change your mind.")
</dm>

In response to Jotdaniel
I knew it was something simple like that, thanks.
In response to Tokabol
Dont use usr in procs or things to do with movment, it will stuff up your game when it gets to be multi player.