Points system error?

Hi!

I’m slightly going insane! I’m 99.9% sure I did the coding right.

One scene is based on the points you collect. The male branch works perfectly. In the female branch it will give you the “Dark” scene while in the end the reader got the message they are leading with light points. Some readers are 100% sure they lead with light points.

This is the coding I have:

If ( DARK > LIGHT ) {

Scene

} elif ( DARK < LIGHT ) {

Scene

} else {

Scene

}

First: more dark then light points

The elif Less dark then light points

Else = Equal

In the outro (The 2 branches come together there) they see the points. I use the code with the character number.

After that, again the code as above But with other Narration (to add a little blabla about the way they are leading)

I asked a few friends and they also see no problem in the script. Maybe someone here knows why it goes wrong?

Because I can’t find it.:roll_eyes::unamused:

Thank you!

X

1 Like

I don’t see anything either. Then again, I’m bad with if/else/elif.

Maybe try changing < to > and then change the > to <? The portal does weird things sometimes :sweat_smile:

Maybe a silly tip, but I ALWAYS have trouble when I properly space it— try it as

if (DARK >LIGHT) {

}

Without the spacing and see if it works? If not, it might just be a random typo somewhere in the code breaking it

1 Like

@nals is right. Whenever you’re using point systems like that, the second variable should always be right next to the < > or = sign. So it should look just like her example :upside_down_face:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.