Huge_Rat
icon_state="GiantRat"
HP=20
MHP=20
MP=0
MMP=0
STR=5
DEF=4
New()
. = ..()
spawn()
Wander1()
How to make this monster respawn in one minute after it gets dead? Every monster should respawn in one minute after they die.
ID:166366
Aug 14 2006, 11:57 pm (Edited on Aug 15 2006, 2:20 am)
|
|
Huge_Rat How to make this monster respawn in one minute after it gets dead? Every monster should respawn in one minute after they die. |
In response to Bobthehobo
|
|
Or:
Del() Not sure how useful that is, but seems to make sense to me ;) EDIT: Had to modify slightly, should work like that, not tested though so don't take my word for it =) |
In response to Hant Teath
|
|
Why would you create a new mob when you could just forget about Del() and re-use the same mob.
And why all those vars? Just saving loc is fine. |
In response to Hant Teath
|
|
mob/respawned/Del() |
But rather than call del() after the monster dies, simply send it to an unused z level, then have something like this: