You can now add random functions to your gameplay, allowing you to unlock the following types of game functionality!

  • Random dice rolls of any denomination (e.g. D20, D2, D100)

  • Random loot or rewards

  • Increase values by random amounts

So instead of:

player choice → fixed outcome

You can now do:

player choice → random roll → different outcomes

Option 1 : dice notation

It turns affection into a random roll instead of a fixed number.

You are making the affection = a dice roll

✏️ Example:

If you write:

1d20
  • The game picks a number from 1 to 20

  • That number becomes affection

What does it look like?

Option 2 : random between X and Y

It sets affection to a random number in a range (with an optional bonus added).

Pick a random number between X and Y, and set affection to that. You can add a fixed bonus on top of it.

✏️ Example:

If you write:

Min value 1 and max value 5 + 2
  • The game picks a number from 1 to 5

  • The game always adds 2

  • The outcome will always be between 3 and 7

Option 3: increase by random amount

Similar to the previous option, but instead of setting a new score it increases or decreases the player’s existing score.

Outcome

After applying any of these options, use a checkpoint or a choice requiring a minimum amount of points for a desirable outcome.

✏️ Example:

You need at least 6 points for the positive outcome “Heal the Love Interest.”

Position your checkpoint or choice immediately after the random step.

  • If Random > 6 = positive outcome

  • If Diceroll < 6 = negative outcome