- Apr 7, 2021
- 15
- 13
Hi,
Time to throw this out to all the boffins on this thread who have been so helpful in the past.
So I wanted to give the user the ability to set up the relationship with the main female in the house (mother, landlady, etc.) .
Originally I used a menu with a selection to set a relationship value based on what they chose then just used IF ELSE statements to alter text where necessary to keep the context of the narrative correct. It also allowed me to set which of the 3 backstory videos I had created was to be played. E.g. if adopted the video tells of their adoption, if landlady was selected then the video played shows how you came to be living there, etc. Easy Peasy Lemon Squeezy.
However, I have since been informed this will still get up Patreons nose and that I should just let the user fill in their relationship themselves. That would be fine if I just had to change the names/relationships in the narrative, but the pre-created videos really throws a spanner in the works.
So what I am trying to work out is how do I give an option for the user to input their own relationship, but if it falls into one of these categories play the right video? It will be set by default to Landay and if they make no changes it will play that video but if they enter anything different how do I get it to play the right video E.g. if the player enters a variation on mom (mum, mommy, mother, mater, ma, etc., etc. (cue Stewie Griffin sketch) it plays the mother relationship video instead.
Can someone point me toward the correct, I am assuming a Conditional Statement to cover this scenario.
As always any help greatly apprecied.
Time to throw this out to all the boffins on this thread who have been so helpful in the past.
So I wanted to give the user the ability to set up the relationship with the main female in the house (mother, landlady, etc.) .
Originally I used a menu with a selection to set a relationship value based on what they chose then just used IF ELSE statements to alter text where necessary to keep the context of the narrative correct. It also allowed me to set which of the 3 backstory videos I had created was to be played. E.g. if adopted the video tells of their adoption, if landlady was selected then the video played shows how you came to be living there, etc. Easy Peasy Lemon Squeezy.
However, I have since been informed this will still get up Patreons nose and that I should just let the user fill in their relationship themselves. That would be fine if I just had to change the names/relationships in the narrative, but the pre-created videos really throws a spanner in the works.
So what I am trying to work out is how do I give an option for the user to input their own relationship, but if it falls into one of these categories play the right video? It will be set by default to Landay and if they make no changes it will play that video but if they enter anything different how do I get it to play the right video E.g. if the player enters a variation on mom (mum, mommy, mother, mater, ma, etc., etc. (cue Stewie Griffin sketch) it plays the mother relationship video instead.
Can someone point me toward the correct, I am assuming a Conditional Statement to cover this scenario.
As always any help greatly apprecied.