- Joined
- Oct 20, 2012
- Messages
- 3,075
Hey Guys, I have a trigger that creates several items in some random regions in my map but my current trigger usually creates more than one item per region and It would be better if it would be one item per region.. The only thing I though about is to remove any item in the region that is similar to what is about to be created every loop.. but that won't work for me because I want to have an exact amount of these items in my map..
Item Spawn
Events
Time - Every 20.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Floor_Item_Aquired Greater than 0
Then - Actions
For each (Integer A) from 1 to Floor_Item_Aquired, do (Actions)
Loop - Actions
Item - Create Floor_Item_Types[(Random integer number between 1 and 5)] at (Center of Creep_Spawn_Points[(Random integer number between 1 and 31)])
Set Floor_Item_Aquired = 0
Else - Actions
Events
Time - Every 20.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Floor_Item_Aquired Greater than 0
Then - Actions
For each (Integer A) from 1 to Floor_Item_Aquired, do (Actions)
Loop - Actions
Item - Create Floor_Item_Types[(Random integer number between 1 and 5)] at (Center of Creep_Spawn_Points[(Random integer number between 1 and 31)])
Set Floor_Item_Aquired = 0
Else - Actions