How do I retrieve the number of provinces in a state into a variable? I'm trying with this but it doesn't seem to be working:
e: for context, this is in a state event as an immediate effect
Code:
set_variable = {
name = icaprovnum
value = 0
}
every_state_province = {
count = all
change_variable = {
name = root.icaprovnum
add = 1
}
}
e: for context, this is in a state event as an immediate effect