How to deactivate the auto-cast of a skill by triggers?

SutinG

Member
Reaction score
1
Hi,
My question is... Is there a way to deactivate (and activate) the auto-cast of a skill (like the Frost Armor, etc) by triggers? How can I do it? Or isn't possible?

Thanks in advance!
 

ultimate11

Active Member
Reaction score
25
For Frost Armor
Trigger:
  • Actions
    • Unit - Order (Transporting unit) to Undead Lich - Activate Frost Armor
    • //is an order with no target

or u can try
Trigger:
  • Actions
    • custom Script : call IssueImmediateOrderBJ( GetTriggerUnit(), "frostarmoron" )
    • custom Script : call IssueImmediateOrderBJ( GetTriggerUnit(), "frostarmorof" )
 

Inflicted

Currently inactive
Reaction score
63
Depends on what the name of the Ability is. Like shown above you can issue the order, for example is "immolation" and deactivating it is "unimmolation".
It really depends on the base ability, I think but may be wrong but you can set the order on the Channel ability.

To find the name of order, check the lines:
Text - Order String - Use/Turn On ~-~ and
Text - Order String - Turn Off

Note this is only for abilities that can by default be turned on/off.
 

SutinG

Member
Reaction score
1
Thanks!
But I'm having a problem... It's possible to activate/deactivate the skill without interrupt the current order of the Hero? What I mean is, if the hero is currently moving to a point (or attacking) and I do this:
Code:
Unit - Order (Triggering unit) to Special Sylvanas Windrunner - Activate Cold Arrows
Then the hero stops moving (or attacking). How can I fix this?
 

Inflicted

Currently inactive
Reaction score
63
You can't, its like issuing an ability. It will stop the previous issued order.
This is unavoidable, unless you have a system that checks where it was going before you changed the autocast ability, but this could be difficult.

Perhaps use the ability before issuing the movement command?
Depends on your usage though, I need to know the situation.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top