- Joined
- Aug 15, 2007
- Messages
- 2
In a map that I'm working on, there will be certain locations in which powerups constantly spawn. However, I want to limit the number that will exist in one of these areas at once so they don't form giant item deposits. What I'm trying now is this (sorry if it looks stupid, I'm assuming i just stick it between trigger tags)
-
Ley Line Drops0
-
Events
- Time - Every 5.00 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ItemCount0 Less than 3
-
Then - Actions
- Item - Create ItemType at (Random point in Region 000 <gen>)
- Set ItemCount0 = (ItemCount0 + 1)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Ley Line DropDecrease0
-
Events
- Unit - A unit Acquires an item
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Item being manipulated) is in Region 000 <gen>) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
- (Item-type of (Item being manipulated)) Equal to |c000000FFSoul Dew|r
- (Item-type of (Item being manipulated)) Equal to |c00FF0000Power Dew|r
-
Conditions
-
Then - Actions
- Set ItemCount0 = (ItemCount0 - 1)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events