IntToString
From NWN Lexicon
Jump to navigationJump to search
IntToString(int)
This function converts an int to a string representation of the same value.
Parameters
nInteger
The integer to convert into a string.
Description
This function converts an integer to a string representation of the same value, so that converting 123 to a string would yield â123â.
Remarks
This function finds its best use in debugging, you can have objects speak these values or even write them to a log.
Also very useful in letting the player know about all sorts of things, eg dynamic prices of services based on player level, or telling the player that he needs to lose 20 pounds (if there was a way to get his weight...)
Version
1.28
Example
See Also
functions: |
author: Charles Feduke, editor: Lilac Soul, additional contributor(s): Lilac Soul