How to allow readers to replay chapters without messing up the point system

So I know a lot of people want to replay chapters, however this can be difficult if you are using the point system for example you may get 1 point for doing something in chapter 2 and if you have earned that point it changes something in chapter 3. If you replay chapter 2 and get the point again, that would then mess up chapter 3. So can you do it?? Yes you can but it requires some work.

There are 2 ways to do this…

Option 1.
Create 2 scripts 1 with points one without points, you can choose wether you want to use the points in the original script to stop any changes in the replay script or give them a warning that any choices they pick won’t change what they have already done and therefore will not edit the story path…

Option 2:

Add points in such a way that allows the reader to reset the points for that chapter only and replay allowing them to make different choices, but remind them that resetting the points for that chapter will mean that their original choices won’t count towards the rest of the story.

You can do this by using a separate points system as well as the main and then taking them away if needed so example lets say your points are for you love interests James and Dan…

normally you’d put

@DAN +1 to add points to him… but if you wanted to take away points at the end of the chapter you would have to work out how many points he gained in that chapter… so if we use another system too it could help us keep track… eg

These are your main points that will effect the rest of your story as you can see in this option DAN or JAMES gains1 point depending what you pick.

NARRATOR
I can’t wait to see…

choice
“DAN” {
@DAN +1
}
“JAMES” {
@JAMES +1
}

But now we need to remember that these points were gained in this particular chapter so we could use another 2 characters as point counters called for example

JAMESPOINT and DANPOINT

So now each time the character gains points they are added onto these characters too so going back to our original choice we would now add:

NARRATOR
I can’t wait to see…

choice
“DAN” {
@DAN +1
@DANPOINT +1
}
“JAMES” {
@JAMES +1
@JAMESPOINT +1
}

So come the end of the chapter each point they (gained) will be equal the amount the points character has… therefore at the end we can do this…

NARRATOR
Would you like to re-read this chapter and change the choices you made? This will rest any points you have already gained…

choice
“do it”{
goto reset
}
“Don’t do it”{
goto end
}

label reset

If (DANPOINT =1) {
@DAN -1
}
if (DANPOINT =2) {
@DAN -2
}
Etc etc

Then repeat for the other characters, remember you will need to know the minimum and Maximum points the readers can gain.
and do ifs for the minimum amount all the way to the max amount 1 point at a time…

Reseting points for a character would not work as your character may already have 5 points from a previous chapter which you wouldn’t want to get rid of.

Edit: don’t forget to reset DANPOINT and JAMESPOINT right at the end of each chapter you use them in otherwise they will have points from other chapters still and that would take away more points than just the chapter you are replying

I don’t even know of this made any sense :joy: tell me what you think

7 Likes

It helps a lot

1 Like

Good to hear :slight_smile: just glad you understood it ha ha

1 Like

Iam new .but u explained it clearly

1 Like

Moved to Creator’s Corner since this is about coding. Make sure to check out our Forum Tutorial for more info about creating topics, and feel free to PM me if you’ve got questions. :smiley: