local integer stat = LoadInteger(hash, GetUnitTypeId(GetTriggerUnit()), 0)
if (stat == bj_HEROSTAT_STR) then
BJDebugMsg("Main attribute is strength.")
elseif (stat == bj_HEROSTAT_AGI) then
BJDebugMsg("Main attribute is agility.")
elseif (stat == bj_HEROSTAT_Int) then
BJDebugMsg("Main attribute is intelligence.")
endif