Your is_valid section might be the issue. Is_valid is the conditions that have to be met for the war to not end inconclusively.So every time I use this CB I wrote, the game crashes at the end of the in-game month, even if I switch characters to accept a quick peace and see what happens. I have no idea why it does this, but I also don't understand several bits and pieces of CB-writing itself so...
Code:fall_of_rome = { name = CB_NAME_FALL_OF_ROME war_name = WAR_NAME_FALL_OF_ROME sprite = 12 truce_days = 3650 is_permanent = yes is_independence = yes can_use = { ROOT = { de_facto_liege = FROM NOT = { has_landed_title = k_italy } } k_italy = { has_holder = no } FROM = { has_landed_title = e_wre #Target must be Western Roman Emperor } } is_valid = { #I don't understand what this part is about so I just leave it alone ROOT = { OR = { liege = { character = PREV # either independent } liege = { FROM = { is_liege_or_above = PREV # or have shared liege } } } } FROM = { higher_tier_than = ROOT } } on_success = { ROOT = { prestige = 100 k_italy = { usurp_title_plus_barony_if_unlanded = ROOT #victor becomes King of Italy } set_defacto_liege = ROOT } any_attacker = { participation_scaled_prestige = 100 } } on_fail = { ROOT = { prestige = -50 } any_attacker = { participation_scaled_prestige = -50 } } on_reverse_demand = { ROOT = { prestige = -100 prisoner = FROM } any_attacker = { participation_scaled_prestige = -100 } FROM = { prestige = 50 } } on_attacker_leader_death = { any_defender = { letter_event = { id = 251 } } end_war = invalid } attacker_ai_victory_worth = { factor = -1 # always accept } attacker_ai_defeat_worth = { factor = 100 } defender_ai_victory_worth = { factor = -1 # always accept } defender_ai_defeat_worth = { factor = 100 } }