-
Notifications
You must be signed in to change notification settings - Fork 17
Political Movement Weights
Alexedishi edited this page Jul 27, 2026
·
1 revision
CMF overwrites vanilla Political Movement definitions with versions that have scripted triggers to aid in mod compatibility
To add dummy ideologies from your mods into political movements, allowing them to spawn with the appropriate mod enabled:
- Add a dummy ideology to CMF with the same name as your mod ideology in a file named
00_dummy_ideologies_<your_mod>. - Assign the ideology to the appropriate political movements (and scripted triggers if needed).
- Ensure the ideologies in your mod are in a file that will overwrite the dummy one (see File Naming).
- Your mod will overwrite the ideology definition and allow it to spawn in the specified political movements.
Depending on whether your mod must depend on CMF, or is usable in a standalone capacity, what you do may be slightly different.
- Work out where you need to either add or multiply values for a particular movement.
- Add a bloc to the CMF movement that looks like:
# Your_Mod
add/multiply = {
value = <your_mod>_<movement_type>_<movement_section>_<function>
desc = "YOUR_LOCALIZATION"
}
For example:
mog_plp_movement_minority_rights_pop_support_weight_multIs made up of: mod: mog_plp_ type: movement_minority_rights_ section: pop_support_weight_ function: mult
- Then; create a file in common\script_values called
00_<your_mod>_movement_values. - Define all values you want added in this file, = 0 for
addand = 1 formult(as seen in00_mog_plp_movement_values) - Define the values again in your own mod, with all the maths for what you need, in a file that will overwrite the dummy one. (see File Naming)
-
Optional: If your mod will depend on CMF (cannot work without CMF) you can define the maths in your
00_<your_mod>_movement_valuesfile (as seen in00_anzfp_movement_values) as long as you have a scripted trigger for when your mod is active. (see Community Mod Triggers)