• 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.
Is there a way to apply the same opinion modifier multiple times without resetting the duration?

For example, currently I am applying an opinion modifier to all vassals for 5 years every time a ruler grants a title to someone. The problem is that every time a ruler grants a title the opinion modifier is stacked (which is intended) and the duration of the entire stack is reset to another 5 years (which is not intended).

Is there a way to have each opinion modifier in the stack be timed separately?
 
Is there a way to apply the same opinion modifier multiple times without resetting the duration?

For example, currently I am applying an opinion modifier to all vassals for 5 years every time a ruler grants a title to someone. The problem is that every time a ruler grants a title the opinion modifier is stacked (which is intended) and the duration of the entire stack is reset to another 5 years (which is not intended).

Is there a way to have each opinion modifier in the stack be timed separately?

Unfortunately no
 
Hello everyone! I have a small problem; I'm trying to apply the command "create_hospital" to the scope "any_province" in a decision what does it should look like? Also, should I use the scope "any_demesne_province" instead if it's that cpu intensive? Here's my decision(only the custom event firing works):
decisions = {

create_hospital = {
ai = no
only_playable = yes

potential = {

}
allow = {
prestige = 25
}
effect = {
character_event = { id = 909090 }
any_province = { create_hospital }
}
ai_will_do = {
factor = 0
}
}

The "any_province" scope will scope to all provinces on the map regardless of where you use this scope. The "any_demesne_province" scope will only scope to the demesne provinces of the scoped character. So which scope you need to use depends on what you want to achieve.

If you want to create a hospital in every province on the map then the code looks like this. The structure will be the same for "any_demesne_province", except that you need to call the "any_demesne_province" scope from within the character's scope.
Code:
any_province = {
    holder_scope = {
        create_hospital = PREV
    }
}
I believe you should also be able to use the "county" scope instead of "holder_scope", because "create_hospital" works in both title and character scopes.

You mean something like

Code:
any_province = {
    c_####### = {
        create_hospital = PREV
    }
}

Yeah, that would probably work, but I don't know why you would want to do that. If there are particular provinces you want to build hospitals in, you need to specify them. You definitely can't put scopes other than PREV/FROM/ROOT on the right hand side of the expression, though.
I think you can also put event_targets on the right hand side. And you can scope to the holder of the province simply via holder_scope, no need for character ID.
 
Any way to scope to THE player? That is, the player currently playing the game on this device? I need to change tooltips on stuff, depending on conditions on who is viewing them.
 
Is it known what modifiers can be used for unit_modifier as part of a religion? I can see that land_morale, garrison_size, levy_size, and all the <unit>_offensive/defensive are valid, since they're used already. I tried to have a pagan reform doctrine increase global movement speed, but that didn't seem to work. The wiki has an incomplete list of what modifiers can be applied to various categories, but religion is not among them.
 
Any way to scope to THE player? That is, the player currently playing the game on this device? I need to change tooltips on stuff, depending on conditions on who is viewing them.


ai = no

It scopes to any character who is not AI controlled, unless multiplayer, it can only scope to one.
If you want to scope to the client user in case of multiplayer, not doable.
 
Is it known what modifiers can be used for unit_modifier as part of a religion? I can see that land_morale, garrison_size, levy_size, and all the <unit>_offensive/defensive are valid, since they're used already. I tried to have a pagan reform doctrine increase global movement speed, but that didn't seem to work. The wiki has an incomplete list of what modifiers can be applied to various categories, but religion is not among them.

It has to be a character modifier, that one seems to only apply to provinces or buildings. I don't think Ck2 engine can handle units actually moving faster depending on a character like Eu4, their movement depends on the terrain.

Building affects the province which in turn affects the terrain thats why you can scope it to either buildings or provinces.
 
It has to be a character modifier, that one seems to only apply to provinces or buildings. I don't think Ck2 engine can handle units actually moving faster depending on a character like Eu4, their movement depends on the terrain.

Building affects the province which in turn affects the terrain thats why you can scope it to either buildings or provinces.
But the Tenacious Duelist modifier gives increased global movement speed, and that's a character modifier (for Children of Destiny, but I can't imagine they work mechanically different from all other characters).
 
