- Joined
- Jun 20, 2017
- Messages
- 380
I have a tower that gains 200 damage every minute it's alive.
A total of 60 stacks.
Based on this I edited my triggers to these, now how can I make it so that it can only stack 60 times?
TD - Random builder option + Tower damage stacking trigger + Tesla tower trigger + Deal damage in AOE with an added effect
A total of 60 stacks.
Based on this I edited my triggers to these, now how can I make it so that it can only stack 60 times?
TD - Random builder option + Tower damage stacking trigger + Tesla tower trigger + Deal damage in AOE with an added effect
-
Tower Build
-
Events
-
Unit - A unit Finishes construction
-
-
Conditions
-
(Unit-type of (Constructed structure)) Equal to Guard Tower
-
-
Actions
-
Unit Group - Add (Constructed structure) to Tower_Group
-
-------- --------
-
Trigger - Turn on Tower Add <gen>
-
-
-
Tower Subtract
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Guard Tower
-
-
Actions
-
Set VariableSet Tower_PN = (Player number of (Owner of (Triggering unit)))
-
Set VariableSet Tower_Count[Tower_PN] = (Tower_Count[Tower_PN] - 1)
-
-------- --------
-
-------- Adjust damage: --------
-
Set VariableSet Tower_Damage = (200 x Tower_Count[Tower_PN])
-
Unit Group - Pick every unit in Tower_Group and do (Actions)
-
Loop - Actions
-
Ability - Set Ability: (Unit: (Picked unit)'s Ability with Ability Code: Item Damage Bonus (+200))'s Integer Level Field: Attack Bonus ('Iatt') of Level: 0 to Tower_Damage
-
Unit - Increase level of Item Damage Bonus (+200) for (Picked unit)
-
Unit - Decrease level of Item Damage Bonus (+200) for (Picked unit)
-
-
-
-
-
Tower Add
-
Events
-
Time - Every 2.00 seconds of game time
-
-
Conditions
-
Actions
-
Set VariableSet Tower_PN = (Player number of (Owner of (Triggering unit)))
-
Set VariableSet Tower_Count[Tower_PN] = (Tower_Count[Tower_PN] + 1)
-
-------- --------
-
-------- Adjust damage: --------
-
Set VariableSet Tower_Damage = (200 x Tower_Count[Tower_PN])
-
Unit Group - Pick every unit in Tower_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is alive) Equal to True
-
-
Then - Actions
-
Ability - Set Ability: (Unit: (Picked unit)'s Ability with Ability Code: Item Damage Bonus (+200))'s Integer Level Field: Attack Bonus ('Iatt') of Level: 0 to Tower_Damage
-
Unit - Increase level of Item Damage Bonus (+200) for (Picked unit)
-
Unit - Decrease level of Item Damage Bonus (+200) for (Picked unit)
-
-
Else - Actions
-
-
-
-
-
Last edited: