ID:263084
 
Code:
mob
NPC
Father
icon = 'person.dmi'
icon_state = "father"
verb
Talk()
set src in oview(1)
if(!fatherdead)
fatherdead=1
usr <<"Your Father:My Son, I feel i must leave you."
sleep(20)
usr <<"[usr]: F-f-father?"
sleep(10)
usr <<"Your Father:You will be man of the house."
sleep(20)
usr <<"[usr]: You dont know what your saying father!"
sleep(10)
usr <<"Your Father: Watch over your mother for me."
sleep(20)
usr <<"[usr]: I will father, I will."
sleep(10)
usr <<"Your Father: I leave you this gold."
sleep(10)
usr <<"You see your father drop some gold onto the floor."
sleep(20)
usr <<"[usr]: Thank you father."
sleep(10)
usr <<"Your Father: Goodbye Son."
sleep(10)
usr <<"You see the light leave your father's eye's."
sleep(20)
usr <<"[usr]: FATHER!!!!"
sleep(10)
usr <<"You cry over your father's life-less body."
Captain_guard()
else return


mob/var/fatherdead

proc
Captain_guard()
for(var/mob/NPC/Captain_guard/M in world)
M.Walk()

mob/proc/Walk()
for(var/x=0,x<2,x++)
step(src,WEST)
sleep(150)
step(src,EAST)
break


Problem description:I know this should work but its not for some reason.why is this not working?

Umm, Could you perhaps explain the problem, like what isn't working then people could maybe help.
In response to Ariku
ahh i forgot about that. Ok when there are more then 1 play in the server if you person talk to mob/NPC/father no one else can talk to him.
In response to National Guardsmen
because your setting the mobs fatherdead to 1 when you should be setting the players.
In response to A.T.H.K
that is my mom tho i have defined mob in the world.
so that should set it if im correct but it dont seem to be working.
In response to National Guardsmen
You don't get what im saying

if(!fatherdead)
fatherdead=1


Your calling that for the Father not on the player

it should be

if(!usr.fatherdead)
usr.fatherdead=1
In response to A.T.H.K
ah i see what you mean now thank you!