Here's a couple esthetic suggestions:
Suppose you want to display your skills with the decimal? So 132 becomes 13.2:
; %1 = input - Skill to convert
; #RESULT - Skill converted to ###.# format
sub ConvertSkill
namespace push
namespace local CS
set !intpart %1 / 10
set !decpart %1 % 10
set #RESULT !intpart , #dot , !decpart
namespace pop
return #RESULT
And the same goes for time:
;-------------------------------------------------------------------------------
; %1 = input - Time to convert
; #RESULT - Time converted to H:MM:SS format
sub ConvertTimeHourMinSec
namespace push
namespace local ctime
set !hourpart %1 / 3600
set !secpart ( %1 % 3600 ) % 60
set !minpart ( ( %1 % 3600 ) / 60 )
if !hourpart >= 10
set #RESULT !hourpart , :
else
set #RESULT 0 , !hourpart , :
if !minpart < 10
set #RESULT #RESULT , 0
set #RESULT #RESULT , !minpart , :
if !secpart < 10
set #RESULT #RESULT , 0
set #RESULT #RESULT , !secpart
namespace pop
return #RESULT