• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Spell] Get a unit ability

Status
Not open for further replies.
Pretty much you have to pre-set variable those abilities first and then retrieve it later on.
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set MountainKing[1] = Ability 1
      • Set MountainKing[2] = Ability 2
      • Set MountainKing[3] = Ability 3
      • Set MountainKing[4] = Ability 4
Then;
  • Melee Initialization
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Unit - Increase level of MountainKing[1] for (Triggering unit)
This will increase your Mountain King first ability (you must set correctly for each variable = Ability).
 
There is no way to get the ability BY SLOT.
There is, but you have to pre-set it (look at my previous post).

There is a way to get what ability has been casted but this is not related to your problem at all.

What you want is to get unit ability from its... coordinates of UI ??? Impossible without tricks, because there is no function such as GetUnitAbilitySlotUI or whatever.
 
Status
Not open for further replies.
Back
Top