• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Empires91

Corporal
57 Badges
Aug 7, 2007
33
0
  • Crusader Kings II
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Pre-order
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Leviathan: Warships
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Cities in Motion 2
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Reapers Due
  • Stellaris: Necroids
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
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:

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
                    }
                }
            }

        }
    }
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?
 
I'd probably go with something kind of like
Code:
FROM = { # the queen
    any_war = { # her wars
        limit = {
            defender = { character = FROM } # her *defensive* wars
            using_cb = overthrow_ruler_silla # with this CB
            NOT = { attacker = { character = ROOT } } # that she hasn't already lost
        }
        attacker = { # each war's primary attacker
            set_defacto_liege = ROOT # Have the winner vassalise them. Or do something else if you prefer.
        }
    }
}
to scope to the other rebels in the CB's on_success - I haven't tested it, but it should work.

As for getting the rebel armies to fight eachothers, I think adding
Code:
hostile_against_others = yes
to the CB might be enough - they'll be able to fight eachothers, though I guess they won't really gain anything by doing so.
 
Last edited: