Effect
Set local variable
Sets a local variable
set_local_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 local_var:X. With type being in a scope object or in a top scope
Can also be used as set_local_variable = X (equivalent to set_local_variable = { name = X value = yes })