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

Chapter 2 by gene.sis gene.sis

Choose from different showcases:

Simple Game of Dice (Random Numbers) - Alternative

Showcase

This is an alternative version of Simple Game of Dice (Random Numbers).
This version provides the same functionality with fewer Link Chapters but more complex If-Statements. Whether this version works for your use case depends on your specific requirements. For example, you can't use the result of a specific dice roll, as this version combines the result of both dice rolls in one variable.

You can see the chapter settings (Score Changes and Conditions) and the chapter source code here.


{if@ variable > 100000}Please start the Game Mode on the right tab under "Score" or click here 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}

What's next?

Comments

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