• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Spell] Let's deactivate the activated spell!

Status
Not open for further replies.
Level 4
Joined
Aug 26, 2012
Messages
123
Hello, Hivers!
(Hi, Hivers!)

I want to ask, how to triggering an activate-deactivate ability, so that the trigger effect will be over when I deactivate it?
(Such as immolation, or divine shield...)

I have try "Unit - A unit Stop casting an ability" event but it won't work.
I also try to use dummy ability with same orderID with the ability's deactivate orderID, still won't work.
Any idea?

(Maybe if you bribe the ability well enough to buy 1 icecream per day, she will work...)
 
Level 4
Joined
Aug 26, 2012
Messages
123
Thanks for the answer, but I want the ability can be deactivated anytime I want, and reactivate it after that anytime I want.

(Just weird example of his problem. The ability: when activate immolation, she will summon fireunit. when she deactivate immolation, she will summon iceunit.
But the problem is, when she dactivate --the icon change--, the ability does nothing. when she reactivate, she summons fireunit....)
 
Level 10
Joined
Jun 6, 2007
Messages
392
Use event "Unit is issued an order with no target", and check in conditions if the order is "immolation" or "immolationoff" (check exact order strings from WE, these are just examples) and that level of immolaton for ordered unit > 0.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Since no one has provided an example with trigger;
  • Melee Initialization
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Level of Immolation for (Triggering unit)) Greater than 0
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order(immolation))
        • Then - Actions
          • -------- Activate ability --------
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Issued order) Equal to (Order(unimmolation))
            • Then - Actions
              • -------- Deactivate ability --------
            • Else - Actions
 
Status
Not open for further replies.
Top