ID:268415
 
Is there anyway to make an IF proc that checks if a proc has been called on an src, cause if(src.Die()) doesnt really work
try using vars...
this makes no sence..
don't know the rest of the source, but i guess you should make a var like this:

mob/var/die = 0

and in the Die() proc, put die = 1.

then change the

If(Src.Die())

into

If(src.die == 1)
etc...

if this doesnt work, please send more of the source.. couse i cant really help you if i dont know the rest of it...
In response to ShakerDeath
    hifun
icon = 'NPC.dmi'
name = "Hifun Kai, The Dojo Master"
icon_state = "NPC2"
Click()
alert("Greetings, [usr.name].")
if(usr.rank == "Ninja Student")
if(dojoarena == 1)
alert("I am sorry, but someone is taking the test right now. Come back later.")
else
switch(alert("Do you wish to take your test?",,"Yes","No"))
if("Yes")
alert("Your test will be to defeat 3 of my best students.")
alert("They are strong and fast.. no one has ever beaten them.")
switch(alert("There is no turning back now. Do you still want to take the test?",,"Yes","No"))
if("Yes")
usr.loc = locate(20,9,3)
var/M1 = new /mob/monster/ninja(locate(24,6,3))
var/M2 = new /mob/monster/ninja(locate(24,12,3))
var/M3 = new /mob/monster/ninja(locate(28,9,3))
dojoarena = 1
if(M1:Die(M1,usr) == 1&&M2:Die(M2,usr)&&M3:Die(M3,usr))
usr.loc = locate(6,22,3)
alert("Congratulations, You passed the test.")
alert("Here, Take these Shurikens and this Ninja Suit.")
usr.contents += new /obj/magic/Shuriken/
usr.contents += new /obj/magic/samurai
dojoarena = 0
if(usr.Die(usr,M1)||usr.Die(usr,M2)||usr.Die(usr,M3))
del(M1)
del(M2)
del(M3)
dojoarena = 0
if(usr.Logout())
usr.loc = locate(6,22,3)
usr.logout = 0
del(M1)
del(M2)
del(M3)
dojoarena = 0

if("No")
alert("Come back when your ready, [usr.name].")
if("No")
alert("Come back when your ready, [usr.name].")


The test is supposed to bring you to an arena with 3 ninjas.
The problem is, i want them to delete when your dead or logout, and when you kill em, you teleport back
In response to SSJ4 Compufreak
why not del them in the player's death proc?

if the ninja mobs are in a set area, when the player's death proc is run, use the block() proc to find and del all the mobs in that area...