#2
24th Aug 2022 at 10:40 PM
Posts: 1,568
Thanks: 17141 in 67 Posts
26 Achievements
Hi. You found the global function that changes relationships, now you need to find where it's called from the specific interaction you want to edit. Social interactions are usually handled by controller objects. These objects have BHAVs that, among other things, control relationship change.
For example, I pulled the Influence Social resources and found the BHAV that deals with relationships:
It does call the [global 0x0264] Soc&Rel: Adjust Soc & Rel to Other Sim, but before that it sets values to send to it as parameters. They're based on interaction result (accept/reject) and which sim initiated the interaction.
In this case, it uses constants and makes your life much easier. You don't have to edit the BHAV, you can edit BCON resources (tables that contain constants). Let's say this one: Const 0x1004:0x04. It refers to BCON #1004: Tuning - Reject Soc. & Rel. It has values for rejected interaction. Another BCON #1000 contains values for accepted interaction. It doesn't have to be two BCONs, but in this case, they made it like this. If you're lucky it'll even have labels like this one.
This is where you change the numbers. Positive values add relationship points, negative subtract. You can have different values for initiator and recipient, short- and long-term scores. Person A - initiator (usually). STR/LTR - short/long term.