If I wanna add a new option of spiecies rights,for example,"Some more equal" living standard,what should I do?
IIRC it is actually not possible to add new living standards to the game. You can, however, edit the existing ones.
The relevant files you would need to edit/add to are:
- /common/species_rights/01_living_standards - this controls the conditions for using this standard, the pop happiness effects, political power, and any other bonuses like +10% research under Academic Privilege or the pop demotion time from Shared Burdens.
-/common/pop_categories/00_social_classes - this is where the per pop trade value from living standards, as well as per pop consumer goods/food/minerals/energy upkeep is applied. Most of the values are actually scripted variables you can find in /common/scripted_variables, although you could type in a number instead of a variable if you wanted. In order to properly set what trade value and upkeep to use, each living standard is assigned a set of triggers. So for a totally custom one, or to modify what exists (say you want specialist pops under academic privilege to have 0.5x CG upkeep instead of 1.0, aka high upkeep vs very high as the game calls it) you need to go to
-/common/scripted_triggers/01_scripted_triggers_jobs - the living standards triggers are defined halfway through, around line 135.
So all together you have the living standard policy itself, then you define triggers, then you apply effects to pops via the triggers.
Hope that helps!
Policies can be found in:Thanks!
One more question,are common policies(like trade policies and war policies) impossible to add new options in current version?
thx!Policies can be found in:
common\policies
That's where you can add new options.
The actual implementation of those policies are often found in other files, usually "linked" to with policy_flags.
So in that case, grab a program that allows you to open multiple text files at once (such as Notepad++), drag the whole common folder into it and do a mass search for the policy_flag in question.