ID:151170
 
I'm trying to get it so when an enemey dies, or when an object is picked up, it respawns, I looked at an earlier post string on Random Spawnin but the code didn't work! I'm tired of restarting my game every time someone goes and kills all the Wolf men!
Thanks,
Gilser
P.S.
My game is coming along nicely to anyone out there who cares ;)

P.S.S
Welcome back Tom!
My game is coming along nicely to anyone out there who cares ;)

I care about all games, if they are fun ;>


P.S.S
Welcome back Tom!

Isn't that P.P.S ? ;>
On 2/25/01 10:28 pm Gilser wrote:
I'm trying to get it so when an enemey dies, or when an object is picked up, it respawns, I looked at an earlier post string on Random Spawnin but the code didn't work! I'm tired of restarting my game every time someone goes and kills all the Wolf men!


Now as I recall Kaidorin was able to make that code work, so bug him to post it!
In response to Deadron
Now as I recall Kaidorin was able to make that code work, so bug him to post it!

Hey! I haven't done anything like that. The closest thing to that is the spawning of burgers in Sumo.
I'm trying to get it so when an enemey dies, or when an object is picked up, it respawns, I looked at an earlier post string on Random Spawning but the code didn't work!


By your post it doesn't seam like you want random spawning, rather a fixed spawn point and time. Then the only thing you have to do is override the obj/mobs del() proc and make it locate the spawn point and after a certain time create a new obj/mob at that loc. Isn't that correct?

Are you aware of world.Repop()? It repopulates the world with whatever objects you created in the mapper that have been deleted. You could call it periodically like this:

world/New()
spawn
while(1)
sleep(600 * 5) //every 5 minutes
Repop()
return ..()


If you want certain monsters to repop more slowly than others, you would need to delay their deletion. You could do that by sticking them at loc=null, waiting for a while, and then finishing the job of deleting them.

--Dan
In response to Kaidorin
On 2/26/01 10:16 am Kaidorin wrote:
Now as I recall Kaidorin was able to make that code work, so bug him to post it!

OK! POST IT! POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT! This is what comes of boredom!

Ok, you guys know what I want,
Thanks, \
Gilser
In response to Gilser
On 2/27/01 7:44 pm Gilser wrote:
On 2/26/01 10:16 am Kaidorin wrote:
Now as I recall Kaidorin was able to make that code work, so bug him to post it!

OK! POST IT! POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT!POST IT! This is what comes of boredom!

Ok, you guys know what I want,
Thanks, \
Gilser

Dude this was your last post...I think. You still on? We need a better line of communication.

-Josh
In response to PolarBoy
We need a better line of communication.

Try adding each other to your pager friends lists--this will let you know when you're both online.
In response to Guy T.
On 2/27/01 9:33 pm Guy T. wrote:
We need a better line of communication.

Try adding each other to your pager friends lists--this will let you know when you're both online.

Thanks

-PolarBoy
In response to Gilser
Period
In response to Gilser
Period
In response to Gilser
Period
In response to Dan
On 2/27/01 1:12 pm Dan wrote:
Are you aware of world.Repop()? It repopulates the world with whatever objects you created in the mapper that have been deleted. You could call it periodically like this:

world/New()
spawn
while(1)
sleep(600 * 5) //every 5 minutes
Repop()
return ..()

This works great for enemies and stuff, but something like a sword, it doesn't work because the obj is never deleted, it's just put into your inventory. Is there a way to fix this? Because I need weapons to respawn too!
Thanks
Gilser