// Playername

sm_mode2 set k

sm_menu "Playername\\y\\R{sm_mode2&k?ON:OFF}" "sm_mode2 {sm_mode2&k?remove:set} k"


alias set_sif "sm_sayformat 0 50 255 -1 0.60 1 0.01 3 0.01 0.01 1"
alias set_sie "sm_sayformat 255 50 0 -1 0.60 1 0.01 3 0.01 0.01 1"

sm_reg "StatusValue k 2" "set_sif{%.pn=1}" beg "1=1" "2=1"
sm_reg "StatusValue k 2" "set_sie{%.pn=0}" beg "1=1" "2=2"
sm_reg "StatusValue k 2" "{V2=0?#}sm_tell #{p.uid} \'{V2.name}{%.pn=1? -- {V2.health} Hp / {V2.armor} Ap / {V2.w.name}}\'" beg "1=2"
//sm_reg "StatusValue k 2" "{V2=0?#}sm_tell #{p.uid} \'{V2.name}{%.pn=1?friend:enemy}\'" beg "1=2"
sm_reg "StatusValue k 2" "sm_tell #{p.uid} \' \'" beg "1=1" "2=0"
