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

Passive stat increases

Status
Not open for further replies.
Level 1
Joined
Jan 24, 2010
Messages
4
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...
 
Level 1
Joined
Jan 24, 2010
Messages
4
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?
 
Level 9
Joined
May 28, 2007
Messages
365
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.
Top