Events

Like the rooms “998” and “999”, the room “997” is put in the line of accessible boxes. It represents an event: an action triggered by the bot or by the player (via a reaction for example, you'll see that in Use of reactions), and which, if the conditions are met, produce an effect on the game.
It can be used to automatically go to another room, change the value of a variable, add or remove an object or state, or display text.
Let's take the previous example and make it automatically go to room 1 or 3 depending on the result:

[...]
*********************
2 First_Toss
You roll a 6 die. If you roll 5 or 6, you will be taken to the next room.
des_six|variable|%=1:6|You roll v_result_v|A 6-sided die.|nb_tries_six|variable|+1|You have made v_nb_tries_six_v roll.|Number of D6 rolls.
997|v_des_six_v.in.1-4|1|You're out of shape, start again!
997|v_of_six_v.in.5-6|3|Congratulations, you have succeeded after v_nb_tries_six_v attempts!
*********************
[...]

Notice that I have added a second variable (“v_nb_tries_six_v”) that counts the number of tries before success.
Now let's look at this in detail:

Find us on the discord Make&Play