Search for some variable threads, i bet there are a lot there...
Variables work with Conditional Branch...
You set variables for something, i will give an example... A dice rolling example...
Ok, when you roll a dice it can be 1,2,3,4,5 or 6...
Ok, lets start:
"A simple dice gambling system that is coming from my head atm xD"
Rolling the dice:
"you add a npc to make the dice game start, to activate the switch rolling dice, and start the game."
if Switch Rolling dice On
Show choices:
Want to roll the dice?
Yes
variable (dice) rating 1~6
switch dice event on
else
nothing
Set (dice) variable = 0
Conditional Branch:
If switch dice event on
If variable (dice)= 1
"here you could show a picture witha number 1 on the dice"
Show picture (dice 1)
else
Conditional Branch:
If switch dice event on
If variable (dice)=2
show picture (dice2)
So on with the other 4 numbers.
Now to add something to happen when the value is 1...
in another paralell process
Conditional Branch
if variable (dice)=1
erase picture (dice 1)
show message: That roll sucked, try again...
Set variable (dice)=0
switch dice event off
Switch Rolling dice On
else
Conditional Branch
if variable (dice)=6
erase picture (dice 6)
show message: You just won, take this as a reward.
add item: 1000G
Set variable (dice)=0
switch dice event off
Switch Rolling dice On
else
Conditional Branch
if variable (dice)=3
erase picture (dice 3)
show message: Too bad, that's an unlucky number.
remove item: 500G
Set variable (dice)=0
switch dice event off
Switch Rolling dice On
This is a simple dice gambling system that i think is easy to teach you how it does work...
This was what came to my mind atm, so, hope you can understand and start using variables in a ton of diff ways.
Gl