- Joined
- Dec 31, 2014
- Messages
- 68
Hello all,
Again I'm trying to cut down on the amount of triggers in my map to help the memory.
I have multiple triggers for Separate Units that when their Life reaches a certain amount (or lower) they are ordered to move to a specific region , then to destroy it's own trigger.
For example
Is there a way I can combine both of these triggers into 1? I have quite a few of these unit triggers and I don't think it's doing my memory any favors.
Below is what I have tried but it doesn't work as the game doesn't know to stop one of its IF/THEN/ELSE actions (and I don't know how to tell it to).
Thanks
Again I'm trying to cut down on the amount of triggers in my map to help the memory.
I have multiple triggers for Separate Units that when their Life reaches a certain amount (or lower) they are ordered to move to a specific region , then to destroy it's own trigger.
For example
-
Enemy1 800hp
-
Events
-
Unit - Enemy1 0566 <gen>'s life becomes Less than or equal to 800.00
-
-
Conditions
-
Actions
-
Set miscpoint = (Center of Region1 <gen>)
-
Unit - Order Enemy1 0566 <gen> to Move To miscpoint
-
Custom script: call RemoveLocation(udg_miscpoint)
-
Custom script: call DestroyTrigger(GetTriggeringTrigger())
-
-
-
Enemy1 500hp
-
Events
-
Unit - Enemy1 0566 <gen>'s life becomes Less than or equal to 500.00
-
-
Conditions
-
Actions
-
Set miscpoint = (Center of Region2 <gen>)
-
Unit - Order Enemy1 0566 <gen> to Move To miscpoint
-
Custom script: call RemoveLocation(udg_miscpoint)
-
Custom script: call DestroyTrigger(GetTriggeringTrigger())
-
-
Is there a way I can combine both of these triggers into 1? I have quite a few of these unit triggers and I don't think it's doing my memory any favors.
Below is what I have tried but it doesn't work as the game doesn't know to stop one of its IF/THEN/ELSE actions (and I don't know how to tell it to).
-
Enemy1 Fake AI
-
Events
-
Unit - Enemy1 0566 <gen> Takes damage
-
-
Conditions
-
Actions
-
-------- Enemy1 800hp --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Life of Enemy1 0566 <gen>) Less than or equal to 800.00
-
-
Then - Actions
-
Set miscpoint = (Center of Region1 <gen>)
-
Unit - Order Enemy1 0566 <gen> to Move To miscpoint
-
Custom script: call RemoveLocation(udg_miscpoint)
-
-
Else - Actions
-
-
-------- Enemy1 500hp --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Life of Enemy1 0566 <gen>) Less than or equal to 500.00
-
-
Then - Actions
-
Set miscpoint = (Center of Region2 <gen>)
-
Unit - Order Enemy1 0566 <gen> to Move To miscpoint
-
Custom script: call RemoveLocation(udg_miscpoint)
-
-
Else - Actions
-
-
-
Thanks