Difference between revisions of "Global"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Hitbts
(Page created. That bit about skipping parts of the intro is real, by the way; I think the values go up to 5. Give it a try sometime!)
 
imported>Qazaaq
(added details)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Editor Reference]]
'''Type:''' <code>GLOB</code>
[[Category:Object_Classes]]
<BR/>
'''Papyrus:''' [[GlobalVariable Script]]


'''Papyrus:''' [[GlobalVariable Script]]
A [[Global]] is a numeric variable that can be referenced from all over the game, including in [[Conditions]] and [[Papyrus]]. Globals can represent predefined values, such as Dogmeat's attack ranges or how much of the game's introduction to skip (pictured); or they can be used to keep track of things that change over the course of the game, such as how long it's been since Cait has used chems. (No, really.)


A Global is a numeric variable that can be referenced from all over the game, including in [[conditions]] and [[Papyrus]]. Globals can represent predefined values, such as Dogmeat's attack ranges or how much of the game's introduction to skip (pictured); or they can be used to keep track of things that change over the course of the game, such as how long it's been since Cait has used chems. (No, really.)
Globals are usually created for use in [[Conditions]]. Though conditions are capable of inspecting values in other systems, like conditional Papyrus properties, it's often better to keep things separate so that they can be edited independently.


Globals are usually created for use in conditions. Though conditions are capable of inspecting values in other systems, like conditional Papyrus properties, it's often better to keep things separate so that they can be edited independently.
== Editor Dialog ==
[[File:Global_Editor.png|right]]
*{{Template:Editor:Property:ID}}
*'''Value:''' The initial value of this global when the game first starts or the mod is first installed.
*'''Constant:''' If this box is checked the game will not allow the global's value to change. The global's value will still be written to save files, but that value will not be used if the global is flagged as constant when the save file is loaded. This is useful when updating a global that is meant to represent a predefined value.
{{ClearFloats}}


[[File:Global_Editor.png]]
== See Also ==
*[[Conditions]]
*[[:Category:Miscellaneous|Miscellaneous Category]]


== Editor Dialog ==
 
*'''ID:''' The editor ID that this form uses in the Creation Kit.
[[Category:Editor Reference]]
*'''Value:''' The initial value of this global, when the game first starts (or the mod is first installed).
[[Category:Object Classes]]
*'''Constant:''' If this box is checked, the game will not allow the global's value to change. The global's value will still be written to save files, but that value will not be used if the global is flagged as constant when the save file is loaded. This is useful when updating a global that is meant to represent a predefined value.
[[Category:Miscellaneous]]

Latest revision as of 01:10, 29 March 2018

Type: GLOB
Papyrus: GlobalVariable Script

A Global is a numeric variable that can be referenced from all over the game, including in Conditions and Papyrus. Globals can represent predefined values, such as Dogmeat's attack ranges or how much of the game's introduction to skip (pictured); or they can be used to keep track of things that change over the course of the game, such as how long it's been since Cait has used chems. (No, really.)

Globals are usually created for use in Conditions. Though conditions are capable of inspecting values in other systems, like conditional Papyrus properties, it's often better to keep things separate so that they can be edited independently.

Editor Dialog[edit | edit source]

Global Editor.png
  • ID: The ID, also referred to as Editor ID, is used by the Creation Kit to uniquely identify this record within a Data File.
  • Value: The initial value of this global when the game first starts or the mod is first installed.
  • Constant: If this box is checked the game will not allow the global's value to change. The global's value will still be written to save files, but that value will not be used if the global is flagged as constant when the save file is loaded. This is useful when updating a global that is meant to represent a predefined value.

See Also[edit | edit source]