Dev Notes: Leader‐making mechanics - openly-retro/stellaris-machine-robot-expansion GitHub Wiki

TBD / WIP

Explain how modders can expand / maintain this part of the mod.

Rules for picking traits for the leader-maker

  1. Can't have a council bonus. Machine leaders / gestalt leaders don't get to swap in/out of council positions.
  2. No ruler traits, those go to the core modifying feature.

how you get tooltips to show on the leader subclasses icons

in xvcv_mdlc_scripted_loc.txt there are defined_text objects with a name key. Example is Get_xvcv_mdlc_leader_making_scientist_subclass There's a matching reference in xvcv_mdlc_l_english_leader_making_customgui.yml

XVCV_MDLC_LEADER_SCIENTIST_TRAIT_HEADER:0 "[This.Get_xvcv_mdlc_leader_making_scientist_subclass]"

now look at the localisation key:

localization_key = xvcv_mdlc_leader_making_scientist_subclass_scientist_explorer there's a matching reference in the same localisation file