• 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.

Leveling up and ability via triggers?

Status
Not open for further replies.
Level 7
Joined
Jul 1, 2008
Messages
1,025
Hi, I'm trying to create a trigger that levels up a non-hero ability but can't seem to find a "Level Ability" action, I would have thought blizzard would have included one?

Event and condition functions are fine I just need a "level non-hero ability" action, if it exists?
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
im not sure about this BUT doesnt non hero abilitys only got one level?
Expect if it is a qustom spell.
lets say the index is the level of a ability
  • Prepare
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Ability_DMG[1] = 100
      • Set Ability_DMG[2] = 200
      • Set Ability_DMG[3] = 300
and to do the dmg we have setup, you dont need the variable arrays but its easy to setup

  • Ability Damage
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (Real(Ability_DMG[YOUR_ability_level_here])))
 
Level 4
Joined
Aug 8, 2011
Messages
84
Like Spinnaker said, the functions for increasing/setting the level of an ability are the same for hero and non-hero abilities.

That being said; yes, non-hero abilities can have more than one effective level, just like hero abilities.

EDIT:
Congrats on 1337 posts Spinnaker.
 
Level 7
Joined
Jul 1, 2008
Messages
1,025
Darkgrom unit abilitys can have multiple levels (take the raise Dead spell for example), your trigger wasnt what I'm looking for but thanks for having a go anyway.

Spinnaker, thats close to what I need but not quite, "Increase level of ability" only effects specific units, I need this increase in level to effect all future instances of this unit. The ability I want increasing is carried by units that are summoned by this ability you see.

EDIT: o0 Congrats Spinnaker lol
 
Level 4
Joined
Aug 8, 2011
Messages
84
In that case you have a couple choices.

First, you could modify the summoning skill to summon another level of the summoned unit, which will contain a different level of its skill. Doing this, however needs a separate skill and unit for each level of the summoning skill.

The other option is to detect whenever a unit is casting this summoning skill, when the skill is done being cast, detect the summoned units, and modify their abilities as you see fit.

In my opinion option 2 is best.
 
Status
Not open for further replies.
Top