-
Notifications
You must be signed in to change notification settings - Fork 17
Modding Effects
The following effects are provided as quality of life features:
- com_save_journal_to_local_variable
- com_save_journal_to_global_variable
- com_save_journal_to_variable
- com_change_global_variable
- com_change_local_variable
- com_change_variable
- com_change_and_clamp_global_variable
- com_change_and_clamp_local_variable
- com_change_and_clamp_variable
- com_update_value_in_global_variable_map
- com_update_value_in_local_variable_map
- com_update_value_in_variable_map
- fix_variable_error
Saves scope:journal_entry to a local variable. Meant for use in a journal's immediate block.
Parameters
-
namethe name of the variable.
Saves scope:journal_entry to a global variable. Meant for use in a journal's immediate block.
Parameters
-
namethe name of the variable.
Saves scope:journal_entry to a country variable. Meant for use in a journal's immediate block. Will fail when used with contextless journal entries. Use com_save_journal_to_global_variable instead.
Parameters
-
namethe name of the variable.
Sets a global variable. During execution, checks for that variable to exist and adds its value to the operation.
Parameters
-
namename of the variable -
valuethe value to be added to the variable. This will be the total value if the variable was not previously set.
Sets a local variable. During execution, checks for that variable to exist and adds its value to the operation.
Parameters
-
namename of the variable -
valuethe value to be added to the variable. This will be the total value if the variable was not previously set.
Sets a variable in the current scope. During execution, checks for that variable to exist and adds its value to the operation.
Parameters
-
namename of the variable -
valuethe value to be added to the variable. This will be the total value if the variable was not previously set.
Sets a global variable. During execution, checks for that variable to exist and adds its value to the operation. Provides parameters for maximum and minimum value limits.
Parameters
-
namename of the variable -
valuethe value to be added to the variable. This will be the total value if the variable was not previously set. -
maxthe maximum limit of the value. Can be a script value. -
minthe minimum limit of the value. Can be a script value.
Sets a local variable. During execution, checks for that variable to exist and adds its value to the operation. Provides parameters for maximum and minimum value limits.
Parameters
-
namename of the variable -
valuethe value to be added to the variable. This will be the total value if the variable was not previously set. -
maxthe maximum limit of the value. Can be a script value. -
minthe minimum limit of the value. Can be a script value.
Sets a variable in the current scope. During execution, checks for that variable to exist and adds its value to the operation. Provides parameters for maximum and minimum value limits.
Parameters
-
namename of the variable -
valuethe value to be added to the variable. This will be the total value if the variable was not previously set. -
maxthe maximum limit of the value. Can be a script value. -
minthe minimum limit of the value. Can be a script value.
Checks for the presence of a key in a global variable map, and removes it before re-adding the key-value pair. Currently, add_to_global_variable_map will fail if the key is already present in the global variable map.
Parameters:
namekeyvalue
Checks for the presence of a key in a local variable map, and removes it before re-adding the key-value pair. Currently, add_to_local_variable_map will fail if the key is already present in the local variable map.
Parameters:
namekeyvalue
Checks for the presence of a key in a variable map, and removes it before re-adding the key-value pair. Currently, add_to_variable_map will fail if the key is already present in the variable map.
Parameters:
namekeyvalue
Suppresses errors printed from unset or unused variables and flags
Parameters:
-
variablethe name of the variable or flag