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

Passive stat increases

Status
Not open for further replies.

Jervis

J

Jervis

I'm trying to figure out how to make a passive hero ability that increases the hero's maximum health or mana (not strength or intelligence)

Like at level 1 it increases base mana by 100, at level 2 its 200, ect, ect

I know absolutely nothing about jass or anything like that, just triggers.

My first idea was to modify the Pendant of Mana ability, but that didnt work

+rep or whatever if you help me
 
I'm trying to figure out how to make a passive hero ability that increases the hero's maximum health or mana (not strength or intelligence)

Like at level 1 it increases base mana by 100, at level 2 its 200, ect, ect

I know absolutely nothing about jass or anything like that, just triggers.

My first idea was to modify the Pendant of Mana ability, but that didnt work

+rep or whatever if you help me

create a custom upgrade which increases mana and then make your unit use that upgrade in the object editor then every time you learn the skill, increase the level of upgrade via triggers...
 
Ok i modified the item ability more and now it works, but the icon doesnt show after you learn it.

anything i can do about that?
 
You have to use a dummy ability. Don't use your mana bonus ability for it the ability you actually add to your hero.

Create Devotion Aura, give it like 3 levels, but tick off the armor bonus given.

Now, you create a trigger that looks like this.

Event - A unit learns an ability
Condition - Ability == Devotion Aura
Action -
if Get Level of Ability for Unit (Pendant of Mana Dummy) == 0 then
UnitAddAbility( Pendant of Mana Dummy )
elseif Get Level of Ability for Unit (Pendant of Mana Dummy) == 1 then
Set The ABility Level of Pendant of Mana Dummy to Get Level of Ability for Unit (Pendant of Mana Dummy) + 1
 
Status
Not open for further replies.
Back
Top