EUWiki

Effect

Set global variable

Sets a global variable

set_global_variable = { name = X value = Y days = Z }

Where X is the name of the variable used to then access it

Where Y is any event target, bool, value, script value or flag (flag:W)

An optional days where Z is the number of days or script value

This variable will be accessible with global_var:X. With type being in a scope object or in a top scope

Can also be used as set_global_variable = X (equivalent to set_global_variable = { name = X value = yes })