NPC Code:
setstring <stringname>,<vaule of the string (number or ASCII crap)>;
is how you set a string and
NPC Code:
#s(<stringname>)
is how you call the string for its true value and
NPC Code:
strtofloat(#s(<stringname>))
is how you use a strings numerical value (probably what you would be using it for).