ID:150107
 
Im having a problem with this bit of code below...all the commands with 'usr' in work but not 'src' as you can see it has no problem with the if(istype(src, /mob/)) command

proc
die()
if(istype(src, /mob/obj))
new /mob/obj
usr.pl +=1
usr.str +=0.1
usr.def +=0.1

if(istype(src, /mob/))
if (src.pl <= 0.5)
if(istype(usr, /mob/))
usr.pl += 100
src.loc = locate(1,2,2)
src.pl = 65

These r the Errors that i get...=( please help
World.dm:401:error:src.pl:bad var
World.dm:404:error:src.loc:bad var
World.dm:405:error:src.pl:bad var
You're not declearing die() as a mob proc:

proc
die()

Is a global proc

mob
proc
die()


Is a mob proc, try changing your proc to a mob proc and see if that works.
In response to Nadrew
thats exactly right...thanks alot :D