Version :
JDR-Bot :
Scénario basique :
Advanced Scripts :
- Use Variables :
Version :
JDR-Bot :
Scénario basique :
Advanced Scripts :
Ceci est une ancienne révision du document !
First of all, a variable is an element of the game whose value can be changed. Take for example the number of lives in an RPG: the variable could have the name “life_points” and its value 5, or life_points = 5.
You can count wounds, a number of rounds, a number of keys, etc. Anything is possible.
Now here's how to include and use a variable in the bot:
Variables are declared in the same way as objects, on the same line in a room. Ignore for now the lines in black.
Let's look at each part in detail: