Background for Skyrim SE

The GlobalVariable Script

    The GlobalVariable script is a part of Skyrim SE’s Papyrus scripting ecosystem. It is included with the base game.

    For this script, the Papyrus index knows about:

    • 5 functions
    • 1 property


    Inheritance Tree

    No indexed scripts extend this script.

    Properties

    • vanilla

      • floatvalue=NONE

      Events

        No events found.

      Functions

      • floatfunctionGetValue()Native

        Gets the current value of this global object.

      • voidfunctionSetValue(floatafNewValue)Native

        Sets the current value of the global variable object. Will print an error and fail if you try to set a value on a constant global variable object.

      • intfunctionGetValueInt()

        Gets the current value of this global object, cast as an int for convenience.

      • voidfunctionSetValueInt(intaiNewValue)

        Sets the current value of the global variable object, taking an int as a parameter. See GlobalVariable.SetValue(...)

      • floatfunctionMod(floatafHowMuch)

        Modifies the value of the global variable in a thread-safe way (value can't change between read and write of the global), and returns the new value.

      Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.