Checking Point System Error :((

I have an option in my story where you can check your points. I’m using that one forum post where she discovered a new way by using the number of your character (if i explain that right). The only question I have is, when you have 0 points, the previewer shows that number instead of ‘0’. It’s so weird and is there a code I can add when it’s 0 or is it just a previewer thing? I also experienced this in the app.

Here’s more information if it wasn’t clear enough:

The link to the forum post:

My previewer when 0 points:

label CHECK_POINTS
        NARRATOR
    Which points would you like to check?
choice
"MONEY💸"{
        NARRATOR
    You have [6215034366099456]/25 💸.
goto CHECK_POINTS
}"TREATS🍭"{
        NARRATOR
    You have [4701146508197888]/25 🍭.
goto CHECK_POINTS
}<GREEN>"Done"{
continue
}
        NARRATOR
    |bold, color:green|MONEY |reset|& |bold, color:blush|TREATS |reset|bank 💸🍭

choice (pointssystem)<GEMS:5> "MONEY +5 💸" {
@MONEY +5
        NARRATOR
    |color:green|MONEY +5 added!💸
    |color:green|You have [6215034366099456]/25 💸.
    |color:blush|You have [4701146508197888]/25 🍭.

goto treats
} <GEMS:5>"TREATS +5 🍭"{
@TREATS +5
        NARRATOR
    |color:blush|TREATS +5 added!🍭
    |color:blush|You have [4701146508197888]/25 🍭.
    |color:green|You have [6215034366099456]/25 💸.

goto money
} "Close the bank!" {
goto closed
}

label treats
        NARRATOR
    |bold, color:green|MONEY |reset|& |bold, color:blush|TREATS |reset|bank 💸🍭

choice (points)<GEMS:5>"TREATS +5 🍭"{
@TREATS +5
        NARRATOR
    |color:blush|TREATS +5 added!🍭
    |color:blush|You have [4701146508197888]/20 🍭.
    |color:green|You have [6215034366099456]/20 💸.
} "Close the bank!" {
goto closed
}
goto closed
label money
        NARRATOR
    |bold, color:green|MONEY |reset|& |bold, color:blush|TREATS |reset|bank 💸🍭

choice (point)<GEMS:5> "MONEY +5 💸" {
@MONEY +5
        NARRATOR
    |color:green|MONEY +5 added!💸
    |color:green|You have [6215034366099456]/20 💸.
    |color:blush|You have [4701146508197888]/20 🍭.

} "Close the bank!" {
goto closed
}

label closed

It starts with an option to check your points. Then you’ll get an option to buy points. If you click on one point to buy, you will be redirected to that ‘shop’/gem choice. If not you’ll skip through the end. Some goto’s are excessive but I’m a bit paranoid.

Hope this helps. Thank you!

1 Like

Hi! That’s normal unfortunately. If the reader (or previewing) hasn’t earned any points, it’s going to say that. I think a suggestion would be to do @CHARACTER =0 right at the beginning so they automatically have “0” points!

3 Likes

It’s explained at the end of this post

1 Like

@/character +0 is the answer?! That’s way easier than I thought! (@lazy_donut check this out :heart_eyes:) Thank you so much you both

2 Likes

So I am working on this coding system I used Dayas Arrow Customization Template and I wanted to add a point system where you can gain points by choosing a specific outfit. For example, the female lead had 3 outfits to choose from, and one of them was the best option to wear because the male lead preferred the color. Anyway, this is the code I have. I know its completely wrong. Can someone help me? Is this even possible?

if (FL changes into masquerade2) {
@FL +2
readerMessage You’ve gained 2 points!
}

1 Like

Are you using this template?

If so, I need to know if you use or plan to use points linked to the character name for something else.

If you don’t use them for anything else, the template already includes the addition of points. If you want the readerMessage to appear, you can add at the end of the template (or when you need to) this code:

if (FL = 1) {

readerMessage You’ve gained 1 point!

} elif (FL = 2) {

readerMessage You’ve gained 2 points!

} else {

readerMessage You’ve gained 3 points!

}

If, however, you use or plan to use points linked to FL, you’ll need to change the command for adding points in the template, by swapping FL with another character name (you can create a new one for this, for example OUTFITGAME1). This means you will change the code from
FL = 1 to OUTFITGAME1 = 1
in every instance a points gain happens in the template.
Then, you can use the same code as above to make the readerMessage appear.

if (OUTFITGAME1 = 1) {

readerMessage You’ve gained 1 point!

} elif (OUTFITGAME1 = 2) {

readerMessage You’ve gained 2 points!

} else {

readerMessage You’ve gained 3 points!

}

1 Like

This works thank you!

1 Like

That’s how I do it, strange how your post wasn’t picked as the solution…

bc she answered someone elses question unrelated to the main topic :))

@CHARACTER =0 and @CHARACTER +0 do the same thing, allows the output to be zero instead of the character number. Should also mean that @CHARACTER -0 would also be valid.
@CHARACTER =0 set at the beginning of chapter 1 (as @Jenaco says) or use @CHARACTER +0 or @CHARACTER -0 right before displaying the points (if you have an existing story that’s been published and people have already read past chapter 1).

So helpful!

1 Like