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

[General] Increase stats gain when leveling up?

Status
Not open for further replies.
Level 11
Joined
Oct 11, 2012
Messages
711
Hi all. What I want is to increase the hero's stats gain when leveling up.
For example, hero A should increase his str by 10 when leveling up. But after being equipped with an item, hero A can increase his str by 20 when leveling up. How to do that?
In my map, heros can level up from 1 to 10 by use a single item. So "EVENT_PLAYER_HERO_LEVEL" and the following script do not work accurately. They only work accurately when leveling up 1 level at a time. I hope my awful explanation helps...

JASS:
call SetHeroInt( GetTriggerUnit(),  GetHeroInt(GetTriggerUnit(),false)+R2I(GetHeroInt(GetTriggerUnit(),false) * 0.010)  , true )
 
Either you start giving out the level ups in separated instances or just check the heroes lvl shortly after lvl up.
 
Status
Not open for further replies.
Back
Top