• 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.

ealexandrohin

Recruit
31 Badges
Mar 14, 2020
7
1
  • Crusader Kings II
  • Crusader Kings III
  • Europa Universalis IV
  • Victoria 2
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Cities: Skylines
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
So, I decided to make a mod, which makes Harald Hardrada die in the 16th of September, because I'm sick of Norway winning the war and England with it, every single time. Every single time. I haven't seen Norman England in ages.

UPDATED:
Here's working mod, for those, who also tired of not Norman England:

Because, as we all know, from the history, with his death, his heir is not a claimant for the English throne, so war ends. That's what I want.
So, I've modded these files:
  • history/characters/norweagian.txt - in his character with 102531 ID
Code:
1066.9.16 = { # changed date to 16th from 26th of September
    death = yes # added command additionally

    death = {
        death_reason = death_battle
        killer = 122
    }
}
  • history/titles/k_norway.txt
Code:
1066.9.16={ # changed date here too
    holder=102532 # Magnus Haraldson
}
  • history/wars/norwegian_invasion.txt
Code:
1066.9.16 = { # date here too
    rem_attacker = 102531
    rem_defender = 122
}

And it just doesn't work. I'm starting the game, and one day after - nothing happens, although if you change date while choosing character, it shows that Harald dies and his heir inherits.
 
Last edited:
Solution
Just made character event, which triggered only for him:
Code:
namespace = AN

character_event = {
    id = AN.1
    is_triggered_only = no
    hide_window = yes
    ai = yes
    
    character = c_102531
    date = 1066.9.16

    immediate = {
        c_102531 = {
            death = {
                death_reason = death_battle
                killer = 122
            }
        }
    }
}

Done! It worked.
Solved.
  • Just made character event, which triggered only for him:
    Code:
    namespace = AN
    
    character_event = {
        id = AN.1
        is_triggered_only = no
        hide_window = yes
        ai = yes
        
        character = c_102531
        date = 1066.9.16
    
        immediate = {
            c_102531 = {
                death = {
                    death_reason = death_battle
                    killer = 122
                }
            }
        }
    }

    Done! It worked.
     
    Solution