- Joined
- Oct 24, 2012
- Messages
- 6,545
i have an ability it has 8 lvls
lvl 1 is .01
lvl 2 is .05
lvl 3 is .10
lvl 4 is .15
lvl 5 is .25
lvl 6 is .50
lvl 7 is .75
lvl 8 is 1.00
now what im trying to achieve is im getting the intelligence of hero (u) then every 20 intel im adding .01 onto tht unit
ex
thx to anyone tht can help
lvl 1 is .01
lvl 2 is .05
lvl 3 is .10
lvl 4 is .15
lvl 5 is .25
lvl 6 is .50
lvl 7 is .75
lvl 8 is 1.00
now what im trying to achieve is im getting the intelligence of hero (u) then every 20 intel im adding .01 onto tht unit
ex
JASS:
set T = GetHeroInt( u, true )
if T < 20 then
elseif T >= 20 then
call UnitAddAbility( u, 'ACev' )
call SetUnitAbilityLevel( u, 'ACev', 1 )
endif
thx to anyone tht can help