home *** CD-ROM | disk | FTP | other *** search
- global gNoPlayers, gWetten, gPlayerNumber, gPlayers
-
- on exitFrame
- global gNoPlayers
- if gNoPlayers > 1 then
- playSoundOnce(1, "Sprech5")
- else
- playSoundOnce(1, "Sprech4")
- end if
- set gWetten to []
- repeat with i = 0 to 3
- set the text of cast ("Recorde" & i + 1 & "a") to formatPunkte(getPropAt(getAt(gHighScores, (i * 4) + 1), 10)) & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & formatPunkte(getPropAt(getAt(gHighScores, (i * 4) + 3), 10))
- set the text of cast ("Recorde" & i + 1 & "b") to formatPunkte(getPropAt(getAt(gHighScores, (i * 4) + 2), 10)) & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & formatPunkte(getPropAt(getAt(gHighScores, (i * 4) + 4), 10))
- if gNoPlayers = 1 then
- set the text of cast ("Punkte" & i + 1 & "a") to formatPunkte(getAt(getAt(gPlayers, gPlayerNumber), 2 + (i * 4) + 1)) & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & formatPunkte(getAt(getAt(gPlayers, gPlayerNumber), 2 + (i * 4) + 3))
- set the text of cast ("Punkte" & i + 1 & "b") to formatPunkte(getAt(getAt(gPlayers, gPlayerNumber), 2 + (i * 4) + 2)) & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & RETURN & formatPunkte(getAt(getAt(gPlayers, gPlayerNumber), 2 + (i * 4) + 4))
- end if
- end repeat
- if gNoPlayers = 1 then
- set summe to 0
- set anz to 0
- repeat with i = 1 to 16
- if integerp(getAt(getAt(gPlayers, gPlayerNumber), 2 + i)) then
- set anz to anz + 1
- set summe to summe + getAt(getAt(gPlayers, gPlayerNumber), 2 + i)
- end if
- end repeat
- if anz > 0 then
- set the text of cast "Summe" to formatPunkte(summe)
- set the text of cast "Durchschnitt" to formatPunkte(summe / anz)
- else
- set the text of cast "Summe" to formatPunkte(0)
- set the text of cast "Durchschnitt" to formatPunkte(0)
- end if
- end if
- end
-