ID:269107
![]() Mar 9 2005, 1:12 pm
|
|
How would I make the world respawn monsters like every 5 minutes but if there is a unkilled monster, another one wont respawn in its place until it dies?
|
![]() Mar 9 2005, 1:33 pm
|
|
Look up world.Repop()
|
Might I also suggest my Spawner Demo?
http://developer.byond.com/hub/Jmurph/SpawnerExample That way you can control things like how fast they populate, max alive at one time, etc. |
Mecha Destroyer JD wrote:
So is the correct way to put it? > world ...Common sense, lad! world.Repop is a proc, so call it in a proc. ..() can't be outside of a proc either. |
...I dont quite get it..I'm tryin to make it where every 5minutes it repopulates..sorry for the inconvenience(s).
|
Mecha Destroyer JD wrote:
...I dont quite get it..I'm tryin to make it where every 5minutes it repopulates..sorry for the inconvenience(s). I believe something like this would work: world Not sure, I don't really use repop, it's kinda' ghetto. |
So if I do it like that, it will do it the amount of times is coded it instead of every 5 minutes forever?
|
Mecha Destroyer JD wrote:
So if I do it like that, it will do it the amount of times is coded it instead of every 5 minutes forever? It'll do it once every 5 minutes, forever. Or, atleast, should. |
this here works
world change the spawn to whatever you need it to be. |
Here's my attempt to help someone. :)
world/proc/Repop_Incriment() I never use while() much, but I hope this is right. =/ |