• 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.
I'm in the process of making a mod revamping the Tartaria provinces, and for some reason, whenever I try to edit the title history of c_fergana or c_oshrusana in any way, the entire history doesn't show up in the game...for instance, in the 1066 start date, it should be part of the Kingdom of Khiva, but instead it's a part of the Seljuk Empire with No Ruler. My first thought was that it was clashing with some other file, but I've got no other mods active, and I haven't mentioned Oshrusana or Fergana anywhere else in my mod so far, so I'm clueless here. Help!
Probably would help if you post a copy of one of the problem files.
 
Makes sense. Is it possible to use a modifier like 0.01 or 0.05? I've only ever seen them to one decimal place. Rather than using decimal places though the plan was to kind of add enough exemptions that sometimes it will happen if things change dramatically away from history. If France or the HRE are inherited by a foreign culture ruler for instance, or if Rome gets restored.
Yes, vanilla events go down to factor = 0.001.
 
That's odd, because the vanilla files don't seem to worry about setting variables before changing them. For instance, the "bob_saget" variable (achievement-related) is only ever changed by 1 and checked if it's 4.5.
Interestingly, all 4 of the achievement-related variables are never set, only checked and changed (and they appear to default to 0). It seems relevant that each one is guaranteed to be checked before being changed. It may be that any set *or* check will ensure the variable exists, thus making it safe. A simple thing to do would be to perform a check just before changing, even if the check is useless. This would be more reliable than any MTTH event solution.

Some of the other variable don't *seem* to be guaranteed to be set or checked before changed, but I couldn't follow all the possible logic in a reasonable time. :)
 
It may be that any set *or* check will ensure the variable exists, thus making it safe. A simple thing to do would be to perform a check just before changing, even if the check is useless. This would be more reliable than any MTTH event solution.
I've tried that with decisions, and the variables show up completely blank in localisation (not zero, just empty space) unless they've actually been created first with set_variable. Unless, of course, I messed up something when checking that. Could use more testing, I suppose. ...I wish those would show up in charinfo, so I wouldn't have to rely on localisation to check them.

All I know is that I no longer get error messages in error.log after making sure that they get set first, before being changed.
 
Last edited:
  • 1
Reactions:
A question from me: Do you think there is a way to mod something like pilgrimage, like a travel, so that the ruler is technically away (regency)? Like in an event series ... would be great if anyone has an idea.

I believe pilgrimages already require regencies (it has been a while since I played a character going on one, but the trait supposedly requires that), so I suspect you could use a trait with "pilgrimage = yes" for what you want (though that might show up as "X is on pilgrimage" unless you change the localization; I believe some mods change that to "X is away", or the like). Some kind of event series could very likely be written for that, but depending on what you want to happen in these events it might be very easy or very hard.
 
  • 1
Reactions:
Is it posssible to change the succession laws of a title via an event without applying any opinion modifiers normally resulting from a succession law change?

Edit: Figured it out.
 
Last edited:
I believe pilgrimages already require regencies (it has been a while since I played a character going on one, but the trait supposedly requires that), so I suspect you could use a trait with "pilgrimage = yes" for what you want (though that might show up as "X is on pilgrimage" unless you change the localization; I believe some mods change that to "X is away", or the like). Some kind of event series could very likely be written for that, but depending on what you want to happen in these events it might be very easy or very hard.

Thanks a lot, I already thought of this workaround ... btw, does anybody know why a pligrimage does not start after choosing the decision? How long a char have to wait for it after coosing the dec.?
 
Thanks a lot, I already thought of this workaround ... btw, does anybody know why a pligrimage does not start after choosing the decision? How long a char have to wait for it after coosing the dec.?

You need to get a couple of events directly afterwards and then set off after 15 days. It would be possible to set off at once, if desired.
 
Yep, although you also do it in the triggered description however you can choose to not add a new description each time.
Code:
desc = {
    picture = GFX_YOUR_PIC
    trigger = { <conditions> }
}

Hey dude, I followed what your code but I'm having problems. The pictures don't show, am I missing something?
Also I'm currently writing in 2.4.5, not sure if that is a contributing factor. I enclosed an example of my work, though I have written quite a few other events with multiple pictures and different conditions (mainly flags), yet none seem to work.

Code:
narrative_event = {
    id = "quest.53"
    title = "EVTTITLEquest.53" # Choose Your Path
    desc = "EVTDESCquest.53" # Four roads lie before you...
   
    is_triggered_only = yes
   
    desc = {
        picture = GFX_evt_path_spring
        trigger = {
            month = 2
            NOT = { month = 5 }
        }
    }
    desc = {
        picture = GFX_evt_path_summer
        trigger = {
            month = 5
            NOT = { month = 8 }
        }
    }
    desc = {
        picture = GFX_evt_path_autumn
        trigger = {
            month = 8
            NOT = { month = 11 }
        }
    }
    desc = {
        picture = GFX_evt_path_winter
        trigger = {
            month = 11
            NOT = { month = 2 }
        }
    }
   
    option = {
        name ="EVTOPTAquest.53" # Go North
        trigger = { NOT = { has_character_flag = go_north_quest } }
        set_character_flag = go_north_quest
        narrative_event = { id = quest.54 days = 60 random = 30 }
    }
    option = {
        name ="EVTOPTBquest.53" # Go East
        trigger = { NOT = { has_character_flag = go_east_quest } }
        set_character_flag = go_east_quest
        narrative_event = { id = quest.55 days = 60 random = 30 }
    }
    option = {
        name ="EVTOPTCquest.53" # Go South
        trigger = { NOT = { has_character_flag = go_south_quest } }
        set_character_flag = go_south_quest
        narrative_event = { id = quest.56 days = 60 random = 30 }
    }
    option = {
        name ="EVTOPTDquest.53" # Go West
        trigger = { NOT = { has_character_flag = go_west_quest } }
        set_character_flag = go_west_quest
        narrative_event = { id = quest.57 days = 60 random = 30 }
    }
}
 
