ID:160011
 
i want to add some delay to the monsten in the game
Uh. Elaborate?
In response to Mizukouken Ketsu
i need a delay for the monster so when they get kill they will appear again in the time i choose
In response to AntiAnti
You might want to look up on sleep() and spawn().
Consider that you could temporarily set the loc of an atom to null, if you want to recycle mobs, or you could set an event loop that triggers and initialises new mobs.
In response to Schnitzelnagler
it hav to look like this?

mob
proc
DeathCheck()
if(src.HP <= 0)
view() << "[src] was kill!"
src.HP = 30
src.Move(locate(2,10,1))
spawn(100)
usr.str += .25
usr.def += 1

i used it like that but it dont do the delay
In response to AntiAnti
huh, usr is null in procs dude, plus the thing you want to use is sleep() not spawn() there.

spawn() and sleep() are used in a different way.

Ex:

mob
proc
testproc()
src<<"the 3 ticks passed"
verb
SpawnTest()
spawn(30)
//everything here works
//after the x time inside the spawn()
testproc()
//spawn allows the part here to keep going
usr<<"0 ticks"
SleepTest()
usr<<"0 tick"
sleep(30)
//everything here works after 3 seconds
usr.testproc()