xoxdragonxox
New Member
- Reaction score
- 1
Trigger:
- SetBomb
- Events
- Conditions
- Actions
- Set FOBomb[2] = (Integer((Substring((Entered chat string), 3, 4))))
- Game - Display to (All players) the text: (Bombs set to: + (String(FOBomb[2])))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- FOBomb[2] Less than or equal to 0
- Then - Actions
- Set FOBomb[2] = 1
- Game - Display to (All players) the text:MIN=1
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- FOBomb[2] Greater than 20
- Then - Actions
- Set FOBomb[2] = 20
- Game - Display to (All players) the text: MAX=20
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
Trigger:
- Prec
- Events
- Conditions
- (Ability being cast) Equal to Drop Bombs
- FOBomb[3] Greater than or equal to FOBomb[2]
- Actions
- Trigger - Turn off SetBombs <gen>
- Set FOBomb[1] = 0
- Set FOBomb[3] = (FOBomb[3] - FOBomb[2])
- Game - Display to (All players) the text: (Bombs remaining: + (String(FOBomb[3])))
- Set Point = (Target point of ability being cast)
- Region - Center Prec on Point
- Custom script: call RemoveLocation(udg_Point)
- Wait 1.00 seconds
- Trigger - Turn on DropBombs <gen>
- Trigger - Turn on Damage <gen>
Trigger:
- DropBombs
- Events
- Time - Every 0.10 seconds of game time
- Conditions
- Actions
- Set Point = (Random point in Prec <gen>)
- Unit - Create 1 Bombs for Player 10 (Light Blue) at Point facing Default building facing degrees
- Custom script: call RemoveLocation(udg_Point)
- Set FOBomb[1] = (FOBomb[1] + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- FOBomb[1] Greater than or equal to FOBomb[2]
- Then - Actions
- Trigger - Turn off (This trigger)
- Trigger - Turn off Damage <gen>
- Trigger - Turn on SetBomb <gen>
- Else - Actions
- If - Conditions
- Events
Trigger:
- Damage
- Events
- Unit - A unit enters (Entire map)
- Conditions
- (Unit-type of (Entering unit)) Equal to Bombs
- Actions
- Unit - Kill (Entering unit)
- Set Points[6] = (Random point in Prec <gen>)
- Unit - Cause (Entering unit) to damage circular area after 0.00 seconds of radius 250.00 at Points[6], dealing 200.00 damage of attack type Normal and damage type Normal
- Custom script: call RemoveLocation(udg_Points[6])
- Events
Everything works fine, but at the end, i find 1 bomb unit on the floor, when it should of been removed. why?