How to code customizable family relationships?

Hi, I’m obviously pretty new. So far, everything’s been pretty simple, but I’m kind of confused as to how to implement relationships in the way I want.

I’m just experimenting at the moment. No actual work is being done because I would like to be prepared well before that.

And I haven’t been able to find anything really about this.

Quick, and hopefully descriptive, example:

The player can choose if they have mother/father, mother/mother, father/father, parent/parent, or brother/sister/sibling relationships.

How should I code that? How would I go about the naming (would *create mother_name “” work in this case like it does with the player character?) and what about the actual relationship stats?

Do I input *create mother 50 in startup and then percent mother $!{mother_name} in choicescript_stats?

How can I show the choices a player makes involving the character’s family on the stats screen?

Thank you!

EDIT: Actually, would it be more simpler if I did *create parent1_name “”, *create parent1 50, percent parent1 $!{parent_name}, and so on?

How would I create their gender in this case then?

I feel like I’m overthinking this.

7 Likes

Something like that?

Choose your parents

*fake_choice
 #Mother and Father.
  *set parent1he_she "she"
  *set parent1him_her "her"
  *set parent1his_her "her" 
  *set parent2he_she "he"
  *set parent2him_her "him"
  *set parent2his_her "his"
  *set parent1title "mother"
  *set parent1gender "woman"
  *set parent2title "father"
  *set parent2gender "man"
  *set parent1name "Lola"
  *set parent2name "Edward"
 #Mother and Mother.
  *set parent1he_she "she"
  *set parent1him_her "her"
  *set parent1his_her "her" 
  *set parent2he_she "she"
  *set parent2him_her "her"
  *set parent2his_her "her"
  *set parent1title "mother"
  *set parent1gender "woman"
  *set parent2title "mother"
  *set parent2gender "woman"
  *set parent1name "Lola"
  *set parent2name "Lila"
 #Father and Father.
  *set parent1he_she "he"
  *set parent1him_her "him"
  *set parent1his_her "his" 
  *set parent2he_she "he"
  *set parent2him_her "him"
  *set parent2his_her "his"
  *set parent1title "father"
  *set parent1gender "man"
  *set parent2title "father"
  *set parent2gender "man"
  *set parent1name "Ed"
  *set parent2name "Jacob"
 #Parent and parent.
  *set parent1he_she "they"
  *set parent1him_her "them"
  *set parent1his_her "their" 
  *set parent2he_she "they"
  *set parent2him_her "them"
  *set parent2his_her "their"
  *set parent1title "parent"
  *set parent1gender "not specified"
  *set parent2title "parent"
  *set parent2gender "not specified"
  *set parent1name "Ryn"
  *set parent2name "Cass"




In start up add this

*create parent1he_she " "
*create parent1him_her " "
*create parent1his_her " " 
*create parent2he_she " "
*create parent2him_her " "
*create parent2his_her " "
*create parent1title " "
*create parent1gender " "
*create parent2title " "
*create parent2gender " "
*create parent1name " "
*create parent2name " "


Choose your sibling

*fake_choice
 #Sister.
  *set sibhe_she "she"
  *set sibhim_her "her"
  *set sibhis_her "her" 
  *set sibtitle "sister"
  *set sibgender "woman"
  *set sibname "Maya"
 #Brother.
  *set sibhe_she "he"
  *set sibhim_her "him"
  *set sibhis_her "his" 
  *set sibtitle "brother"
  *set sibgender "man"
  *set sibname "Ben"
 #Sibling.
  *set sibhe_she "they"
  *set sibhim_her "them"
  *set sibhis_her "their" 
  *set sibtitle "sibling"
  *set sibgender "not specified"
  *set sibname "Ali"


In start up

*create sibhe_she " "
*create sibhim_her " "
*create sibhis_her " " 
*create sibname " "
*create First_parent_relationship 20
*create Second_parent_relationship 20
*create Sibling_relationship 20

In stats

In stats

Name of First parent: $!{parent1name}
*stat_chart
 percent First_parent_relationship


Name of second parent: $!{parent2name}
*stat_chart
 percent Second_parent_relationship


Name of sibling: $!{sibname}
*stat_chart
 percent Sibling_relationship

5 Likes

Thank you for the help! :blush:

1 Like

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the @moderators.