• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Hero skill levels another ability

Status
Not open for further replies.
Level 5
Joined
Jan 15, 2018
Messages
130
This is my first trigger of this type and it seems simple, and i want to be sure it works. I currently cannot test it.

The goal is for a Hero ability to level up a passive Evasion ability.

  • SpdexEvasion
    • Events
      • Unit - Primordial Spider 1179 <gen> Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Spider Dexterity
    • Actions
      • Unit - Add Evasion (Shelob) to Primordial Spider 1179 <gen>
      • Unit - For Primordial Spider 1179 <gen>, Ability Evasion (Shelob), Disable ability: False, Hide UI: True
      • Set VariableSet SpDex_i = (Level of Spider Dexterity for Primordial Spider 1179 <gen>)
      • Unit - Set level of Evasion (Shelob) for (Triggering unit) to SpDex_i
 
You can make any ability hidden from the command card by setting it's Art Button Position to X:0, Y:-11. This is done through the Object Editor.

Also, SpDex_i seems unnecessary since you only reference it once.

But yes, this would work. You'd be adding the ability to the Hero each time you level up Spider Dexterity but that's perfectly fine since the function will basically be ignored if the unit already has the ability.

@Cheshire That's assuming Spider Dexterity doesn't do anything important. He could want both Evasion and the effects of Spider Dexterity.
 
Last edited:
Status
Not open for further replies.
Back
Top