So I'm making a mod on Korea and am trying to script the rebellions under Queen Jinseong. But many of these rebels fought each other as well as the Queen. So I'm curious how to script this? Right now the part of the script directing the rebels to spawn goes:
For the record, the overthrow_ruler_silla casus belli is just overthrow_ruler with "can call vassals" turned on.
The problem is that after the event fires, when one faction wins all the other territory goes independent rather than submitting to the new leader. I'm a but new to this, so any thoughts would be great!
I also would like the rebels to fight each other, but not exactly sure how to scope out the rebels and add casus belli between each other?
Code:
immediate = {
set_global_flag = the_effeminancy
primary_title = {
title = k_silla
holder_scope = {
add_character_flag = femin
any_courtier_or_vassal = {
wealth = 1000
piety = 400
add_artifact = armor_tier_1
add_artifact = mace_tier_1_new
set_character_flag = duchy_adventurer
add_trait = adventurer
add_claim = k_silla
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
female = no
age = 20
}
spawn_unit = {
province = ROOT
owner = ROOT
disband_on_peace = yes
troops = {
light_cavalry = { 1000 1000 }
light_infantry = { 5000 5000 }
archers = { 2000 2000 }
heavy_infantry = { 500 500 }
}
attrition = 1.0
}
war = {
target = PREVPREV
casus_belli = overthrow_ruler_silla
thirdparty_title = PREV tier = DUKE
}
}
}
}
}
The problem is that after the event fires, when one faction wins all the other territory goes independent rather than submitting to the new leader. I'm a but new to this, so any thoughts would be great!
I also would like the rebels to fight each other, but not exactly sure how to scope out the rebels and add casus belli between each other?