On Action
on_character_moved_country
root = character, scope:target = new country, scope:owner = old country
Definitionin_game/common/on_action/_hardcoded.txt:5228
5229effect = {
5230if = {
5235save_scope_as = origin_country
5236if = {
5237limit = {
5238has_trust = {
5238modifier = trust_offered_hostage
5238target = scope:owner
}
}
5240remove_trust_equilibrium = {
5240modifier = trust_offered_hostage
5240target = scope:owner
}
}
5242if = {
5243limit = {
5244has_opinion = {
5244modifier = opinion_offered_hostage
5244target = scope:owner
}
}
5246remove_opinion = {
5246modifier = opinion_offered_hostage
5246target = scope:owner
}
}
}
5249scope:owner ?= {
5250if = {
5251limit = {
5252has_trust = {
5252modifier = trust_offered_hostage
5252target = scope:origin_country
}
}
5254remove_trust_equilibrium = {
5254modifier = trust_offered_hostage
5254target = scope:origin_country
}
}
5256if = {
5257limit = {
5258has_opinion = {
5258modifier = opinion_offered_hostage
5258target = scope:origin_country
}
}
5260remove_opinion = {
5260modifier = opinion_offered_hostage
5260target = scope:origin_country
}
}
}
}
5265if = {
5269if = {
}
}
}