Difference between revisions of "GlobalVariable Script"

Jump to navigation Jump to search
11 bytes removed ,  20:16, 11 January 2017
no edit summary
imported>Cobalt027
imported>Cobalt027
 
Line 40: Line 40:
* not reliable outside the range 0x00FFFFFF 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.
** Odd numbers outside range will either shift up or down to the next adjacent even number.
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
; Set the XP boost global to 1.5
; This is outside the reliable range
MyGlobal.SetValue(0x0FFFFFFF)
MyGlobal.SetValue(0x0FFFFFFF)
MyGlobal.GetValue() ; Returns 0x10000000
MyGlobal.GetValue() ; Returns 0x10000000
Anonymous user

Navigation menu