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.
But you already are allowed into it! Moreover, if you want to code universal conditions, code them as a scripted trigger and put the scripted trigger within the allow conditions in the titles. That way you can affect all of them at once without much effort.
Yeah you keep saying I do so where do I find the code that checks if you have 51% of the dejure title?
And no I can't do that since CK2 scripting does not allow for mathematical operators so I can't compare two numbers. I don't even know if I can save away an integer.
I'd like a way to control the gender laws for nomad succession, as it appears to be hardcoded as agnatic.
Additionally, I would like to request the ability to influence the weighting of the elector's preference for feudal elective, ideally tied to government. (So you could have two governments with feudal elective, but one would work as normal, while the other would prefer leaders with a higher martial stat or various traits, or the like.)
Yeah you keep saying I do so where do I find the code that checks if you have 51% of the dejure title?
And no I can't do that since CK2 scripting does not allow for mathematical operators so I can't compare two numbers. I don't even know if I can save away an integer.
Actually, you can do math with the four basic functions as well as comparisons but they're kind of clunky and don't interact terribly well with things like prestige or piety.
Actually, you can do math with the four basic functions as well as comparisons but they're kind of clunky and don't interact terribly well with things like prestige or piety.
Oh sorry I was thinking entirly wrong, I meant counts as the ones you stick in a scope, but those actually return a boolean not a integer. But the point remains, the number of instances where a specific set of conditions is met saved away in an integer and then the same thign with another set of condition and then add the and compare them to the number of instances that fulfill a third set of conditions.
Specifically something that checks if the following is true.
( povinces in a certain title held by me + pronvinces in that title held by my vassals + provinces in that title held by my tributaries) / total pronvinces in the title > 0.5
It should be easy enough to do, the game can already count in scopes, the count function shows that, but I don't think there is a way to turn a scope into an integer as of now.
And I'd like to be able to replace the normal 51% creation condition with the above condition.
I think it's possible to do that with an event that scopes to all the things you want to check for and then under each of them increases the same counting variable by one.
I think it's possible to do that with an event that scopes to all the things you want to check for and then under each of them increases the same counting variable by one.
Yeah but I'm not going to use it in an event. I'm going to use it in a condition. Which means that it all has to be done in the trigger, and any increase a counting variable would be a command and you can't call commands from inside a trigger as far as I know.
I added in "An option for minor titles to not be visible in the council screen granting interface but instead only to be given by event" because in AGOT we use a minor title for Ser or Lady which are given by event but now they show up in the minor title interface but they cannot be granted to anyone and just take up space
Just curious -- I've been trying to use the scripted_effects function, and I discovered that, while it works, it never displays any kind of tooltip (though the scripted_triggers do). Is this something that might eventually be fixed? Or is that intended?
Isn't there a condition for difference of combat rating? So you can expresa "any character (in a given Province/realm) such that no character in the same Province realm has a possitive combat difference with the former. This can be done with combat skill, the five attributes and age as dar as I know.
However, conditions like wealth_diff, prestige_diff. And piety_diff do not exist. And those would be needed if we wanted to expless "the wealrhiest/most prestigeous/most pious character in X". Therefore I suggest addimg these three conditions, unless there are other ways of expressing it.
would be nice if all the terrain types were added the the terrain trigger. If they aren't already (then the wiki should be updated). As far as I can tell the missing ones are jungle, woods and marsh.
would be nice if all the terrain types were added the the terrain trigger. If they aren't already (then the wiki should be updated). As far as I can tell the missing ones are jungle, woods and marsh.