• 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.
Showing developer posts only. Show all posts in this thread.
Can anyone explain triggered_modifiers.txt to me? I have worked up some nice ones for characters, but is it possible for provinces? Also, what have you done with this powerful little file?
I have a modifier triggered by being the defender in a religious war, giving some more levies. Works pretty well to help out the pagans, and make religious warfare in general a bit more drawn out.
The problem with triggered modifiers is that they don't actually display anywhere in-game (except a small popup when you first get them), so that limits their scope a lot.
 
What controls the Terra Incognita? The land provinces are in definition.csv but I don't know how to keep it as PTI, and the 255,255,255 sea terra incognita isn't in definition.csv at all.
To have a province act like Siberia and the Sahara does, simply don't mention them in landed_titles, and don't give them a history file.
 
Hello all - I've scrolled through most of the pages in this thread looking for an answer to my question, and haven't seen it yet. It's a pretty basic sort of question so I imagine it's answered somewhere, but so far no luck for me in finding it.

How do you remove cultural/religious requirements for forming a kingdom-level title? For example, Al-Andalus can only be formed by Muslims, or (in All the Way to Timbuktu) African kingdoms can only be formed by native cultures. I'd like to alter this so that anyone can form any kingdom to which they hold the requisite lands. Is there a way (simple or otherwise) to do this?

If this has already been answered I apologize (and would appreciate directions to the answer) - I'm unfamiliar with modding the game and don't trust myself enough yet to draw conclusions from related data and apply it to my specific question! Thanks in advance.
They're all in landed_titles, in the common folder. Some titles (E.G., Andalusia, France) have a section called allow, which gives the conditions for creating the title.
Remove the allow section, and anyone will be able to form them.
 
Your trigger is missing a closing bracket.
There are some missing at the end as well but those are probably lost in the copy&paste?

And I'm not sure event-ids should contain points.
Try if this works:

