SirNikolas, муторно, проще сразу делать базы данных по примеру
Code
function SaveMainStat takes integer herotype, integer mainstat returns nothing
call SaveInteger(udg_StatsBase, herotype, 0,mainstat)
endfunction
function GetMainStat takes integer herotype returns integer mainstat
return LoadInteger(udg_StatsBase,herotype,0)
endfunction
function IsHeroMainStat takes unit u, integer whichStat returns boolean
return LoadInteger(udg_StatsBase,GetUnitTypeId(u),0)==whichStat
endfunction