On ActionChanged this version
on_siege_won
When a location with fort changes controller after a siege. root = country, scope:target = location, scope:character = leading general character
PisaCountryeffectmuslim_southern_indian_country_flagVariableeffectvijayanagar_country_flagVariableeffectDefinitionin_game/common/on_action/_hardcoded.txt:278
283events = {
}
294effect = {
295if = {
296limit = {
297scope:target = {
298is_capital = yes
}
}
304scope:target = {
305save_scope_as = target_location
}
}
309if = {
310limit = {
}
318scope:target = {
319save_scope_as = target_location
}
}
323if = {
324limit = {
325ruler ?= character:dlh_muhammad_bin_tughluq
326scope:target = {
327is_capital = yes
328owner ?= {
329this != root
}
}
}
333scope:target = {
334save_scope_as = target_location
}
}
341if = {
}
}