Code:
#coronation in Milan 
character_event = { 
    id = [COLOR=#FF0000]1000040000[/COLOR] 
    desc = "EVTDESC2002000" 
    picture = "GFX_evt_holy_emperor"
    border = "GFX_event_narrative_frame_religion"
     
    min_age =  16
    only_men = yes
    capable_only = yes
    prisoner = no 

    trigger = {
        has_landed_title = e_hre 
        location = { province_id = 235 }  
    [COLOR=#FF0000]}[/COLOR]
   

    option = {
        name = "EVTDESC2002000"    # Let it be done. 
        effect = {
        k_italy = { gain_title = FROM }
        prestige = 250
        piety = 100
[COLOR=#FF0000]        }
    }
}[/COLOR]
Namespace IDs should containt periods, but that isn't a namespace event, yeah.
Namespace is rather useful though; for example, every event I use is in the namespace meneth, so I have meneth.0, meneth.1, and so on. Ensures it won't ever conflict with other events.
 
Well as previously suggested I am trying to make an event (never made one before) to trigger the creation of the Most Serene Republic of Genoa and wanted to see if you guys think the event code looks ok. The event should only trigger for the AI when it is a republic and hold the ducal title of Genoa and at least one other. Additionally it requires 800g and 100 piety. If all these conditions are true, the title of k_genoa is given to that AI and it loses 800g and 100 piety. Should I also put a mtth in there too to keep it from spamming it everyday (and slowing it down?)

Code:
#Formation of the Most Serene Republic of Genoa
character_event = {
                id = 999999001

                min_age = 16
                only_men = yes
                culture = italian
                ai = yes
                is_republic = yes
                                independent = yes
                                
                trigger = {
                        has_landed_title = d_genoa
                        OR = {
                            num_of_duke_titles = 2
                            num_of_duke_titles = 3 #In case AI makes multiple ducal titles at the same time
                        }
                        piety = 100
                        wealth = 800
                }

                effect = {
                    k_genoa = { gain_title = ROOT }
                    prestige = 250
                    piety = -100
                    wealth = -800
                }
}
"num_of_duke_titles = 2" This means 2 or above, so "num_of_duke_titles = 3" is redundant.
Beyond that, I don't think most conditions can be defined where you've defined them. You should all of them (except min_age = 16 and only_men = yes) in the trigger.
Every event except those marked as is_triggered_only needs an MTTH.
 
So like this?

Code:
#Formation of the Most Serene Republic of Genoa
decision = {
                id = 999999001
                min_age = 16
                only_men = yes
                trigger = {
                                                ai_will_do = 1
                        culture = italian
                        ai = yes
etc.

And decisions don't use MTTH?
Just stick this in a new file in the decisions folder, and add localization.
Code:
decisions = {
    serene_republic_of_genoa = {
        potential = {
            ai = yes
            is_republic = yes
            independent = yes
            has_landed_title = d_genoa
            num_of_duke_titles = 2
            piety = 100
            wealth = 800
        }
        effect = {
            k_genoa = { gain_title = ROOT }
            prestige = 250
            piety = -100
            wealth = -800
        }
        revoke_allowed = {
            always = no
        }
        ai_will_do = {
            factor = 1                    
        }
    }
}
 
I didn't know CK2 allows the use of namepsaces. Very interesting.
Do I have to define them seperately before using them or will the game automatically define the namespace affenklaus if I give an event the ID 'affenklaus.0'?
You need to define them.
For my events, I simply put namespace = meneth at the beginning of every event file I've made.
Ok, I may look like a fool asking this but --
what "hides_from = yes" does? I'm failing to see its purpose... :unsure:
I think it hides who sent you an event. Useful for things like assassination attempts where the attacker is unknown.
 
Also, is there a glossary of how traits are coded in the savefile (which number represents which trait)?
You'll find that in one of the logfiles, as the traits are assigned numbers in order when launching the game.
 
Is there a utility that can pinpoint where I'm missing a bracket in my landed_titles.txt?? I've been scrolling through it looking for 20min and cannot find my mistake, so Ethiopia is de jure empire for much for the world. Audax Validator only tells me its not closed properly but not where it is.

Also, Audax Validator says my positions.txt has a "illegal closing bracket." What does this mean? I've an extra bracket that don't belong?
Use notepad++, it'll display where a section starts and end, so mismatched brackets are easy to find.
The illegal closing bracket error means you've got one or more closing brackets too many, or you're missing one or more opening brackets.
 
one turnaround can be be to add more sea provinces. more provinces to go through = more time to cross.


where we have now :
_______ _______
|___1___|___2___|

you can try to draw something like this :
___ ___ ___ ___ ___
|_1_|_2_|_3_|_4_|_5_|
That's not how movement works, though. Movement is faster the shorter you have to move, regardless of how many provinces you pass through. Going through 5km one km at a time is equally fast to going through 5km 2.5 km at a time.
The only thing that'd make it a bit slower, is that the province centers would be a bit off-center, making the 5km journey 5.5 or 6km.
 
You can only use has_landed_title after the title has been defined. I assume the kingdoms are within e_austrian_empire? If so you can simply stick the allow clause at the end rather than the beginning.
 
Hmm, that might be a bit of a problem. Since the empire is titular it has no de jure holdings. Also, Austria is titular. I kind of wanted to get around the issue of removing Bavaria's de jure territory by making Austria titular. With de jure drift, after creating the title, it wouldn't be an issue. It'd eventually become de jure Austrian.

How would I define the title? If it's a complicated process I may need to make a separate thread for this...
Just have the e_austrian_empire entry after the entires for Austria, Bohemia, and Hungary.
 
Last question, the commentary says that each culture must be "unique", but can they use the same names?
Yup. You can even link names that are the same, but differently spelled (E.G., the Saxon Harold and the Scandinavian Harald) by appending _GroupName.