Any way to scope to THE player? That is, the player currently playing the game on this device? I need to change tooltips on stuff, depending on conditions on who is viewing them.
The scope "any_player" scopes to all players. You can use it as shown below:
Code:
any_player = {
    # Will scope to all human players
}

any_player = {
    limit = { is_multiplayer_host_character = yes }
    # Will scope to the host (in single-player games it scopes to the player)
}
 
ai = no

It scopes to any character who is not AI controlled, unless multiplayer, it can only scope to one.
If you want to scope to the client user in case of multiplayer, not doable.
I think it should be possible to scope to all clients in multiplayer via:
Code:
any_player = {
    limit = { NOT = { is_multiplayer_host_character = yes } }
}
Although, I don't know how would one scope to a particular client (probably isn't possible like you said).
 
Hello,

I would like to know if I could mod the fact that court chaplains could be sent to proselytize in foreign capitals. If I'm not mistaken, this can only be done in vanilla game when foreign rulers are unreformed pagans or Zoroastrians. What I was trying to do is to make this action possible even in Christian, Muslim, Jew or let's say Hindu realms providing that the moral authority of one these religions falls under a certain threshold. Can this be done through modding or is the whole thing hardcoded?

Thank you for you answer
 
Hello,

I would like to know if I could mod the fact that court chaplains could be sent to proselytize in foreign capitals. If I'm not mistaken, this can only be done in vanilla game when foreign rulers are unreformed pagans or Zoroastrians. What I was trying to do is to make this action possible even in Christian, Muslim, Jew or let's say Hindu realms providing that the moral authority of one these religions falls under a certain threshold. Can this be done through modding or is the whole thing hardcoded?

Thank you for you answer
See file /common/job_actions/00_job_actions.txt, under action_inquisition.
 
The "any_province" scope will scope to all provinces on the map regardless of where you use this scope. The "any_demesne_province" scope will only scope to the demesne provinces of the scoped character. So which scope you need to use depends on what you want to achieve.

If you want to create a hospital in every province on the map then the code looks like this. The structure will be the same for "any_demesne_province", except that you need to call the "any_demesne_province" scope from within the character's scope.
Code:
any_province = {
    holder_scope = {
        create_hospital = PREV
    }
}
I believe you should also be able to use the "county" scope instead of "holder_scope", because "create_hospital" works in both title and character scopes.


I think you can also put event_targets on the right hand side. And you can scope to the holder of the province simply via holder_scope, no need for character ID.

Hey thanks you!
 
So warrior lodges have a requirement that it needs 10 members in order for a player to join. What I'd like to do is to spawn low borns or something so that every lodge has at least 10 members regardless of what's happening in the world. That probably is beyond my meager abilities (it's possible to begin with) so instead what I plan on doing is reducing the req to 1 member. What are the downsides to doing this? I'm assuming leveling would be much slower (and getting a legendary gathering up and running would be almost impossible) but that's it as far as I can tell.

edit: I guess my first question should have been: "can I change the req just by changing the 'From' line?"

Code:
can_join_society = {
        hidden_trigger = {
            NAND = {
                ai = yes
                is_society_rank_full = {
                    society = warrior_lodge_tengri
                    rank = 1
                }
            }
        }
        is_adult = yes
        custom_tooltip = {
            text = has_not_angered_society_tt
            hidden_trigger = { NOT = { has_character_modifier = warrior_lodge_failed_joining_cd } }
        }
        NOT = { has_character_modifier = warrior_lodge_failed_joining_cd }
        hidden_trigger = {
            NOT = { has_character_flag = society_join_block }
        }
        trigger_if = {
            limit = { prisoner = yes }
            prisoner = no
        }
        OR = {
            religion_openly_tengri_or_reformed_trigger = yes
            is_nomadic = yes
            AND = {
                custom_tooltip = {
                    text = society_has_at_least_10_members_tt
                    FROM = { num_of_society_members >= 10 }
                }
                has_tribal_or_nomadic_government_trigger = yes
                custom_tooltip = {
                    text = special_join_warrior_lodge_trigger_tt
                    special_join_warrior_lodge_trigger = yes
                }
                NOT = { trait = zealous }
            }
        }
    }
 
Last edited:
Is there a mod that lets you destroy your primary title? Want to simulate an empire collapsing
 
Where exactly do I change so that tribal vassals never accept going to war when the liege summons?