Code:
obj
taser
icon='taser.dmi'
name="Taser"
verb
Wield()
usr << "You wield [src]."
suffix =" (Wielded)"
usr.wielded = "scr"
Remove()
usr << "You remove [src]."//line 22
suffix = null
usr.wielded = null
proc
move_to_ground()
suffix = null
usr.wielded = null
Error:
Chicken Hunter.dm:22:error: proc definition not allowed inside another proc
Thanx Shane
ID:151146
Mar 6 2001, 5:59 pm
|
|
Your indentation is wrong. Since Wield is a verb it should be indented after verb. Also the same with Remove. It should be in alignment under verb too. Here's the proper way.