HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Respawning Doodadz

09-21-2003, 12:13 AM#1
battousaizero
I'm makin an Rpg similar to Open Rpg but I dont know how to make all the trees in the map respawn after being destroyed by hero magic like...force of nature.

in simple terms...how do you make doodads respawn after being destroyed?
09-21-2003, 12:24 AM#2
Zachary_Shadow
Something like this:

forfun
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Destructible - Pick every destructible in (Playable map area) and do (Actions)
Loop - Actions
Destructible - Resurrect (Picked destructible) with (Max life of (Last created destructible)) life and Show birth animation


I heard somewhere, that picking destructible's in whole playable map area, is limited to 65...if that is so, you will need to make regions for clusters of trees. Not sure if it counts for regions though. Try it
09-21-2003, 12:25 AM#3
battousaizero
God bless you, if it worx i'll be sure to give u credit
09-21-2003, 12:50 AM#4
Grater
If all you want is for FoN to respawn trees, but nothing else (ie so peasents can still chop down forests), you can use a custom text trigger I wrote. Basically how it works is it detects when a treant enters the map, saves the location of the treant, then 30 seconds later respawns all the trees in the area.

I've attached a map that includes both the FoN respawn trigger, and the map-wide tree respawn. (ofcourse you should only use one of the triggers!)
09-21-2003, 12:52 AM#5
battousaizero
neat thanx for da map.:D