Hey dude, I followed what your code but I'm having problems. The pictures don't show, am I missing something?
Also I'm currently writing in 2.4.5, not sure if that is a contributing factor. I enclosed an example of my work, though I have written quite a few other events with multiple pictures and different conditions (mainly flags), yet none seem to work.

Code:
narrative_event = {
    id = "quest.53"
    title = "EVTTITLEquest.53" # Choose Your Path
    desc = "EVTDESCquest.53" # Four roads lie before you...
  
    is_triggered_only = yes
  
    desc = {
        picture = GFX_evt_path_spring
        trigger = {
            month = 2
            NOT = { month = 5 }
        }
    }
    desc = {
        picture = GFX_evt_path_summer
        trigger = {
            month = 5
            NOT = { month = 8 }
        }
    }
    desc = {
        picture = GFX_evt_path_autumn
        trigger = {
            month = 8
            NOT = { month = 11 }
        }
    }
    desc = {
        picture = GFX_evt_path_winter
        trigger = {
            month = 11
            NOT = { month = 2 }
        }
    }
  
    option = {
        name ="EVTOPTAquest.53" # Go North
        trigger = { NOT = { has_character_flag = go_north_quest } }
        set_character_flag = go_north_quest
        narrative_event = { id = quest.54 days = 60 random = 30 }
    }
    option = {
        name ="EVTOPTBquest.53" # Go East
        trigger = { NOT = { has_character_flag = go_east_quest } }
        set_character_flag = go_east_quest
        narrative_event = { id = quest.55 days = 60 random = 30 }
    }
    option = {
        name ="EVTOPTCquest.53" # Go South
        trigger = { NOT = { has_character_flag = go_south_quest } }
        set_character_flag = go_south_quest
        narrative_event = { id = quest.56 days = 60 random = 30 }
    }
    option = {
        name ="EVTOPTDquest.53" # Go West
        trigger = { NOT = { has_character_flag = go_west_quest } }
        set_character_flag = go_west_quest
        narrative_event = { id = quest.57 days = 60 random = 30 }
    }
}
I am pretty sure it doesn't work on 2.4.5, I think it is a feature from 2.5 onward as it was definitely in some of the Conclave events
 
Probably would help if you post a copy of one of the problem files.

That's the problem, though, there isn't one! Or at least, not that I can find! It's just that for some reason, if I edit c_oshrusana or c_fergana in any way (even if it's changing a line from d_khiva to d_merv or something), the province history doesn't show up in the game at all, with the two provinces being sworn to d_khiva, but with "No Holder" when you mouse over it.
 
That's the problem, though, there isn't one! Or at least, not that I can find! It's just that for some reason, if I edit c_oshrusana or c_fergana in any way (even if it's changing a line from d_khiva to d_merv or something), the province history doesn't show up in the game at all, with the two provinces being sworn to d_khiva, but with "No Holder" when you mouse over it.
If you edit those title history files without ever saving them, then they should affect the game at all.

If you edit those files and save them, *those* are the files I'd need to see. And not just copy the text out of them into a post, I'm looking for the file itself.
 
This is (probably) a really basic question, but how does one go about adding culture-specific names for different titles? Not specific landed titles, but the tier itself. Like how Iranian-culture characters have Shahanshahs, Shahs, and Satraps instead of Emperors, Kings, and Dukes.
 
This is (probably) a really basic question, but how does one go about adding culture-specific names for different titles? Not specific landed titles, but the tier itself. Like how Iranian-culture characters have Shahanshahs, Shahs, and Satraps instead of Emperors, Kings, and Dukes.

Add localiation tags like emperor_<culture/culture_group>, etc. For women you need emperor_female_<culture/culture_group> (reigning) and emperor_consort_<culture/culture_group> (spouses of the title holder). You might also want empire_of_<culture/culture_group> and similar to rename the title (e.g. Sultanate of Egypt instead of Kingdom of Egypt for Arabic rulers), and a <city/temple/tribal>_ prefix if you want to rename doges, temple holders, or tribal rulers.
 
New and quick question: Are there province or even holding modifiers, and where can they be found in the files?

Oh, and a second question: I cannot find a list of all possible event effects / triggers / modifiers ... used to have one for "CK 1", so I look out for something like that in part 2.
 
Last edited: