I experiment on how to make a messagebox that will give npc stats back to player.
They only problem is that i get no number but only the variable letters as text.
For example i made the following script
---------------------------------------
scriptname ABCD
short lev
short hp
short hm
short mp
short mm
short fp
short fm
Begin onadd
set lev to getlevel
set mm to getbaseactorvalue magicka
set mp to getav magicka
set hm to getbaseactorvalue health
set hp to getav health
set fm to getbaseactorvalue fatigue
set fp to getav fatigue
messagebox "Level %.0f, Health %0.f / %0.f, Magicka %0.f / %0.f, Fatigue %0.f / %0.f" lev hp hm mp mm fp fm
end
--------------------------------------
The result i get is: Level 0, Health 0 / 0, Magicka 0 / 0 etc....
if i put %v instead of %0.f the message i get is: Level v, Health v / v, Magicka v / v etc....
I really tried everything... but i cant understand why this happens.
Every help will be grateful
Thanks