• 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.
Hello, I coded my own religion into the game, and got it working for the most part the way I want except despite me putting "
abrahamic_hostility_doctrine", it still lists Catholic as "Astray", as a result I cannot holy war catholic lords. I've uploaded the file as an attachment.

What would I need to change to also make Catholic faiths evil instead of astray for my religion? Thanks in advance.

Disregard, i fixed the issue. Turns out having more than one Hostility doctrine conflicts with the others.
 
Anyone here experienced the invisible debug console (with 1.1.x on Linux) and have any idea to work around it?
I know this question is a "little bit" older. But in case you're still around, did you mean, that you couldn't open the console even the debug mode was obvious active?
In case this was the case, the only workaround (by now) I found with help of the support was to ensure that the US keyboard layout was active, my default layout is a German one.

Besides, does anyone of you modders found the option name to add a new hotkey for the console in the shortcuts files?

//EDIT:
Be aware, if you start the game with US layout you should be able to open and close the console as you like. While the game is running you can also switch back to your original layout. This seems not work the other way around. switching to US layout while the game is still running has no positive effect on the ability to open the console.
 
Last edited:
Good day to you all.
I've copied debug event about force starting pregnancy with selected character and tweaked it to scope selected character's spouse instead of player character. Normally, it should be fired from option in my other event, and it works as intended, but the problem is, this event started randomly firing after winning battles. How can I stop this? Event code is below:
Code:
impult.0031 = {
    type = character_event
    title = debug.0002.t
    desc = debug.0002.desc
    theme = default
    left_portrait = scope:recipient

    #Normal pregnancy
    option = {
        name = debug.0002.a
           
        if = { limit = { scope:recipient = { is_female = yes } }
            scope:recipient = { make_pregnant = { father = scope:recipient.primary_spouse } } }
        else = {
            scope:recipient.primary_spouse = { make_pregnant = { father = scope:recipient } } } }

    #One please
    option = {
        name = debug.0002.b
   
        if = { limit = { scope:recipient = { is_female = yes } }
            scope:recipient = { make_pregnant = { father = scope:recipient.primary_spouse number_of_children = 1 } } }
        else = {
            scope:recipient.primary_spouse = { make_pregnant = { father = scope:recipient number_of_children = 1 } } }
}
 
    #Two please
    option = {
        name = debug.0002.c
   
     
if = { limit = { scope:recipient = { is_female = yes } }
            scope:recipient = { make_pregnant = { father = scope:recipient.primary_spouse number_of_children = 2 } } }
        else = {
            scope:recipient.primary_spouse = { make_pregnant = { father = scope:recipient number_of_children = 2 } } }
    }

    #Three please
    option = {
        name = debug.0002.d  
   
     
if = { limit = { scope:recipient = { is_female = yes } }
            scope:recipient = { make_pregnant = { father = scope:recipient.primary_spouse number_of_children = 3 } } }
        else = {
            scope:recipient.primary_spouse = { make_pregnant = { father = scope:recipient number_of_children = 3 } } }
    }

    #Go crazy
    option = {
        name = debug.0002.e
   
   
if = { limit = { scope:recipient = { is_female = yes } }
            scope:recipient = { make_pregnant = { father = scope:recipient.primary_spouse number_of_children = 10 } } }
        else = {
            scope:recipient.primary_spouse = { make_pregnant = { father = scope:recipient number_of_children = 10 } } }
    }
}

And the event is supposed to be fired in this code:
Code:
option = {
        name = impult_events.0030.pregnancy_spouse
     
        trigger = {
            scope:recipient = { is_pregnant = no }
            scope:recipient.primary_spouse = { is_pregnant = no }
            OR = {
                AND = { scope:recipient = { is_female = yes } scope:recipient.primary_spouse = { is_male = yes } }
                AND = { scope:recipient = { is_male = yes } scope:recipient.primary_spouse = { is_female = yes } } } }
     
        trigger_event = {
            id = impult.0031 } }

Edit: The reason was incorrect namespace in the first event
 
Last edited:
How can I make a trait give everyone an imprisonment reason (or execution reason and so on) against a character who has it, except for other characters who also have it.

I was thinking something like this, in the trait code:
triggered_opinion = {
opinion_modifier = <trait name>_opinion
ignore_opinion_value_if_same_trait = yes
}

And then put imprisonment_reason, and so on, in the opinion modifier in question.

But 'ignore_opinion_value_if_same_trait,' according to the _traits.info file, only makes it "ignore the opinion effect," but "punishment reasons still apply." I'm mainly concerned with the punishment reasons, not the opinion effect.
 
I'm trying to use the set_pregnancy_gender in conjunction with the blood_legacy_4 effect;

I'm thinking it should be like this:


else_if = {
limit = {
scope:child.dynasty = {
exists = var:blood_legacy_4_intellect_good_1
}
NOR = {
has_trait = intellect_good
has_trait = intellect_bad
}
}
set_pregnancy_gender = female **********does not work. at all. very sad.
random = {
chance = blood_legacy_4_chance
modifier = {
add = blood_legacy_4_extra_player_chance
any_parent = { is_ai = no }
}
add_trait = intellect_good_1
}
}

What am I doing wrong?
Should the effect be in events instead? if so, how?


*EDIT*

if anyone is curious, I *think* I've found the solution:
I've put this code in; I'm not sure which one is the correct set, but it's not breaking anything and I'm not going to mess with it right now.
Code:
on_birth_child = {
    events = {
        middle_east_decisions.0012 #Saoshyant Descendants.
        major_decisions.0101 #Divine/Consecrated Blood Descendants.
        birth.8001 #Reincarnation
        birth.8011 #Born in the Purple
        trait_specific.0500 #To handle genetic traits not expressed until later in life
        debug.0010 # Disease data tracking
    }
    hidden_effect = {
        if = {
            limit = {
                scope:mother.dynasty = {
                    exists = var:blood_legacy_4_intellect_good_1
                }
            }
            set_pregnancy_gender = female
        }
    }
    hidden_effect = {
        if = {
            limit = {
                scope:real_father.dynasty = {
                    exists = var:blood_legacy_4_intellect_good_1
                }
            }
            set_pregnancy_gender = female
        }
    }
    hidden_effect = {
        if = {
            limit = {
                scope:mother.dynasty = {
                    exists = var:blood_legacy_4_intellect_good_1
                }
            }
            gender = female
        }
    }
    hidden_effect = {
        if = {
            limit = {
                scope:real_father.dynasty = {
                    exists = var:blood_legacy_4_intellect_good_1
                }
            }
            gender = female
        }
    }
 
Last edited: