Editing GlobalVariable Script
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
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 | ||
MyGlobal.SetValue(0x0FFFFFFF) | MyGlobal.SetValue(0x0FFFFFFF) | ||
MyGlobal.GetValue() ; Returns 0x10000000 | MyGlobal.GetValue() ; Returns 0x10000000 |