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

SunshinePeriwinkle

Recruit
15 Badges
Jul 27, 2020
9
5
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Imperator: Rome
  • Stellaris: Lithoids
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Stellaris: Necroids
I am making a mod called Historical Marriages, Births, and Deaths. At the moment I am trying to master generating characters with historical Ids. Specifically I am playing with Papia Arques (Papia de Arques) the future wife to Hrolfr Normandie. I am a noob and would like some help as to how to proceed and maybe to determine what I am doing wrong. When I manually try and fire the event to generate Papia there is a brief flash of an event screen then nothing happens. I thought I made it in the event script so that there would be no Event window.
namespace = HMB

# Event for Hrolfr's Birth
character_event = {
id = HMB.hrolfr_birth_event
hide_window = yes

immediate = {
create_character = {
name = "Hrolfr"
male = yes
dynasty = 752
martial = 7
diplomacy = 7
intrigue = 5
stewardship = 7
religion = "norse_pagan"
culture = "norse"
trait = skilled_tactician
birth = "846.6.6"
id = 242
}
}
}

# Event for Hrolfr's Death
character_event = {
id = HMB.hrolfr_death_event
hide_window = yes

immediate = {
character_event = {
id = HMB.hrolfr_death_action
hidden = yes

immediate = {
character = {
id = 242 # Hrolfr's character ID
death = "932.1.1"
}
}
}
}
}

# Event for Papia's Birth
character_event = {
id = HMB.papia_birth_event
hide_window = yes

immediate = {
create_character = {
name = "Papia"
female = yes
dynasty = 100097
martial = 7
diplomacy = 7
intrigue = 5
stewardship = 7
religion = "catholic"
culture = "french"
trait = education_learning_3
birth = "870.1.2"
add_to_court = 168041
hide_window = yes
id = 241
}
}
}

# Event for Papia's Death
character_event = {
id = HMB.papia_death_event
hide_window = yes

immediate = {
character_event = {
id = HMB.papia_death_action
hidden = yes

immediate = {
character = {
id = 241 # Papia's character ID
death = "943.1.2"
}
}
}
}
}

# Event for Papia's Marriage to Hrolfr Normandie
character_event = {
id = HMB.papia_hrolfr_marriage_event
hide_window = yes

trigger = {
age = 16
character = 241
}

immediate = {
character_event = {
id = HMB.papia_hrolfr_marriage_action
hidden = yes

immediate = {
character = {
id = 241
marry = 242
}
}
}
}
}

on_startup = {
character_event = {
id = HMB.hrolfr_birth_event
days = 0 # This event triggers immediately at game start
}
character_event = {
id = HMB.hrolfr_death_event
days = 31235 # This event triggers immediately at game start
}
character_event = {
id = HMB.papia_birth_event
days = 731 # This event triggers immediately at game start
}
character_event = {
id = HMB.papia_death_event
days = 26281 # This event triggers immediately at game start
}
character_event = {
id = HMB.papia_hrolfr_marriage_event
days = 0 # This event triggers immediately at game start
}
}
 
Is this a mod for CK2 or CK3?
Because it seems like you're using CK2 syntax. Maybe you were moved to the wrong forum?

In CK3, instead of character_event = { id = xxx } we open with the namespace.id
Code:
HMB.1 = {
    type = character_event
    ...
}
Here's a wiki page on events:
 
I'm pretty certain this is meant for CK2 because "Skilled Tactician" is skilled_tactician in CK2 but education_martial_3 in CK3
 
I'm pretty certain this is meant for CK2 because "Skilled Tactician" is skilled_tactician in CK2 but education_martial_3 in CK3
Oh OK then. Off we go...
 
If this is CKII, which it might not be because CKII events normally have numeric even identifiers, then I'll take a stab.

Firstly, "hide_window =yes" means that there shouldn't be a window, but I don't have the wiki up and the syntax might be something else. You have "hidden = yes" in the hrofr death event. Secondly, what year is it you are doing this in? If you are trying to generate her before her birth, i think the event fails. Before I tried generating characters with specific birth dates, I would try generating the character with a specific age. There are lots of events that do that to pull from, so it should be easy to find.

Also, the hrofr death event has an extra "character_event = {" in it. You have the right number of braces, but that might be causing problems anyway. Can you upload the actual files you have? Or paste each file in an individual code block. If all the code you posted is in one file, it won't work for your purposes, even if the events work.
 
Heya folks thanks for responding this was originally posted for CK3. I think I need to learn to start from the top. The organization and function of the files is what I would like help with more than anything else. I tried my best to understand what kind event files do what and where they go. Lets just start from scratch and start from the top.
 
Last edited:
Is this a mod for CK2 or CK3?
Because it seems like you're using CK2 syntax. Maybe you were moved to the wrong forum?

In CK3, instead of character_event = { id = xxx } we open with the namespace.id
Code:
HMB.1 = {
    type = character_event
    ...
}
Here's a wiki page on events:
In my shoddy paragraph I actually did type namespace= HMB not namespace.id I get confused about the templates and what to put in sometimes.
 
If this is CKII, which it might not be because CKII events normally have numeric even identifiers, then I'll take a stab.

Firstly, "hide_window =yes" means that there shouldn't be a window, but I don't have the wiki up and the syntax might be something else. You have "hidden = yes" in the hrofr death event. Secondly, what year is it you are doing this in? If you are trying to generate her before her birth, i think the event fails. Before I tried generating characters with specific birth dates, I would try generating the character with a specific age. There are lots of events that do that to pull from, so it should be easy to find.

Also, the hrofr death event has an extra "character_event = {" in it. You have the right number of braces, but that might be causing problems anyway. Can you upload the actual files you have? Or paste each file in an individual code block. If all the code you posted is in one file, it won't work for your purposes, even if the events work.
So my goal is to generate Papia as per the historical birth date and have her die the historical death date. The have her marry Hrolfr and have her historical 2 kids William and Adela. That is my whole bread and jam for this mod. Papia in this case was born 870.1.2 and died 943.1.2 Her historical ID is 241 Her Dynasty is 100097 Papia lived in Bayeux. I posted what I had I wasn't sure if I could just cram everything in or I needed to follow a certain format with respect to the different kinds of event files. This is for CK3.
 
Last edited: