Necrobump!
This system is no longer necessary now that we have the following natives:
native BlzSetUnitMaxHp takes unit whichUnit, integer newMax returns nothing
native BlzSetUnitMaxMana takes unit whichUnit, integer newMax returns nothing
A text tag snippet that allows you to create local text tags worry-free.
If you have any suggestions for any features, feel free to add them:
library TextTag uses/*
*/ optional OneTimer,/* - A truly optional resource. If not found, the system attempts to generate a hashtable...
function cconvert takes real percentage returns integer
local integer result = R2I(percentage * 2.55)
if (result < 0) then
set result = 0
elseif (result > 255) then
set result = 255
endif
return result
endfunction
function CreateTextunit_sec_speed takes string...