ID:151199
 
I can figure out what to change so the errors go away.

Code......

obj/verb/proc/
Drop()

if(Move(usr.loc))
usr << "You drop [src]."
else
usr << "You are unable to drop [src]."

mob/Stat()
if(statpanel("Carrying"))
stat(contents)

obj/verb
Wield()
usr << "You wield [src]."
suffix =" (Wielded)"
usr.wielded = src

Remove()
usr << "You remove [src]."
suffix = null
usr.wielded = null

proc
Move_to_ground()
suffix = null
usr.wielded = null

Errors.....

Code.dm:161:error:suffix:bad var
Code.dm:162:error:usr.wielded:bad var
Code.dm:152:error:usr.wielded:bad var
Code.dm:157:error:usr.wielded:bad var

On 2/20/01 6:04 pm Shane wrote:
I can figure out what to change so the errors go away.

Code......

obj/verb/proc/
Drop()

if(Move(usr.loc))
usr << "You drop [src]."
else
usr << "You are unable to drop [src]."

mob/Stat()
if(statpanel("Carrying"))
stat(contents)

obj/verb
Wield()
usr << "You wield [src]."
suffix =" (Wielded)"
usr.wielded = src

Remove()
usr << "You remove [src]."
suffix = null
usr.wielded = null

proc
Move_to_ground()
suffix = null
usr.wielded = null

Errors.....

Code.dm:161:error:suffix:bad var
Code.dm:162:error:usr.wielded:bad var
Code.dm:152:error:usr.wielded:bad var
Code.dm:157:error:usr.wielded:bad var
make sure wielded is a variable for all mobs and make put obj/ in front of the bottem proc so it looks like:

obj/proc
Move_to_ground()
suffix = null
usr.wielded = null
the proc needs to inherit the variables for objects.
In response to Ebonshadow
Im down to 3 errors now...

Code:

obj/Sword
name = "Slasher"
icon = 'Sword.dmi'

verb
Wield()
usr << "You wield [src]."
suffix =" (Wielded)"
usr.wielded = null

Remove()
usr << "You remove [src]."
suffix = null
usr.wielded = null

proc
move_to_ground()
suffix = null
usr.wielded = null

Errors:

Code.dm:144:error:usr.wielded:bad var
Code.dm:149:error:usr.wielded:bad var
Code.dm:154:error:usr.wielded:bad var
In response to Shane
mob/var/obj/wielded

obj/Sword
name = "Slasher"
icon = 'Sword.dmi'

verb
Wield()
usr << "You wield [src]."
suffix =" (Wielded)"
usr.wielded = src

Remove()
usr << "You remove [src]."
suffix = null
usr.wielded = null

proc
move_to_ground()
suffix = null
usr.wielded = null