As title, I am trying to reduce the roots age via exported variable.
My variable is being correctly set, but I CANNOT get the add_age command to apply the variable, though commands such as add_age = -25 apply. Perhaps I need to refer to the variable in a different way with the add_age command?
Hopefully someone has a tip. Thanks!
My variable is being correctly set, but I CANNOT get the add_age command to apply the variable, though commands such as add_age = -25 apply. Perhaps I need to refer to the variable in a different way with the add_age command?
Hopefully someone has a tip. Thanks!
Code:
ROOT = {
export_to_variable = { which = difference_between_currentage_and_25 value = age }
if = {
limit = {age = 26}
subtract_variable = {
which = difference_between_currentage_and_25
value = 25
}
}
add_age = -difference_between_currentage_and_25
set_character_flag = changed_to_25
}