Schyy
New Member
- Reaction score
- 5
hi folks !
because i didnt found anyone who helps us with the jass scripting in our rpg i decided to learn jass
and here is my first question ^^
i wanna make a trigger wich shows an floating text if an hero gains a lvl
the floating text should grow very fast but it gows just every second by 1 factor
thx for help
because i didnt found anyone who helps us with the jass scripting in our rpg i decided to learn jass
and here is my first question ^^
i wanna make a trigger wich shows an floating text if an hero gains a lvl
the floating text should grow very fast but it gows just every second by 1 factor
JASS:
function Trig_LvL_Up_Actions takes nothing returns nothing
local integer a=1
call CreateTextTagUnitBJ( "LEVEL UP", GetLevelingUnit(), -50.00, 10.00, 100.00, 100.00, 0.00, 20.00 )
loop
exitwhen a>20
call SetTextTagTextBJ( GetLastCreatedTextTag(), "LEVEL UP", 10.00+a )
call TriggerSleepAction(0.01)
set a=a+1
endloop
if a==20 then
call DestroyTextTagBJ(GetLastCreatedTextTag())
endif
endfunction
thx for help