On Action
on_work_of_art_looted
root = work of art, scope:target = new location, scope:location = old location; gets NOT called by the move_art effect
ByzantiumCountryeffectLacking JewelsStatic ModifiereffectDefinitionin_game/common/on_action/_hardcoded.txt:5128
5129effect = {
5130if = {
5131limit = {
5132this = work_of_art:byzantine_crown_jewels
}
5134if = {
5135limit = {
5136scope:target.owner = {
5137OR = {
}
}
}
5145work_of_art:byzantine_crown_jewels = {
5146save_scope_as = target_woa
}
5148scope:location = {
5149random_unit_in_location = {
5150limit = {
5151owner = {
}
}
5157save_scope_as = target_army
}
5159random_unit_in_location = {
5160limit = {
5161owner ?= scope:target.owner
}
5163save_scope_as = target_army
}
}
5166scope:target.owner = {
5167if = {
5171save_scope_as = origin_country
}
5173else = {
5174random_country_together_in_war_with = {
5178save_scope_as = origin_country
}
}
}
5182if = {
}
5194else = {
}
}
5203else_if = {
5204limit = {
}
5212save_scope_as = target_woa
}
}
}