How to create pawns with 'hard-coded' relationships?

Started by Sp4m, June 07, 2017, 03:20:47 PM

Previous topic - Next topic

Sp4m

Hello! I'm just getting my feet wet here, so I appreciate your patience.

I'm trying to create a mod (leveraging Flambeau's editable backstories) that creates a pool of pop culture characters to inhabit our worlds. Most of this is fairly straight forward, but one detail I'd love to include is pre-existing relationships between these characters.

For example, if Han-Solo spawns, he will always have an attraction to Princess Leia (whether or not she's also spawned in the universe).

Is this something I can actually do? I've done some research, and this has been tangentially discussed before, but I'm not sure whether I can pre-generate pawn relationships.

https://ludeon.com/forums/index.php?topic=20401.msg226805#msg226805

Sp4m

Update:
This is not something that can be done within Editable Backstories, since relationships don't exist until after the pawn is generated.

Thirite

Pretty much anything can be achieved with coding. You'd want to add a Harmony Patch to the method responsible for calculating attraction to check for names- if pawn name == Han Solo and otherPawn name == Leia Organa then __result = 100% attraction. Obviously in actual C# though.