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.
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
I would like to know how I can avoid character's portraits from appearing in event options. I found how to avoid that in the event itself but not in the option
The following scripts come down to two main streams called by two settlement_decisions - go_hunting and go_scavenging. These decisions have various outcomes depending upon caller stats, time of year and various other factors. Four outcomes for go_hunting (very good, okay, bad and warrior wounded), three for go_scavenging (very good, okay and bad) with the best outcome also having a chance of spitting out a trophy/artifact.
After days of futzing around I fixed the most obvious errors but I am still getting no pop ups for any outcome except the best result for go_hunting. The Validator says that there are no issues, I have reorganized and re-placed most of the immediate blocks into the option blocks but still no luck. And yes, the decisions all seem to be well formed and WAI.
looking at doing some things evolving duchies and changing dejure land of counties into different duchies. is it possible to do on the creation of a titular duchy through normal means? adding effect or creation_effect into landed_titles doesn't seem to work or at least work with this type of thing.
I have never tried it with counties, but for duchies you can get it to work by using gain_effect. (not effect or creation_effect).
Take a look at the default landed_titles.txt for a gain_effect example with k_jerusalem.
Possibly, though I expect the computational cost is roughly the same as you still compare all realm provinces to a list of provinces (though it definitely will look prettier in the events/decisions).
If I understand correctly, any_* triggers shortcut. That is, as soon as they find 1 province/character/whatever for which it evaluates as true, it quits checking. In any case, unless your realm is really big, it shouldn't be a problem.
Also, if region checks are implemented at all sanely (hash table), checking each tested province is nearly as fast as simply province = N. It should *not* have to scan the whole list.
No, as far as I know only land is supported in regions. But to accomplish what you wanted ("the player's realm borders the European seas"), create a region of all the provinces that border European seas.
No, as far as I know only land is supported in regions. But to accomplish what you wanted ("the player's realm borders the European seas"), create a region of all the provinces that border European seas.
looking at doing some things evolving duchies and changing dejure land of counties into different duchies. is it possible to do on the creation of a titular duchy through normal means? adding effect or creation_effect into landed_titles doesn't seem to work or at least work with this type of thing.
when using creation_effect instead it just changed the dejure instantly upon game start/load and results in no king or empire dejure ties
also on a similar note how would I go about using title_decisions (right click interact menu on title flags directly) to make it so i can flag a duchy and then right click interact with a county to make it under dejure for that selected duchy?
this is what i have so far on the matter but it doesn't work on changing the county dejure duchy to flaged one nor does it work so i can only allow it to only work on your realm
Since you have your title 'effect' written with no limit, it *would* fire every time there's a new owner, including at game start.
Vanilla has 2 ways of putting in creation effect for titles.
1: Kingdom of Jerusalem has a 'gain_effect' in landed_titles.txt, that uses a global flag to make sure this is the 1st time it has been gained (thus created, rather than inherited, usurped, etc.). Will not fire a 2nd time, even if k_jerusalem is destroyed and then created again. If you don't like to use a flag, this can also be accomplished with NOT={any_previous_holder={always=yes}}.
2: Add an event to the on_create_title action. In that event, check that FROM is the title you are interested in. This can also be limited with a flag or any_previous_holder check so that it's only the 1st time it's created.
Your decisions look OK, except the de_jure_liege part. de_jure_liege takes a title, either explicitly or ROOT/FROM/etc. Instead:
Also wondering another thing that i also cant seem to figure out, would it be possible to make it so a custom created title (via charlemagne) uses the coat of arms from your dynasty or from another title instead of inheriting from the original target? Like how the patricians manor has the dynastic flag. because you can adapt the intrigue decision into a title_decisions and create new titles of any tier (at the least duke and up that i have tested) from any title
this is what i have to do that but i dont know how to change or add to it to do that this also dosent give you the title unless you are the owner of the title that you are making a duke clone of
Code:
create_new_titular_dutchy_from_title = {
only_playable = yes
from_potential = {
ai = no
is_playable = yes
#tier = DUKE
#war = no
#wealth = 600
}
potential = {
OR = {
tier = BARON
tier = COUNT
tier = DUKE
tier = KING
tier = EMPEROR
}
}
allow = {
always = yes
#war = no
}
ai_will_do = {
factor = 0
}
effect = {
create_title = {
tier = DUKE
landless = no
temporary = no
custom_created = yes
culture = ROOT
holder = ROOT
base_title = THIS
copy_title_laws = yes
}
}
}
EDIT: after doing a quick test baron titles can be duped into a duchy but the flag will result in the black and red null rebel flag. is it possible to have it so that created titles can use the dynamic house flags like the patrician palace or no?
Check out the set_coa command. It will take any existing title, and copy it's coat of arms (flag) to the current title. I don't know if it will take a character and copy *their* coa.
It annoys me that every vassal of the HRE duke tier or above can vote for the next emperor.
A silly question, but is there a way to make it so that only the traditional seven prince-electors can vote? Other than messing up all titles so that there are only 7 vassals of duke tier(which would be both difficult and buggy).
Question about regency:
I'm looking to make a mod that would cause a regency to occur if the ruler was leading troops outside the capital province. However, the only way I see to do it right now is to give him a hidden trait with "pilgrimage = yes" or "incapacitating = yes" - however both of these make him unable to lead troops anymore. Is there a way to cause a regency to occur while still having the ruler available to lead troops?
Is there anything bad that could happen if I reference things like traits that does not exist in the code? It create an error in the log, but nothing bad seem to happen in game.
I don't know about traits, but unusual behavior can happen for religions.
Any religion that isn't defined in the files defaults to "no_religion". It's a fallback to avoid crashes. If a character switches to religion "covfefe" (where "covfefe" is not defined), they switch to no_religion instead. If an event trigger in the same mod is "religion = covfefe", that trigger is respected for any no_religion character. I suspect that the same thing is true for government types since there is also a no_government government. But I didn't try giving an inexistent trait to a character.
@Metanetwork
I see, but my situation is a little bit different. My mod wouldn't give any possibly "non-existent" traits, it is mostly to add triggers. It's to make my mod compatible with others without making dozens of patches, these non-existent traits exist is those other mods. None of the events that include triggers based on these missing traits should happen to begin with because of the missing global flags (set at the game start if X mod is enabled) would have stopped the event.
In any case, I have not seen any issue in game, but it is hard to tell when you are looking for non-existant stuff.
@Maal:
Afaik you can check for a non-existent trait in conditions as much as you want, the game will just not find it and resolve the condition as failed.
Within an effect, it probably shouldn't be much different, as - in contrast to religions - traits are optional. So if the engine fails to find a trait, it can just ignore it and need not e.g. assign "no_religion".
A quick test seems to confirm that: When I use a targeted decision to give a character a trait with a nonsensical name (e.g. "add_trait = agbnloubiyt"), the trait name is just displayed as " (literally one of these characters) in the decision, and nothing happens. The error log might complain of course, but no harm done.
Pls keep in mind that I am just guessing here, I don't actually know how the engine works. But it seems to be fine as far as I can see - as long as it is about optional things like traits or modifiers, and not fundamental and mutually exclusive stuff like culture or religion.
Is there a way to make a Dynasty use a County Flag instead of a normal Dynasty CoA? From looking at the Dynasty modding page, it looks like I'd have to make new patterns and icons, rather than just force the flag directly?
Is there a way to make a Dynasty use a County Flag instead of a normal Dynasty CoA? From looking at the Dynasty modding page, it looks like I'd have to make new patterns and icons, rather than just force the flag directly?
Easiest way is to take all the county flags you like and put them into a pattern.tga file. Then use the texture calls as normal. Here is an example from my Aliyah. I force the unlanded duchy dynasty titles to use the dynasty flags.
Code:
CoatofArms.txt
textures = {
texture = {
file = "gfx\\coats_of_arms\\pattern.tga"
size = { x = 10 y = 7 }
noOfFrames = 62
color = 4
emblem = no
}
}
Code:
Dynasties.txt
100154000 = {
name = bet Ach'av
culture = romaniote
coat_of_arms = {
template = coa_plain
layer = {
texture = 0
texture_internal = 1
color = 0
color = 0
color = 0
color = 0
}
}
}
Quick question... I'm creating a Gothic Culture for Crimea... I want to name Independent dukes to be named Prince and their duchies Principalities. Is there a way to do it in the localisation?
Quick question... I'm creating a Gothic Culture for Crimea... I want to name Independent dukes to be named Prince and their duchies Principalities. Is there a way to do it in the localisation?