How do you create a custom variable for decisions
In your focus you could do:
AUS = {
set_variable = {
var = anschluss_support
value = 0
}
}
This will create a variable for the support, with an initial value of 0.
Then you can use:
AUS = {
add_to_variable = {
var = anschluss_support
value = 10
}
}
To add 10 support, or to remove support -10, for example. Just make sure you check the variable exists before using it:
has_variable = anschluss_support
One queston! Does the variable transfer automaticly because i create the variable in the focus and use it in decistions?
Also what i would need to know how you can check if a variable has a specific value. Thanks!
Yep, shouldn't matter if you create via focus/event/decision/etc. and modify/use it somewhere else as the variable is tied to the country.
To check the value you would use:
check_variable = { anschluss_support = 10 }
Or to check if it's more than/less than you can use > or < in place of the =
Thanks you very much ^^
Underfoxy
So i want to make a variable that will create if you make a focus. After that you get a decistion where you can get support against the anschluss. If you complete one of the decisions you get 10 added to this variable created from the focus. Also after you did all the decistions i want to check if the value of the variable is a specific value. (In a focus). I hope you understand.