Point system issue

Hi! I’ve been struggling with the point system recently. Just when I thought I’d conquered it, it didn’t work. Even if I make more adventure points than family points, the script just always jumps to the scenario where the reader would have more family points than adventure points. Here is the broken script:

        NARRATOR
    *KNOCK, KNOCK*
        KITTY
    My lady, we shall soon be late if you do not make haste!
readerMessage This upcoming choice will be determined by the choices you have already made in this chapter.
if (FAMILY>2){
readerMessage So far, your family is important to you!
        MC (talk_exclaim_no_worried)
    I am leaving! I am leaving!
@MC exits left and MC is run_cry_embarrassed_loop
gain ALMOSTLATE
}else{
readerMessage So far, you are wondering what could be outside of this town.
        MC (talk_deny_neutral)
    Haste is but all I will make tonight, Kitty.
gain LATE
}

Thank you so much!

2 Likes

im a bit confused, you want a scenario where if the character doesn’t have more than 2 family points she’s late, right? it could be a previewer issue. have you tried testing it on mobile? if it doesn’t work try this script instead. I think you can remove the elif and it will still work :grin:
if (insert1 > insert2) {

#this is if insert1 has more points than insert2

} elif (insert1 < insert2) {

#this is if insert1 has less points than insert2

} else {

#same amount of points

}

2 Likes

It looks like you only want to include the points you got in the current chapter and not overall?

In that case you’d need to have a second character to only include points accumulated in the current chapter,
ie FAMILYTEMP.

At the start of the chapter put:

@FAMILYTEMP =0

Whenever you add a point to FAMILY, also add a point to FAMILYTEMP.

Lastly, when previewing with the web previewer, set or reset the characters points as they’ll just keep accumulating every time you test your code.

If you want to do a branch where someone has more points against another, you don’t have to use the numbers.

You can simply use:

if (FAMILY>ADVENTURE) {
# This is the branch if the reader has more family points than adventure.
}
else {
# This is the branch if the reader has more adventure points than family.
}

So your script would look like:

    NARRATOR
    *KNOCK, KNOCK*
        KITTY
    My lady, we shall soon be late if you do not make haste!
readerMessage This upcoming choice will be determined by the choices you have already made in this chapter.
if (FAMILY>ADVENTURE){
readerMessage So far, your family is important to you!
        MC (talk_exclaim_no_worried)
    I am leaving! I am leaving!
@MC exits left and MC is run_cry_embarrassed_loop
gain ALMOSTLATE
}else{
readerMessage So far, you are wondering what could be outside of this town.
        MC (talk_deny_neutral)
    Haste is but all I will make tonight, Kitty.
gain LATE
}

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