Crusader Kings III

Crusader Kings III

More Single Combats
Snakie 1 Oct, 2024 @ 11:52pm
Changing Combat Lethality Game Rule to Only Affect Player Duel
Did some tinkering and I think I have done it - Duel lethality game rule only affect player duel.

Here is the way to do it:
  1. Go to where you installed steam, then take this path: steam -> steamapps -> workshop -> content -> 1158310 -> 2510732954

    Copy paste this path after you open your steam folder:
    \steamapps\workshop\content\1158310\2510732954\events

    Example: C:\program files (x86)\steam\steamapps\workshop\content\1158310\2510732954\events
  2. Open the folder event
  3. Open the file single_combat_events.txt
  4. Search for #offramp for battlefield events OR line 1865
  5. Replace the code block with the code below

scripted_effect work_out_wounds_or_death_effect = { #offramp for battlefield events if = { limit = { exists = scope:battlefield_target } scope:sc_loser = { increase_wounds_effect = { REASON = battle } } } # GAME RULE ONLY APPLY TO - PLAYER vs AI - DUEL else_if = { limit = { OR = { scope:sc_victor = { is_ai = false } scope:sc_loser = { is_ai = false } } } #Fatality:Practice - no wounds, please else_if = { limit = { scope:fatality = flag:practice } # No extra effect. } # Fatality:No = death has been disabled. else_if = { limit = { scope:fatality = flag:no } scope:sc_loser = { increase_wounds_no_death_effect = { REASON = duel } } } # Fatality:Possible = death is only possible via wounds. else_if = { limit = { scope:fatality = flag:possible } scope:sc_loser = { increase_wounds_effect = { REASON = duel } } } # Fatality:Always = losing is always fatal. else_if = { limit = { scope:fatality = flag:always } scope:sc_victor = { if = { limit = { this = scope:sc_attacker NOT = { has_execute_reason = scope:sc_loser } } add_kinslayer_trait_or_nothing_effect = { VICTIM = scope:sc_loser } } } scope:sc_loser = { death = { killer = scope:sc_victor death_reason = death_duel } } } } # MAKING SURE - AI vs AI - DUEL TO USE VANILLA CALCULATION # Fatality:Default = death is only possible for non-tribals, and always for tribals, taking scope:sc_attacker as the instigating government. else = { if = { limit = { fatality_default_will_die_trigger = yes } scope:sc_loser = { death = { killer = scope:sc_victor death_reason = death_duel } } } else = { scope:sc_loser = { increase_wounds_effect = { REASON = duel } } } } }

I only tested for 30 minutes because I don't have time. The always fatal game rule works for me. Anyone that has better CK3 modding knowledge please verify if I did everything correctly.
Last edited by Snakie; 14 Oct, 2024 @ 1:47am