Not all any_xxx can be used in commands. Try random_realm_province instead (though this will only affect one province.)
In events/misc_old_gods_events.txt, there is a similar usage:Not all any_xxx can be used in commands. Try random_realm_province instead (though this will only affect one province.)
any_realm_province = {
limit = {
kingdom = {
title = k_hungary
}
}
culture = hungarian
religion = ROOT
}
immediate = {
any_independent_ruler = {
any_realm_province = {
limit = { has_province_flag = home_of_jeanne_darc }
province_event = { id = SoA.5372 }
}
}
}
AND = {
job_chancellor = {
is_chancellor = yes
attribute = diplomacy
dignity = 0.33
opinion_effect = 15
monthly_salary = 0.1
monthly_prestige = 0.015
allow = {
OR = {
AND = {
OR = {
[COLOR="#FF0000"] is_female = no
AND = {
religion = cathar
liege = { religion = cathar }[/COLOR]
}
}
is_adult = yes
}
has_character_flag = special_chancellor
}
prisoner = no
NOT = { trait = incapable }
}
gain_effect = {
}
lose_effect = {
opinion = { who = FROM modifier = opinion_fired_from_council }
}
action = action_improve_relations
action = action_fabricate_claims
action = action_sow_dissent
lift_fow = yes
}
is_female = no
AND = {
religion = cathar
liege = { religion = cathar }
religion = my_religion
liege = { religion = my_religion}
is_female = no
AND = {
religion = cathar
religion = my_religion
liege = { religion = cathar }
liege = { religion = my_religion}
OR = {
is_female = no
AND = {
religion = cathar
liege = { religion = cathar }
}
AND = {
religion = my_religion
liege = { religion = my_religion }
}
}
Should I give up all hope on having this fixed? Surely it has to have been done before.
hidden_tooltip = {
d_commune_of_rome = holder_scope = { { character_event = { id = commune.4 days = 10 } } }
}
hidden_tooltip = {
d_commune_of_rome = {
holder_scope = {
character_event = { id = commune.4 days = 10 }
}
}
}
i am using the beta patch, but it hasn't fixed the problem at all.
If it were me, I make it like this:Your problem is that a person can't be cathar and my_religion at the same time.
Code:OR = { is_female = no AND = { religion = cathar liege = { religion = cathar } } AND = { religion = my_religion liege = { religion = my_religion } } }
OR = {
is_female = no
AND = {
OR = {
religion = cathar
religion = my_religion
}
OR = {
liege = { religion = cathar }
liege = { religion = my_religion }
}
}
}
ThanksA duration of -1 will make it last forever, or until removed, whichever comes first.
any_province = {
limit = {
has_building = ca_asoiaf_north_basevalue_6
}
remove_building = ca_asoiaf_north_basevalue_6
add_building = ca_asoiaf_north_basevalue_5
}
While 'has_building' appears to be usable on provinces (AGOT mod does it) as well as baronies, 'add_building' and 'remove_building' appear to apply only to baronies. Suggestion:Does the any_province scope actually work? I suspect it is the reason why my event is not working.
Code:any_province = { limit = { has_building = ca_asoiaf_north_basevalue_6 } remove_building = ca_asoiaf_north_basevalue_6 add_building = ca_asoiaf_north_basevalue_5 }
If it does not indeed work, how could I make the event affect all the provinces in the game with that certain building?
any_province = {
any_province_holding = {
limit = {
has_building = ca_asoiaf_north_basevalue_6
}
remove_building = ca_asoiaf_north_basevalue_6
add_building = ca_asoiaf_north_basevalue_5
}
}