- Joined
- Dec 4, 2014
- Messages
- 10
Help, pick every item region < 5 then spawn item.(unsolved)
Hello, i would like to;
1. Count every item in a region.
2. If the number of items is less than or equal to 5, spawn an item Region1 random.
My problem is my trigger condition will spawn 5 items, i collect them and it doesn't respawn again when below 5. Not sure if its counting items already picked, for example; like a dead unit that needs subtracted. Im trying to spawn collectible items like rocks,twigs, and berries that respawn when they fall below a certain limit, or reach a certain life over time. Could this system also be done when item picked, wait, create item? Here is what i have so far;
Hello, i would like to;
1. Count every item in a region.
2. If the number of items is less than or equal to 5, spawn an item Region1 random.
My problem is my trigger condition will spawn 5 items, i collect them and it doesn't respawn again when below 5. Not sure if its counting items already picked, for example; like a dead unit that needs subtracted. Im trying to spawn collectible items like rocks,twigs, and berries that respawn when they fall below a certain limit, or reach a certain life over time. Could this system also be done when item picked, wait, create item? Here is what i have so far;
-
itemSpawn
-
Events
-
Time - Every 2.00 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
Item - Pick every item in Region1 <gen> and do (Actions)
-
Loop - Actions
-
Set Integer = (Integer + 1)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Integer Less than or equal to 5
-
-
Then - Actions
-
Item - Create Tome of Experience at (Random point in Region1 <gen>)
-
-
Else - Actions
-
-
-
-
-
Last edited: