• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Natural Immolation Cancel (no mana) Trigger

Status
Not open for further replies.
Level 4
Joined
Aug 17, 2008
Messages
81
  • Events
    • Unit - A unit Is issued an order with no target
  • Conditions
    • (Unit-type of (Triggering unit)) Equal to Forcefield Generator
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Issued order) Equal to (Order(immolation))
      • Then - Actions
        • Unit - Add Forcefield Aura (Neutral Hostile) to (Triggering unit)
      • Else - Actions
        • Unit - Remove Forcefield Aura (Neutral Hostile) from (Triggering unit)
The trigger works great for activating and deactivating the aura skill normally through player interaction. But if the Forcefield Generator runs out of mana causing Immolation to deactivate naturally, then it does not issue the unimmolation order as normal, thus not removing the Forcefield Aura ability as intended. Does anyone know how to fix this?
 
Level 4
Joined
Aug 17, 2008
Messages
81
  • Events
    • Time - Every 1.50 seconds of game time
  • Actions
    • Set Forcefield_Group = (Units in (Playable map area))
    • Unit Group - Pick every unit in Forcefield_Group and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Picked unit) has buff custom_immolation ) Equal to False
            • (Unit-type of (Picked unit)) Equal to Forcefield Generator
          • Then - Actions
            • Unit - Remove Forcefield Aura (Neutral Hostile) from (Picked unit)
          • Else - Actions
    • Custom script: call DestroyGroup (udg_Forcefield_Group)
I solved the problem myself. I think checking for the custom immolation buff instead of messy mana checking was the best way to overcome this obstacle. :)


edit:
easiest way to deal with immolation based stuff is to check the buff.

...And I didn't see your post until now. lolol... In hindsight, thank you doom_sheep.

SOLVED.
 
Status
Not open for further replies.
Top