home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global gNoPlayers, gWetten
- if getOne(gWetten, wettnr(the clickOn - 16)) then
- playsound(1, "Markier")
- deleteOne(gWetten, wettnr(the clickOn - 16))
- set the visible of sprite (the clickOn + 4) to 0
- else
- if gNoPlayers > 1 then
- if count(gWetten) >= gNoPlayers then
- playSoundOnce(1, "Sprech6")
- else
- playsound(1, "Markier")
- append(gWetten, wettnr(the clickOn - 16))
- set the visible of sprite (the clickOn + 4) to 1
- end if
- else
- playsound(1, "Markier")
- repeat with i = 21 to 24
- set the visible of sprite i to 0
- end repeat
- set gWetten to [wettnr(the clickOn - 16)]
- set the visible of sprite (the clickOn + 4) to 1
- end if
- end if
- if count(gWetten) = gNoPlayers then
- SpriteCursor(43, ["CursorFinger", "CursorFingerMask"])
- set the puppet of sprite 43 to 1
- set the blend of sprite 43 to 0
- else
- SpriteCursor(43, 0)
- set the puppet of sprite 43 to 1
- set the blend of sprite 43 to 100
- end if
- end
-