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