Let’s say you are making a dice minigame. the outcome will always be specified by you, the coder not by chance. a randomiser code would change that. for example.
you are in a game of dice. there is 1 round. you beat the other player by scoring higher than them.
set diceGame
gain diceGameround1
@{randomInt(1,6)}
but let’s say we have the option to name functions based on the template we are making. so that would be;
@{randomIntdiceGameOppositePlayer(1,6)} ← this is the command where the randomiser does its thing
then whatever number the player lands on. lets do 1.
if(diceGameOppositePlayer(1)){
@overlay DICE blablabla
NARR
You landed on 1.
Choose your next move.
choice
“Abandon game”{
if(diceGameround1)
NARR
You lose the game.
gain lostdiceGameround1
}
“Roll.”{
gain diceGameround1roll1OppositePlayer
now the player rolls their dice
@{randomIntdiceGameCurrentPlayer(1,6)}
now whatever random number the player gets let’s say 2 but the opposite player scored 1 before
if(diceGameround1roll1OppositePlayer){
@overlay DICE blabla
NARR
You won!
gain diceGameround1CurrentPlayerWin
exit diceGame
the gains could work with if/else/elif and the point system whatever you are comfortable with
please bump, like, comment support because this took me way too long
edit: i know it’s complicated but if you are an advanced coder this helps a lot with minigames