home *** CD-ROM | disk | FTP | other *** search
- on Sound_Color index, wait
- global CPosition, CardsDealt, sndFile, Cnt, ClrFile, UsrDivColourSet, UsrDivToneSet
- if Cnt = 1 then
- return
- end if
- set wait to 0
- set index to index mod 78
- if index < 23 then
- cursor(4)
- if UsrDivColourSet = 1 then
- if the machineType = 256 then
- put "color\ " & item 2 of line index of ClrFile
- else
- put "color: " & item 2 of line index of ClrFile
- end if
- if the machineType = 256 then
- puppetSprite(6, 1)
- set the castNum of sprite 6 to the number of cast item 2 of line index of ClrFile
- set the ink of sprite 6 to 36
- set the locH of sprite 6 to 321
- set the locV of sprite 6 to 442
- puppetTransition(26, 1, 128, 1)
- updateStage()
- else
- puppetSprite(1, 1)
- set save to the foreColor of sprite 1
- set the foreColor of sprite 1 to value(item 2 of line index of ClrFile)
- puppetTransition(50, 1, 16, 1)
- updateStage()
- end if
- if UsrDivToneSet then
- set crdSnd to item 2 of line index of sndFile
- if the machineType = 256 then
- PlaySound(1, "CardSnds\" & crdSnd, 1, 1)
- else
- PlaySound(1, "CardSnds:" & crdSnd, 1, 1)
- end if
- end if
- if the machineType = 256 then
- set the locH of sprite 6 to -500
- puppetTransition(26, 1, 128, 1)
- updateStage()
- puppetSprite(6, 0)
- else
- set the foreColor of sprite 1 to save
- puppetTransition(50, 1, 16, 1)
- updateStage()
- puppetSprite(1, 0)
- end if
- else
- if UsrDivToneSet then
- set crdSnd to item 2 of line index of sndFile
- if the machineType = 256 then
- PlaySound(1, "CardSnds\" & crdSnd, 1, 1)
- else
- PlaySound(1, "CardSnds:" & crdSnd, 1, 1)
- end if
- end if
- end if
- end if
- cursor(-1)
- end
-