• 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
Using two death commands won't work any better than using one.
Your event has several issues (using triggers as pre-triggers), so I'm surprised it's working at all.

History modding is limited and can be finicky, but as far as I know, death commands work as one would expect them to.
 
Using two death commands won't work any better than using one.
Your event has several issues (using triggers as pre-triggers), so I'm surprised it's working at all.

History modding is limited and can be finicky, but as far as I know, death commands work as one would expect them to.
Yeah, I know, but I put it just for sure, you know. :)
Well, if it works - it works.

That though, seems not to be true, because it simply doesn't work, at least for me.

Anyway, thank you for answering! <3
 
...
That though, seems not to be true, because it simply doesn't work, at least for me.
...

I suspect a misunderstanding here.
As far as i know the history folder is realy only for that, namely history, so the history before the point where you start a campaign.
So if someone has a set death date in its history file, the character technically dies at that date when you start your campaign afterwards. When you start your campaign earlier than the death date, then they are not set to die at that date.
Hence why you need an event for that.
 
  • 1Like
Reactions:
I suspect a misunderstanding here.
As far as i know the history folder is realy only for that, namely history, so the history before the point where you start a campaign.
So if someone has a set death date in its history file, the character technically dies at that date when you start your campaign afterwards. When you start your campaign earlier than the death date, then they are not set to die at that date.
Hence why you need an event for that.
I suspect you're right. You are indeed correct that the history is only read once, which is before starting a new game. It is never used to determine anything that happens after a game has been started, and for good reason: If I wanted to watch history unfold, I'd watch a movie or read a book.
 
  • 1Like
Reactions:
..... If I wanted to watch history unfold, I'd watch a movie or read a book.

*triggered* ;)

Well the good reason is that historic events and stories are done by events in 'events', but regarding your general last
sentence and as an old PDX gamer....

I still find early Paradox games managed it quite well to balance the game aspect with the history frame through events
and nation specific data restrictions. It still felt like you play a unique nation and that while you have to manage it with
predetemined qualities and quantities you could still make a dent in it, leave your mark, while historic events partly railroading
a campaign were already possible to be turned off or restrict their extent and mods openend that up to your liking.

Now everything is 'sandbox', everything the same and bland with hints of indivudalism to nations added later in DLCs, but mostly...meh.
Just my 2cents.

So much for that. :p
Yeah i'm admittedly sometimes easy to provoke for a reaction.
 
Last edited: