To make a gambling depended on numbers do this:
Make a event (i call it gamling
Create 4 modes
Go to the first mode
_____________________________________________________________
mode 1-touch or button
decision branch yes/no: Want to gamble?
if yes: decrease money (amount)
modify mode gambling-2
If no: nothing
______________________________________________________________
mode 2-auto
variable branch 3:
if shared variable 01=0 (use a unused variable)
decision branch 3 choices: Wich do you gues?
if 1: Increase shared variable 01+2
if 2:Increase sharedvariable01+03 modify mode 4, end event (winning number)
if 3: Increase shared variable 01+1
if shared variable 01=1
decision branch 3 choices: Wich do you gues?
if 1: Decrease shared variable 01-1
if 2: Increase shared variable 01+2
if 3: Increase shared variable 01+1, mod mode 4, end event (winning number)
If shared variable 01>1
modify mode 3
at the botem of this mode write this:
Message: Sorry wrong number, next time more luck. (or something like that)
modify mode 1
________________________________________________________________
Mode 3-auto
var branch 3:
if shared variable 01<2
modify mode 2
if shared variable 01=2
decision branch 3 choices: What is the winning number?
if 1: Decrease shared variable 01-1, mod mode 4, end event (winning number)
if 2: Increase shared variable 01+1
if 3: Decrease shared variable 01-2
if shared variable 01=3
decision branch 3 choices: What is the winning number?
if 1: Decrease shared variable 01-3
if 2: Decrease shared variable 01-2, mod mode 4, end event (winning number)
if 3: Decrease shared variable 01-1
at the bottom do this
message: Sorry you lost, try again if you have the money.
modify mode 1
_________________________________________________________________
mode 4-auto
message: Good this is the winning number you have won (amount)
increase money: (amount)
modify mode 1
end event
_________________________________________________________________
have questions, you can ask
Make a event (i call it gamling
Create 4 modes
Go to the first mode
_____________________________________________________________
mode 1-touch or button
decision branch yes/no: Want to gamble?
if yes: decrease money (amount)
modify mode gambling-2
If no: nothing
______________________________________________________________
mode 2-auto
variable branch 3:
if shared variable 01=0 (use a unused variable)
decision branch 3 choices: Wich do you gues?
if 1: Increase shared variable 01+2
if 2:Increase sharedvariable01+03 modify mode 4, end event (winning number)
if 3: Increase shared variable 01+1
if shared variable 01=1
decision branch 3 choices: Wich do you gues?
if 1: Decrease shared variable 01-1
if 2: Increase shared variable 01+2
if 3: Increase shared variable 01+1, mod mode 4, end event (winning number)
If shared variable 01>1
modify mode 3
at the botem of this mode write this:
Message: Sorry wrong number, next time more luck. (or something like that)
modify mode 1
________________________________________________________________
Mode 3-auto
var branch 3:
if shared variable 01<2
modify mode 2
if shared variable 01=2
decision branch 3 choices: What is the winning number?
if 1: Decrease shared variable 01-1, mod mode 4, end event (winning number)
if 2: Increase shared variable 01+1
if 3: Decrease shared variable 01-2
if shared variable 01=3
decision branch 3 choices: What is the winning number?
if 1: Decrease shared variable 01-3
if 2: Decrease shared variable 01-2, mod mode 4, end event (winning number)
if 3: Decrease shared variable 01-1
at the bottom do this
message: Sorry you lost, try again if you have the money.
modify mode 1
_________________________________________________________________
mode 4-auto
message: Good this is the winning number you have won (amount)
increase money: (amount)
modify mode 1
end event
_________________________________________________________________
have questions, you can ask
