Let's take Searing Arrows as example.
If you activate its auto-cast, its order string if flamingarrows, and if you deactivate it, its order string is unflamingarrows
Trigger Example:
-
Activate And Deactivate
-
Events
-
Unit - A unit Is issued an order with no target
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Issued order) Equal to (Order(flamingarrows))
-
Then - Actions
-
Unit Group - Add (Triggering unit) to SearingArrowsGroup
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Issued order) Equal to (Order(unflamingarrows))
-
Then - Actions
-
Unit Group - Remove (Triggering unit) from SearingArrowsGroup
-
Else - Actions
As you can see, once you activate the auto-cast, the trigger will detect its order string (in this case, flamingarrows for Searing Arrows base spell auto-cast activating Event) and will put that unit inside a Unit Group (SearingArrowsGroup)
If you deactivate it (unflamingarrows), it will remove that unit from Unit Group making that unit not auto-casting the ability
Next, the Unit Group:
-
Activate Effect
-
Events
-
Time - Every 1.00 seconds of game time
-
Conditions
-
Actions
-
Unit Group - Pick every unit in SearingArrowsGroup and do (Actions)
-
Loop - Actions
-
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 10.00)
Trigger above will make the trigger heals the picked unit (activating flamingarrows) for 10 HP per second. Lasts until the unit is out of group (it has been ordered to unflamingarrows = remove from unit group)
Remember, each auto-cast ability has different order string, so, to make your life easier (doesn't look in Object Editor), just do this:
-
Order String Knowledge
-
Events
-
Unit - A unit Is issued an order with no target
-
Conditions
-
Actions
-
Game - Display to (All players) the text: (String((Issued order)))
(Conversion - Convert Order To String)
Every auto-cast ability, when you activate it, it will show on your screen the actual string order that is being used, good luck