home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global gWetten, gNoPlayers
- KickBetVideo()
- playsound(1, "Zufall")
- set the visible of sprite 33 to 1
- set gWetten to []
- repeat with i = 1 to gNoPlayers
- repeat while 1
- set r to random(16)
- if (getOne(gActiveBets, r) > 0) and (getOne(gWetten, r) <= 0) then
- exit repeat
- end if
- end repeat
- append(gWetten, r)
- end repeat
- repeat with i in [21, 22, 23, 24, 3, 4, 5, 6]
- set the visible of sprite i to 0
- end repeat
- beBusy()
- set ls to 0
- repeat while soundBusy(1)
- if ls > 0 then
- set the visible of sprite ls to 0
- end if
- set ls to 2 + random(4)
- set the visible of sprite ls to 1
- go(label("Seitenauswahl") + random(4) - 1)
- updateStage()
- delay(8)
- end repeat
- repeat with i in [21, 22, 23, 24, 3, 4, 5, 6]
- set the visible of sprite i to 0
- end repeat
- beFree()
- set the visible of sprite 33 to 0
- updateStage()
- Wettseite(label("Seitenauswahl") + ((getAt(gWetten, 1) - 1) / 4))
- SpriteCursor(43, ["CursorFinger", "CursorFingerMask"])
- set the puppet of sprite 43 to 1
- set the blend of sprite 43 to 0
- end
-