> after loading, would I derive the two integers from the code?
No, of course not.
If you start with, for example
Set Save[1] = 17
Set Save[2] = 25
Set Save[3] = 42
And get a code from this, then "-load" of that code will
set Save[1] to 17, Save[2] to 25 and Save[3] to 42.
function Trig_SaveLoad_Save_All_Func010A takes nothing returns nothing
// Save the Hero
set udg_SaveCount = ( udg_SaveCount + 1 )
set udg_TempUnit = GetEnumUnit()
[B]set udg_Save[udg_SaveCount] = SaveLoad_Unit2Integer( udg_TempUnit )[/B]
// Hero Experience
set udg_SaveCount = ( udg_SaveCount + 1 )
set udg_Save[udg_SaveCount] = GetHeroXP(GetEnumUnit())
// Hero Position X
set udg_SaveCount = ( udg_SaveCount + 1 )
set udg_Save[udg_SaveCount] = R2I(GetLocationX(GetUnitLoc(GetEnumUnit())))
// Hero Position Y
SaveLoad_Unit2Integer