I'm trying to create a diplomatic play (in this case an annexation war) procedurally started by a diplomatic action. Right now, I can get it to start, but the game throws a context error, and wargoals aren't added properly. Can anyone help me?
create_diplomatic_play = {
name = Test
war = yes
target_country = scope:target_country
add_war_goal = {
type = annex_country
target_country = scope:target_country
}
scope:target_country = {
add_war_goal = {
type = annex_country
target_country = scope:target_country
}
}
texture = "gfx/interface/icons/war_goals/annex_country.dds"
}
create_diplomatic_play = {
name = Test
war = yes
target_country = scope:target_country
add_war_goal = {
type = annex_country
target_country = scope:target_country
}
scope:target_country = {
add_war_goal = {
type = annex_country
target_country = scope:target_country
}
}
texture = "gfx/interface/icons/war_goals/annex_country.dds"
}