◆Comment:Player has to correctly guess the position of 4 varied symbols 4 times.
◆Comment:Chances:
: :Grand Prize: 0.39%
: :3 of 4 or Higher: 1.56%
: :2 of 4 or Higher: 6.25%
: :1 of 4 or Higher: 25%
◆Text:None, Window, Bottom
: :Would you like the play the lottery?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes
◆Control Switches:#0001..0008 = OFF
◆Control Variables:#0001 Lottery_Slot 1 = Random 1..4
◆If:Lottery_Slot 1 = 1
◆Control Variables:#0009 Lottery_Slot 1 Name = "Square"
◆
:End
◆If:Lottery_Slot 1 = 2
◆Control Variables:#0009 Lottery_Slot 1 Name = "Triangle"
◆
:End
◆If:Lottery_Slot 1 = 3
◆Control Variables:#0009 Lottery_Slot 1 Name = "Cross"
◆
:End
◆If:Lottery_Slot 1 = 4
◆Control Variables:#0009 Lottery_Slot 1 Name = "Circle"
◆
:End
◆Control Variables:#0002 Lottery_Slot 2 = Random 1..4
◆If:Lottery_Slot 2 = 1
◆Control Variables:#0010 Lottery_Slot 2 Name = "Square"
◆
:End
◆If:Lottery_Slot 2 = 2
◆Control Variables:#0010 Lottery_Slot 2 Name = "Triangle"
◆
:End
◆If:Lottery_Slot 2 = 3
◆Control Variables:#0010 Lottery_Slot 2 Name = "Cross"
◆
:End
◆If:Lottery_Slot 2 = 4
◆Control Variables:#0010 Lottery_Slot 2 Name = "Circle"
◆
:End
◆Control Variables:#0003 Lottery_Slot 3 = Random 1..4
◆If:Lottery_Slot 3 = 1
◆Control Variables:#0011 Lottery_Slot 3 Name = "Square"
◆
:End
◆If:Lottery_Slot 3 = 2
◆Control Variables:#0011 Lottery_Slot 3 Name = "Triangle"
◆
:End
◆If:Lottery_Slot 3 = 3
◆Control Variables:#0011 Lottery_Slot 3 Name = "Cross"
◆
:End
◆If:Lottery_Slot 3 = 4
◆Control Variables:#0011 Lottery_Slot 3 Name = "Circle"
◆
:End
◆Control Variables:#0004 Lottery_Slot 4 = Random 1..4
◆If:Lottery_Slot 4 = 1
◆Control Variables:#0012 Lottery_Slot 4 Name = "Square"
◆
:End
◆If:Lottery_Slot 4 = 2
◆Control Variables:#0012 Lottery_Slot 4 Name = "Triangle"
◆
:End
◆If:Lottery_Slot 4 = 3
◆Control Variables:#0012 Lottery_Slot 4 Name = "Cross"
◆
:End
◆If:Lottery_Slot 4 = 4
◆Control Variables:#0012 Lottery_Slot 4 Name = "Circle"
◆
:End
◆Text:None, Window, Bottom
: :Pick 4 symbols
◆Show Choices:Square, Triangle, Cross, Circle (Window, Right, #1, -)
:When Square
◆Control Variables:#0005 Lottery_Player Choice 1 = 1
◆Control Variables:#0013 Lottery_Player Choice 1 Name = "Square"
◆
:When Triangle
◆Control Variables:#0005 Lottery_Player Choice 1 = 2
◆Control Variables:#0013 Lottery_Player Choice 1 Name = "Triangle"
◆
:When Cross
◆Control Variables:#0005 Lottery_Player Choice 1 = 3
◆Control Variables:#0013 Lottery_Player Choice 1 Name = "Cross"
◆
:When Circle
◆Control Variables:#0005 Lottery_Player Choice 1 = 4
◆Control Variables:#0013 Lottery_Player Choice 1 Name = "Circle"
◆
:End
◆Show Choices:Square, Triangle, Cross, Circle (Window, Right, #1, -)
:When Square
◆Control Variables:#0006 Lottery_Player Choice 2 = 1
◆Control Variables:#0014 Lottery_Player Choice 2 Name = "Square"
◆
:When Triangle
◆Control Variables:#0006 Lottery_Player Choice 2 = 2
◆Control Variables:#0014 Lottery_Player Choice 2 Name = "Triangle"
◆
:When Cross
◆Control Variables:#0006 Lottery_Player Choice 2 = 3
◆Control Variables:#0014 Lottery_Player Choice 2 Name = "Cross"
◆
:When Circle
◆Control Variables:#0006 Lottery_Player Choice 2 = 4
◆Control Variables:#0014 Lottery_Player Choice 2 Name = "Circle"
◆
:End
◆Show Choices:Square, Triangle, Cross, Circle (Window, Right, #1, -)
:When Square
◆Control Variables:#0007 Lottery_Player Choice 3 = 1
◆Control Variables:#0015 Lottery_Player Choice 3 Name = "Square"
◆
:When Triangle
◆Control Variables:#0007 Lottery_Player Choice 3 = 2
◆Control Variables:#0015 Lottery_Player Choice 3 Name = "Triangle"
◆
:When Cross
◆Control Variables:#0007 Lottery_Player Choice 3 = 3
◆Control Variables:#0015 Lottery_Player Choice 3 Name = "Cross"
◆
:When Circle
◆Control Variables:#0007 Lottery_Player Choice 3 = 4
◆Control Variables:#0015 Lottery_Player Choice 3 Name = "Circle"
◆
:End
◆Show Choices:Square, Triangle, Cross, Circle (Window, Right, #1, -)
:When Square
◆Control Variables:#0008 Lottery_Player Choice 4 = 1
◆Control Variables:#0016 Lottery_Player Choice 4 Name = "Square"
◆
:When Triangle
◆Control Variables:#0008 Lottery_Player Choice 4 = 2
◆Control Variables:#0016 Lottery_Player Choice 4 Name = "Triangle"
◆
:When Cross
◆Control Variables:#0008 Lottery_Player Choice 4 = 3
◆Control Variables:#0016 Lottery_Player Choice 4 Name = "Cross"
◆
:When Circle
◆Control Variables:#0008 Lottery_Player Choice 4 = 4
◆Control Variables:#0016 Lottery_Player Choice 4 Name = "Circle"
◆
:End
◆If:Lottery_Slot 1 = Lottery_Player Choice 1
◆Control Switches:#0001 Lottery_Correct 1 = ON
◆
:End
◆If:Lottery_Slot 2 = Lottery_Player Choice 2
◆Control Switches:#0002 Lottery_Correct 2 = ON
◆
:End
◆If:Lottery_Slot 3 = Lottery_Player Choice 3
◆Control Switches:#0003 Lottery_Correct 3 = ON
◆
:End
◆If:Lottery_Slot 4 = Lottery_Player Choice 4
◆Control Switches:#0004 Lottery_Correct 4 = ON
◆
:End
◆Text:None, Window, Bottom
: :Correct Answer: \V[9] \V[10] \V[11] \V[12]
: :Your Answer : \V[13] \V[14] \V[15] \V[16]
◆If:Script:Check.true(1,2,3,4)
◆Text:None, Window, Bottom
: :You've won the Grand Prize
◆Control Switches:#0005 Lottery_Grand Prize = ON
◆
:Else
◆If:Script:Check.true(1,2,3) || Check.true(1,2,4) || Check.true(1,3,4) || Check.true(2,3,4)
◆Text:None, Window, Bottom
: :You've matched 3 of the 4 symbols, here is your prize.
◆Control Switches:#0006 Lottery_3 of 4 = ON
◆
:Else
◆If:Script:Check.true(1,2) || Check.true(1,3) || Check.true(1,4) || Check.true(2,3) || Check.true(2,4) || Check.true (3,4)
◆Text:None, Window, Bottom
: :You've matched 2 of the 4 symbols, here is your prize.
◆Control Switches:#0007 Lottery_2 of 4 = ON
◆
:Else
◆If:Script:Check.any_true(1,2,3,4)
◆Text:None, Window, Bottom
: :You've matched only 1 of the 4 symbols, here is your
: :prize.
◆Control Switches:#0008 Lottery_1 of 4 = ON
◆
:Else
◆Text:None, Window, Bottom
: :None of your symbols matched.
◆
:End
◆
:End
◆
:End
◆
:End
◆
:When No
◆Text:None, Window, Bottom
: :Okay
◆
:End
◆Comment:Prizes are shown as switches 5-8 from greatest to least. I will give the player a different
: :reward depending on what environment they are in, which is why i didn't implement it in here.
: :Switches 5-8 should be turned off after the player gets their prize.