Hello. I have a points system that dictates the main characters personality. There are 3 personality options which are Heartfelt, Assertive, and Laid Back. The current if else statement isn’t working to choose the LaidBack personality. How do I code an if/else statement that is comparing 3 variables?
Below is the code that I currently have. It automatically defaults to HeartFelt if Assertive is at 0.
if(HEARTFELT > ASSERTIVE & LAIDBACK){
readerMessage Because of your Heartfelt personality
}elif(ASSERTIVE > HEARTFELT & LAIDBACK) {
readerMessage Because of your Assertive personality
}
else{
readerMessage Because of your Laidback personality
i could be wrong, but I don’t think it will let you have multiple conditions (if X and Y) for points. you can with flags though. you could nest your statements so they start with one comparison (heartfelt vs assertive, heartfelt vs laidback, assertive vs laidback) that contains other statements/comparisons inside each respective bracket to get the exact comparison you wanted
Then you need to create three characters as in Heartfelt, Assertive, and Laidback. And give them points. After that you can use point system like,
if (Heartfelt<2) {
The method you’re using used to work a while back.
However, it doesn’t anymore.
The only way to get the result you’re looking for is to use multiple if/ elif/ else’s inside if/ elif/ else’s.
@Dara.Amarie Hola chicos del episodio quiero saber como poner la opción que el lector lea la historia en ingles o español como lo han hecho Esli Genn en la historia llamada Agente Z7, si alguien quiere explicarme estaré muy agradecida, dara si tu sabes quien podria orientarme con este tema porfavor ayudame,
By using gains and branching.
In the beginning of the first episode have a choice asking if they’d like to read in English or Spanish and incorporate a gain.
Like this:
if (English) { #The story with English dialogue will go here.
} else { #The story with Spanish dialogue will go here.
}
Basically add a choice asking the reader if they’d like to read in English/ Spanish that gives them a gain. Then use that gain in an if/ else and just copy and paste the script changing the dialogue based on whether they chose English or Spanish dialogue.
If you want to just ask the reader only once what language they want the dialogue in the first episode, then use the if/ else without the choice after the first episode like I’ve shown above.
If you want to just ask the reader what language they want the dialogue in every episode. then change the gain number in every episode.
ok so i did it but using the first one code mode and i click to read on english that first line and is totally working but when i choose sapnish it still keeps like english and if u can maybe do me and example please cause i really dont know what more to do or how position it
You need to reset story progress or go to story modifiers, flags and any gold coloured buttons are the gains you have picked up, just click any gold ones to unselect them and update your script, it should work