Modifying Servitude - Uncoupling AI Rights Policy from the Servitude Check
I just started trying to flail my way through modding (because I'm an idiot, but also because I had a cool idea), and realized I might need a little help.
Specifically my goal is to allow Mechanists (or Synth Ascendants) to retain the ability to keep robots in a state of servitude if they want. Why give the toaster sapience if all it will ever do is toast and all that.
So far I've managed to keep the servitude option open with the ai_rights flag set. The problem I'm having is figuring out what I need to change in the various "is_shackled" and "is_sapient" triggers to cause them to check a pops citizenship rather than the owners policies.
Mostly I'm not sure where the triggers are "pointing" I guess.
Posted Jan 6, 2019, 4:36 AM UTC · edited
22
The "is_shackled" is located in common\scripted_triggers\00_scripted_triggers.txt. "is_sapient" doesn't "point" to anything; it's basically a true/false condition any species can have, which is set either when the species is created (through "create_species") or through "change_species_characteristics"; see here for an example of the formatting. Robot pops are handled differently in the files now than in the past (which just used to be a buildable_pops folder iirc), and I haven't really gone to look for where their info currently is.
edit: grammar
Yah I've found them (the various triggers that check whether robots are sapient, free, shackled etc). But I'm stuck in a loop of circular logic I think. After I get back to my computer I'll look at thsm again ans try to be helpfully communicative in what I'm stuck on.