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

Crossmannia

Shadow Captain
53 Badges
Feb 11, 2007
51
1
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Europa Universalis IV: El Dorado
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Nemesis
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
Two issues.

For my own personal mod I'm adding Warhammer Slaaneshi daemons (care of the Geheimnisnacht mod) as a new culture off the western coast of Europe. First, I want to add a slaanesh_daemon and slaanesh_daemonette trait that males and females of the culture always have instantly instead of using the command console to add it to them in-game, if that's possible. In my tests so far, I create a slaanesh character but male or female, they lack the trait, but I can add it using add_trait. Each code looks like this currently:

Code:
slaanesh_daemonette = {
    potential = {
        culture = slaaneshi
        is_female = yes
    }
    opposites = {
    slaanesh_daemon
    }
    same_opinion = 10
    opposite_opinion = 10
    general_opinion = 15
    sex_appeal_opinion = 50
    fertility = 0.25
    health = 100
    combat_rating = 4
    martial = 5
    diplomacy = 5
    intrigue = 6
    customizer = no
}

slaanesh_daemon = {
    potential = {
        culture = slaaneshi
        is_female = no
    }
    opposites = {
    slaanesh_daemonette
    }
    same_opinion = 10
    opposite_opinion = 10
    general_opinion = 15
    sex_appeal_opinion = 50
    fertility = 0.25
    health = 100
    combat_rating = 4
    martial = 5
    diplomacy = 5
    intrigue = 6
    customizer = no
}

I don't know if something there in the conditions is wrong or missing. Or can what I'm trying to do even be done? Does there need to be a chance = 100?

The second question is that I've created a daemon_blood trait for offspring of human/daemon partners. The agnatic/enatic works fine if the parent has the trait, as I want it to always be passed on generation after generation. However I don't know how, again if possible, to have a character born with the trait from the initial human/daemon mating. The code for daemon_blood currently looks like this:

Code:
daemon_blood = {
    
    potential = {
        OR = {
        culture = slaaneshi
        }
    }
    
    agnatic = yes
    enatic = yes
    same_opinion = 5
    vassal_opinion = 5
    general_opinion = 10
    sex_appeal_opinion = 25
    fertility = 0.1
    health = 100
    combat_rating = 3
    martial = 5
    diplomacy = 5
    intrigue = 6
}

