EventNew this version
The Turncoat General

Target Character2, commander of Target Army, has made troubling overtures toward foreign powers. Word has reached us that Target Character2 may be entertaining the promises of our enemies, and his/her conduct on the campaign trail has done little to dispel our suspicions.
Target Character1 must act before this treachery becomes open defection.
Inspiring LeaderTraitoption 3
StrictTraitoption 3recently_had_iw23_variableVariabletriggerDefinitionin_game/events/situations/italian_wars.txt:1217
1218type = country_event
1219category = situation_event
1221title = italian_wars.23.title The Turncoat General
1222desc = italian_wars.23.desc Target Character2, commander of Target Army, has made troubling overtures toward foreign powers. Word has reached us that Target Character2 may be entertaining the promises of our enemies, and his/her conduct on the campaign trail has done little to dispel our suspicions.
Target Character1 must act before this treachery becomes open defection.
Target Character1 must act before this treachery becomes open defection.
1223outcome = negative
1225image = "gfx/interface/illustrations/situation/italian_wars.dds"
1227trigger = {
1231any_army = {
1232has_commander = yes
1233leader = {
1234is_ruler = no
1235is_regent = no
1236is_consort = no
1237is_heir = no
}
}
}
1242major = yes
1243major_trigger = {
1244this = scope:target_country_recipient
}
1247immediate = {
1253ruler_or_regent ?= {
1253save_scope_as = target_character1
}
1255random_army = {
1256limit = {
1257has_commander = yes
1258leader = {
1259is_ruler = no
1260is_regent = no
1261is_consort = no
1262is_heir = no
}
}
1265save_scope_as = target_army
1266leader = {
1266save_scope_as = target_character2
}
}
1268every_in_global_list = {
1269variable = iw_italian_leagues_list
1270if = {
1271limit = {
1271country_exists = leader_country
}
1272leader_country = {
1272add_to_list = iw23_list
}
}
}
1275every_in_global_list = {
1276variable = iw_foreign_leagues_list
1277if = {
1278limit = {
1278country_exists = leader_country
}
1279leader_country = {
1279add_to_list = iw23_list
}
}
}
1283if = {
1284limit = {
1285any_in_list = {
1286list = iw23_list
1287is_at_war_with = root
}
}
1290random_in_list = {
1291list = iw23_list
1292limit = {
1292is_at_war_with = root
}
1293save_scope_as = target_country_recipient
}
}
1296else = {
1297random_in_list = {
1298list = iw23_list
1299save_scope_as = target_country_recipient
}
}
}