- Joined
- Aug 3, 2004
- Messages
- 2,891
I'm experimenting with these two triggers to add effects to damaged structures. Currently they work by abusing a disabled spell book with an aura ability. The issue is that the removal trigger only accounts for if the building is targeted when above 50%, not if the repairs start below 50% - so it will stay forever if it is repaired starting under 50%. How can I deal with this? Test map is attached.
-
Untitled Trigger 001
-
Events
- Unit - A unit Is issued an order targeting an object
-
Conditions
- (Issued order) Equal to (Order(repair))
- ((Target unit of issued order) is A structure) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Life of (Target unit of issued order)) Greater than or equal to (((Max life of (Target unit of issued order)) / 100.00) x 50.00)
-
Or - Any (Conditions) are true
-
Conditions
- (Level of Spell Book (Lost Damage Burn Small) for (Target unit of issued order)) Greater than 0
-
Conditions
-
Then - Actions
- Unit - Remove Spell Book (Lost Damage Burn Small) from (Target unit of issued order)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Untitled Trigger 001 Copy
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Triggering unit) is A structure) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Life of (Target unit of issued order)) Less than or equal to (((Max life of (Target unit of issued order)) / 100.00) x 50.00)
- (Level of Spell Book (Lost Damage Burn Small) for (Target unit of issued order)) Equal to 0
-
Then - Actions
- Unit - Add Spell Book (Lost Damage Burn Small) to (Triggering unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events