screen slot_machine: modal True default icons = "®※↺↯⊘⌘⑦★☹☻☮☯✆♾" default s1 = 0 default s2 = 0 default s3 = 0 default s1_s = False default s2_s = False default s3_s = False default speed = .1 if s1_s: timer speed repeat True action If(s1 < len(icons)-1, SetScreenVariable("s1", s1+1), SetScreenVariable("s1", 0)) if s2_s: timer speed repeat True action If(s2 < len(icons)-1, SetScreenVariable("s2", s2+1), SetScreenVariable("s2", 0)) if s3_s: timer speed repeat True action If(s3 < len(icons)-1, SetScreenVariable("s3", s3+1), SetScreenVariable("s3", 0)) hbox: frame: # at btn vbox: text icons[s1] size 60 text icons[s1-1] size 80 text icons[s1-2] size 60 button: text "Stop" action SetScreenVariable("s1_s", False) frame: # at btn vbox: text icons[s2] size 60 text icons[s2-1] size 80 text icons[s2-2] size 60 button: text "Stop" action SetScreenVariable("s2_s", False) frame: # at btn vbox: text icons[s3] size 60 text icons[s3-1] size 80 text icons[s3-2] size 60 button: text "Stop" action SetScreenVariable("s3_s", False) button: yoffset 250 text "GO!" action SetScreenVariable("s1_s", True), SetScreenVariable("s2_s", True), SetScreenVariable("s3_s", True) if not s1_s and not s2_s and not s3_s: if s1 == s2 and s1 == s3: frame: # at btn yoffset -250 text "3 of the same!" elif s1 == s2 or s1 == s3 or s2 == s3: frame: # at btn yoffset -250 text "2 of the same!"