Hey everyone! I have a question about my point system.
So basically I have 2 separate point systems going… and when I try to do code similar to the code below, I always end up reading the “else” branch. The code in question:
if (CHAR1 > CHAR2) {
} elif (CHAR1 < CHAR2) {
} else {
}
I noticed that this changes if I have at least 1 point with each character… but is there any way to fix this without going into the beginning of my story and adding 1 point to each character and then rewriting the sections where I calculate points?
I’m not an expert with points yet (experimenting with them now) but just going off how if/elif/else typically works, delete the elif and remove the CHAR1 < CHAR2, and just put the information for that option in else. So it would look like this:
If (CHAR1 > CHAR2) {
(Dialogue for CHAR1 > CHAR2 option goes here)
} else {
(Dialogue for CHAR2 > CHAR1 option goes here)
}
I would think that you may not need that second code just because it’s only between two characters, if that makes sense.
But again, I’m no expert, just taking my knowledge from standard if/elif/else. I hope this helps
Ok that sort of worked. I only ran into problems when the two characters had equal points. Idrk what to do; I think I’m just going to add that one point in the beginning and be done with it lol. But thank you for your help, I really appreciate it!
if you will have similar problem in next chapters (usually only in preview on the portal)
add on the start of new episode @CHAR1 +0 @CHAR2 +0
this way it will not change the points reader have and it will have the same efect (do not use in future episodes = because that would change the points reader has gained)