Im starting off on my map and i cant get tree's to spawn again with a set limit... i have it spawn trees at a random point in Wood Total Area <gen> after 30 seconds
but then no matter what i try i cant get what i want it to do.
I want after a certain amount of time for trees to spawn in Wood Total Area <gen>. 1 for every 1 that has died.
Here are my triggers so far for this...
--
Tree Count
Events
Time - Elapsed game time is 30.00 seconds
Conditions
Actions
For each (Integer A) from 1 to 30, do (Actions)
Loop - Actions
Destructible - Create a TREE!!! at (Random point in Wood Total Area <gen>) facing (Random angle) with scale 1.00 and variation 0
Trigger - Turn on Tree Respawn <gen>
--
Tree Count Dead
Events
Destructible - A destructible within (Entire map) dies
Conditions
Actions
Set DeadTreeCount = (DeadTreeCount + 1.00)
--
Tree Respawn
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to (Integer(DeadTreeCount)), do (Actions)
Loop - Actions
Destructible - Create a TREE!!! at (Random point in Wood Total Area <gen>) facing (Random angle) with scale 1.00 and variation 0
Set DeadTreeCount = (DeadTreeCount - 1.00)
but then no matter what i try i cant get what i want it to do.
I want after a certain amount of time for trees to spawn in Wood Total Area <gen>. 1 for every 1 that has died.
Here are my triggers so far for this...
--
Tree Count
Events
Time - Elapsed game time is 30.00 seconds
Conditions
Actions
For each (Integer A) from 1 to 30, do (Actions)
Loop - Actions
Destructible - Create a TREE!!! at (Random point in Wood Total Area <gen>) facing (Random angle) with scale 1.00 and variation 0
Trigger - Turn on Tree Respawn <gen>
--
Tree Count Dead
Events
Destructible - A destructible within (Entire map) dies
Conditions
Actions
Set DeadTreeCount = (DeadTreeCount + 1.00)
--
Tree Respawn
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to (Integer(DeadTreeCount)), do (Actions)
Loop - Actions
Destructible - Create a TREE!!! at (Random point in Wood Total Area <gen>) facing (Random angle) with scale 1.00 and variation 0
Set DeadTreeCount = (DeadTreeCount - 1.00)