Skip to main content


#eu5
in reply to Lynnesbian

i'm helping someone make a mod that adds a "soldiers estate" to the game. i barely even know what that entails, and yet the mod syntax is so simple, and the jetbrains plugin is so good, that i'm making rapid progress despite having played the game for less than an hour.

every estate has an icon. it's a coloured triangle with a black background and some imagery depicting that estate's "vibe" (e.g. 🙏 for the clergy estate). here's my icon for the soldiers estate

in reply to Lynnesbian

fun little quirk with #eu5 modding.

so we're making an estate privilege (bonus power granted to a faction) that's bad, and it's automatically granted to certain nations at game start. because this is a bad privilege that's mean to simulate some historical accuracy stuff (not my wheelhouse, i'm just writing the code), we don't want the player to be able to manually grant the privilege. the only way to get it should be through the forced game start event.

i tried setting the privilege to always be ungrantable, but that caused the startup script to be unable to grant it. of course.

i looked into how the existing privileges in this style work. turns out, if you make a privilege require itself to be already granted in order to grant it, the script can grant it, but the player can't manually grant it.

why does it work like that? beats me

#eu5

Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.