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()
|
In response to Yota
|
|
ok, thanx
|
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. |
In response to Jmurph
|
|
Aight, I'll check it out"
|
In response to Yota
|
|
So is the correct way to put it?
world |
In response to Mecha Destroyer JD
|
|
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. |
In response to Hell Ramen
|
|
...I dont quite get it..I'm tryin to make it where every 5minutes it repopulates..sorry for the inconvenience(s).
|
In response to Mecha Destroyer JD
|
|
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. |
In response to Hell Ramen
|
|
So if I do it like that, it will do it the amount of times is coded it instead of every 5 minutes forever?
|
In response to Mecha Destroyer JD
|
|
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. |
In response to Hell Ramen
|
|
Ok, thanx
|
In response to Hell Ramen
|
|
Couldnt get it to work..I'm gonna have to take out some time and read the Blue Book..
|
In response to Mecha Destroyer JD
|
|
this here works
world change the spawn to whatever you need it to be. |
In response to Zero's Baby
|
|
Ok, thanx I'll try it..
|
In response to Mecha Destroyer JD
|
|
Here's my attempt to help someone. :)
world/proc/Repop_Incriment() I never use while() much, but I hope this is right. =/ |
In response to Mega fart cannon
|
|
what is it checking to see if it's 1 and where does it define it as 1?
|
In response to Zero's Baby
|
|
Zero's Baby wrote:
what is it checking to see if it's 1 and where does it define it as 1? It checks if "1" is not null, and 1 is a number, thus making it not null, which would make the loop go on forever. |