• 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.
Could someone please tell me if this trigger is set up correctly? I'm wanting to target any member of my own dynasty who holds land inside my empire and doesn't have my preferred succession laws.

Code:
    is_triggered_only = yes
    
    trigger = {
        ai = no    
        has_landed_title = yes
        is_feudal = yes
        dynasty = 1235813
        top_liege = e_nova_roma
        NOT = { has_law = succ_gavelkind }
        NOT = { has_law = agnatic_succession }
    }
    
    mean_time_to_happen = {
        days = 1                
    }

is_triggered_only = yes
mean_time_to_happen = { days = 1 }
Can't have both of those ;)
 
So, namespaces.
Do they only work for events or can you define namespaces for every ID-range, like characters or dynasties?
You have to specifically define them, I think? And if yes, how? And if yes, do you have to define them in every file you use them in or just once?
AFAIK, they're only for events.
Just do namespace = <name> at the start of each file using a namespace. You can have multiple files using the same namespace, but it has to be defined at the start of each.
 
I believe the coding comes in from the part of the code you have not pasted.

Code:
        create_character = {
            random_traits = yes
            dynasty = random
            religion = tengri_pagan
            culture = mongol
            female = no
            age = 35
            attributes = {
                martial = 12
            }
            trait = brilliant_strategist
        }
        new_character = {
            spawn_unit = {
                province = 893 # Surgut
                troops =
                {
                    horse_archers = { 10000 10000 }
                    light_cavalry = { 6666 6666 }
                    light_infantry = { 2222 2222 }
                    heavy_infantry = { 1112 1112 }
                    knights = { 200 200 }
                }
            }
        }

Basically what that does is to create a mongol character and the new character part of the code puts him in command of the new army. I think the two numbers create two linked armies under his command than can be split up as needed - try the command with just one set of numbers.

The part of the code I have not figured out is whether you have to identify a province, or can you have it trigger for the capital of the ruler who gets the event...or a province controlled by the ruler.
The two numbers are a range. So if you put horse_archers = { 5000 20000 }, he'd get 5 to 20 thousand horse archers.
 
So does nobody know if you can have more than 4 options in an event?
The game cannot display more than four, but you can have more than four. This means you could potentially have dozens of mutually exclusive options displaying based on various conditions.
Beyond that, you could use an event tree, as each of the four options could give you an event giving you four more.
 
Is it possible to change the dynasties displayed for the scoreboard whatsit when a player resigns? If so, how can I change which dynasties are displayed?
 
Yeah, the dynasties displayed are in the localisation files. There is no correlation between what happens in your game and what is displayed there. You can change the prestige displayed for each dynasty in defines.lua, IIRC.
Ah, many thanks! I found the entries and, by golly, they do look pretty straightforward.

So for a total overhaul, you could assign as much dynastic prestige as you wanted to the Houses of Lannister, Atreus, or whichever way your wind blows. :)
Or Flavius, Amaling and Meroving, in my case.
 
Is it possible to create a from_dynasty_postfix somehow? It would be really great if Courtier Anonymus from Arelate could be known as Anonymus Arelatensis.
 
Is there a command I can use in a CB to simply remove a title from a target, but not have it usurped? Like, is there a way I could cook up a CB which allowed a player to go to war with the Kingdom of France and do nothing but remove the title k_france from the current king without awarding it to anyone else?
 
Is there a command I can use in a CB to simply remove a title from a target, but not have it usurped? Like, is there a way I could cook up a CB which allowed a player to go to war with the Kingdom of France and do nothing but remove the title k_france from the current king without awarding it to anyone else?
Yup, just use "destroy_landed_title = yes" in on_success_title.
 
Couldn't find an answer to this by searching the mod threads, so I'll ask here:

How do I script a character to begin a game with claims to titles they do not own?
Add an "add_claim" line to a character's history, like so:
Code:
1735 = {
    name="Konstantinos"
    dynasty=632
    religion="orthodox"
    culture="greek"
    father=1734
    mother=725
    1046.1.1={
        birth="1046.1.1"
    }
    1070.1.1={
        add_spouse=4558
    }
    1072.8.1={
        [COLOR=#FF0000][B]add_claim = e_byzantium
[/B][/COLOR]        add_trait="ambitious"
    }    
    1074.1.1={
        death="1074.1.1"
    }
}
 
Is there a way to add an imprisonment to a character's history? I'd like one character to start off in a scenario as the prisoner of a particular king.
 
Question: I am making a coronation event for each royal title that a character has. I want to throw a big party for my vassals who are de jure only in that kingdom. :unsure: For example, say I am king of Leon and King of Castile. I want to have one event for my primary kingdom, Castile, where all the Castilian magnates pile into my castle in Burgos, then another a month later in the province of Leon, where my vassals only from that Kingdom are present. Tied into this is a meeting of the estates of each kingdom separately.
Use any_de_jure_vassal scope from the kingdom scope.