So, if anyone has any thoughts on how I can make these work how I'd like please let me know. And if I'm asking for something that just can't be done as I'm imagining, please let me know. And if you like the idea and want to use it yourself, go right ahead (just credit me if it's a public mod.)
 

theStormWeaver

Lead Dev - Ancient Religions
64 Badges
Jul 28, 2012
2.407
474
www.github.com
  • Battle for Bosporus
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV
  • Crusader Kings II: Reapers Due
  • Rome Gold
  • 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: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings III
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Surviving Mars: First Colony Edition
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Imperator: Rome - Magna Graecia
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Stellaris: Digital Anniversary Edition
  • Cities: Skylines
  • Imperator: Rome
  • Surviving Mars: First Colony Edition
  • Stellaris - Path to Destruction bundle
For both of these you're likely going to need to write an on_action event to give the appropriate trait. For the first, you would make an on_yearly_pulse event that checks for characters of the slaanesh culture that *don't* have one of the traits, then give them the appropriate trait. For the second, you'd do an on_birth event and check mother and real_father_even_if_dead and assign the trait that way.
 

SchwarzKatze

Field Marshal
45 Badges
Nov 8, 2008
5.827
4.439
For both of these you're likely going to need to write an on_action event to give the appropriate trait. For the first, you would make an on_yearly_pulse event that checks for characters of the slaanesh culture that *don't* have one of the traits, then give them the appropriate trait
It'd be better to use on_startup and on_character_convert_culture than to check yearly.
 

theStormWeaver

Lead Dev - Ancient Religions
64 Badges
Jul 28, 2012
2.407
474
www.github.com
  • Battle for Bosporus
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV
  • Crusader Kings II: Reapers Due
  • Rome Gold
  • 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: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings III
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Surviving Mars: First Colony Edition
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Imperator: Rome - Magna Graecia
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Stellaris: Digital Anniversary Edition
  • Cities: Skylines
  • Imperator: Rome
  • Surviving Mars: First Colony Edition
  • Stellaris - Path to Destruction bundle
Why? I mean, on_startup sure, but on_character_convert_culture won't catch when characters are spawned by the game (such as when courtiers are created for new barons). With those two actions it could be 10 years before they get checked.

That does bring up the issue of characters that are converted to Slannesh culture, but *aren't* actually Slaanesh demons.
 

Crossmannia

Shadow Captain
53 Badges
Feb 11, 2007
51
1
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Europa Universalis IV: El Dorado
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Nemesis
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
That's a good point I hadn't considered.

I haven't had a chance to try any of these suggestions yet due to life and work, but hopefully this week I'll see what works.

I appreciate all the feedback.
 

Crossmannia

Shadow Captain
53 Badges
Feb 11, 2007
51
1
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Europa Universalis IV: El Dorado
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Nemesis
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
Although I'm not too worried about converts getting the trait. From a storytelling point of view I'd look at it as the converts to the culture accept some infernal pact and thus become daemons. But I hadn't even considered that before. Good catch.
 

Crossmannia

Shadow Captain
53 Badges
Feb 11, 2007
51
1
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Europa Universalis IV: El Dorado
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Nemesis
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
Okay, so I tried this and it didn't work. Albeit, I was pretty sure it wouldn't because without knowing exactly what I'm doing here... it still looks wrong. Thoughts?

Code:
#daemon blood
character_event = {
    id = 44999
    
    hide_window = yes
    
    trigger = {
        on_birth = {
        OR = {
            real_father = {
                trait = slaanesh_daemon
                }
            real_father_even_if_dead = {
                trait = slaanesh_daemon
                }
            mother = {
                trait = slaanesh_daemonette
                }
            mother_even_if_dead = {
                trait = slaanesh_daemonette
                }
        }
    }
    }
    add_trait = daemon_blood
}
#slaanesh daemon
character_event = {
    id = 44998
    
    hide_window = yes
    
    trigger = {   
        on_startup = {
            culture = slaaneshi
            female = no
        }
    }
    
    add_trait = slaanesh_daemon
}
#slaanesh daemonette
character_event = {
    id = 44997
    
    hide_window = yes
    
    trigger = {
        on_startup = {
            culture = slaaneshi
            female = yes
        }
    }
    
    add_trait = slaanesh_daemonette
}
 

SchwarzKatze

Field Marshal
45 Badges
Nov 8, 2008
5.827
4.439
Okay, so I tried this and it didn't work. Albeit, I was pretty sure it wouldn't because without knowing exactly what I'm doing here... it still looks wrong. Thoughts?

Code:
#daemon blood
character_event = {
    id = 44999
   
    hide_window = yes
   
    trigger = {
        on_birth = {
        OR = {
            real_father = {
                trait = slaanesh_daemon
                }
            real_father_even_if_dead = {
                trait = slaanesh_daemon
                }
            mother = {
                trait = slaanesh_daemonette
                }
            mother_even_if_dead = {
                trait = slaanesh_daemonette
                }
        }
    }
    }
    add_trait = daemon_blood
}
#slaanesh daemon
character_event = {
    id = 44998
   
    hide_window = yes
   
    trigger = {  
        on_startup = {
            culture = slaaneshi
            female = no
        }
    }
   
    add_trait = slaanesh_daemon
}
#slaanesh daemonette
character_event = {
    id = 44997
   
    hide_window = yes
   
    trigger = {
        on_startup = {
            culture = slaaneshi
            female = yes
        }
    }
   
    add_trait = slaanesh_daemonette
}
Put events in on_actions, not the other way around.

And you probably need to wrap the effects with immediate = { }
 

Crossmannia

Shadow Captain
53 Badges
Feb 11, 2007
51
1
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Europa Universalis IV: El Dorado
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Nemesis
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
Ah, yeah. I had written immediate down in my notes but forgot all about it.

As for the on_action, do you mean in the on_action.txt file? I have them in a separate file in the on_action folder in my mod folder. (If I remember correctly as I'm at work right now.)

Or do they need to be inside brackets like

on_action = {
*events*
}