home *** CD-ROM | disk | FTP | other *** search
- on PlayCardVocal index, wait
- global CPosition, CCcards, CCindexes, author, CardsDealt, UsrDivMeanSet, Significator, Cnt, Instruct, CardList
- put "playCardVocal" && index && the number of items in CCindexes
- if (index = 0) or (index > the number of items in CCindexes) then
- put "ret 1"
- return
- end if
- set cLine to line value(item index of CCindexes) of CardList
- if cLine = "0" then
- put "ret 2"
- return
- end if
- if UsrDivMeanSet = 1 then
- put "usrdivmeanset = true"
- if Instruct <> 1 then
- cursor(4)
- end if
- if (Cnt = 0) or (Cnt <> 2) then
- set Cnt to the controlDown
- end if
- if author = "Waite" then
- put "author = waite"
- if Cnt = 1 then
- if Instruct <> 1 then
- cursor(-1)
- end if
- return
- end if
- if Significator = item index of CCindexes then
- PlaySound(1, "NavVocal:Significator", 1, 1)
- end if
- if the machineType = 256 then
- put "Cpos\Waite\" & CPosition(mget, index)
- PlaySound(1, "CPos\Waite\" & CPosition(mget, index), 1, 1)
- else
- put "Cpos:Waite:" & CPosition(mget, index)
- PlaySound(1, "CPos:Waite:" & CPosition(mget, index), 1, 1)
- end if
- if Cnt = 1 then
- if Instruct <> 1 then
- cursor(-1)
- end if
- return
- end if
- idle()
- if the machineType = 256 then
- PlaySound(1, "3word\Waite\" & cLine, 1, 1)
- else
- PlaySound(1, "3word:Waite:" & cLine, 1, 1)
- end if
- if Cnt = 1 then
- if Instruct <> 1 then
- cursor(-1)
- end if
- return
- end if
- idle()
- else
- if author = "Foster" then
- put "author = foster"
- if Cnt = 1 then
- if Instruct <> 1 then
- cursor(-1)
- end if
- return
- end if
- if Significator = item index of CCindexes then
- PlaySound(1, "NavVocal:Significator", 1, 1)
- end if
- if the machineType = 256 then
- put "Cpos\Foster\" & CPosition(mget, index)
- PlaySound(1, "CPos\Foster\" & CPosition(mget, index), 1, 1)
- else
- put "Cpos:Foster:" & CPosition(mget, index)
- PlaySound(1, "CPos:Foster:" & CPosition(mget, index), 1, 1)
- end if
- if Cnt = 1 then
- if Instruct <> 1 then
- cursor(-1)
- end if
- return
- end if
- idle()
- if the machineType = 256 then
- PlaySound(1, "3word\Foster\" & cLine, 1, 1)
- else
- PlaySound(1, "3word:Foster:" & cLine, 1, 1)
- end if
- if Cnt = 1 then
- if Instruct <> 1 then
- cursor(-1)
- end if
- return
- end if
- idle()
- end if
- end if
- else
- if (wait = 1) and (Cnt <> 1) then
- repeat with i = 1 to 100
- if the controlDown then
- exit repeat
- end if
- idle()
- end repeat
- end if
- end if
- if Instruct <> 1 then
- cursor(-1)
- end if
- end
-