Hi there! I’m in the process of learning choicescript, and I’m wondering though if it’s possible to create a sort of replay tracking system with Choicescript? So that if a player starts the game over, there’s flavour text or something, or maybe entirely new scenes that unlock only with replays?
I keep thinking perhaps it’s possible to do this through achievement setting, so like say a player receives an achievement of playing the game once, and on the second playthrough, there’s an *if statement that checks if it’s been achieved, and then the flavour text’ll pop up? Is this possible?
Or is there any other sort of way replays can be tracked? I just think it’d be a really fun mechanic to have! :^)
Also, I apologize in advance if this has been asked before! I tried searching for similar questions, but I couldn’t find any…
[Sorta solved, until someone comes up with a more efficient tracking method!]
Check Achievements Method Solution
This is a working sample test I tried using *check_achievements as suggested by @MizArtist33!
This is a test on whether you can track replays.
*fake_choice
#I think I can.
#Maybe.
#Idk.
Well, let's see.
*check_achievements
*if ((choice_achieved_complete1 and choice_achieved_complete2) and choice_achieved_complete3)
*goto youfinishedmultipletimes
*elseif (choice_achieved_complete1 and choice_achieved_complete2)
*goto youcompletedthis2
*elseif (choice_achieved_complete1)
*goto youcompletedthis1
*else
*goto youfinished
*label youcompletedthis1
*page_break
You completed the game once!
*goto youfinished
*label youcompletedthis2
*page_break
You completed the game twice!
*goto youfinished
*label youfinishedmultipletimes
*page_break
You finished multiple times!
*goto youfinished
*label youfinished
*page_break
You finished!
*check_achievements
*if (choice_achieved_complete1 and choice_achieved_complete2)
*achieve complete3
*finish
*elseif (choice_achieved_complete1)
*achieve complete2
*finish
*else
*achieve complete1
*finish
*finish