Difference between revisions of "GlobalVariable Script"
Jump to navigation
Jump to search
no edit summary
imported>Qazaaq |
imported>Cobalt027 |
||
| Line 34: | Line 34: | ||
== Events == | == Events == | ||
None | None | ||
== Notes == | |||
* 2 decimal float precision from 0x001FFFFF to -0x001FFFFF | |||
* int precision from 0x00200000 to 0x00FFFFFF and -0x00200000 to -0x00FFFFFF | |||
* not reliable outside the range 0x00FFFFFF to -0x00FFFFFF | |||
** Odd numbers outside range will either shift up or down to the next adjacent even number. | |||
== Examples == | |||
<source lang="papyrus"> | |||
; Set the XP boost global to 1.5 | |||
MyGlobal.SetValue(0x0FFFFFFF) | |||
MyGlobal.GetValue() ; Returns 0x10000000 | |||
</source> | |||
== See Also == | == See Also == | ||
*[[:Category:Miscellaneous|Miscellaneous Category]] | *[[:Category:Miscellaneous|Miscellaneous Category]] | ||