home *** CD-ROM | disk | FTP | other *** search
- on SaytheMixture
- global gGameSol, gGameState, gMasterMoves, gDifficultyLevel, gHostSoundQueue
- gMasterMoves = EMPTY
- theOrder = item 4 of gGameSol
- case gDifficultyLevel of
- 1:
- put "57411" & random(3) into item 1 of gMasterMoves
- repeat with i = 1 to 2
- whichFruit = value(char i of theOrder)
- put "5742" & string((whichFruit * 2) - 1) & item whichFruit of gGameSol into item i + 1 of gMasterMoves
- end repeat
- whichFruit = value(char 3 of theOrder)
- put "5742" & string(whichFruit * 2) & item whichFruit of gGameSol into item 4 of gMasterMoves
- 2:
- put "575111" into item 1 of gMasterMoves
- refFruit = value(char 1 of theOrder)
- put "5742" & string((refFruit * 2) - 1) & item refFruit of gGameSol into item 2 of gMasterMoves
- put "575112" into item 3 of gMasterMoves
- repeat with i = 2 to 3
- whichFruit = value(char i of theOrder)
- theRelative = value(item whichFruit of gGameSol) - value(item refFruit of gGameSol)
- if theRelative > 0 then
- theResponse = 1
- else
- if theRelative < 0 then
- theResponse = 2
- else
- theResponse = 3
- end if
- end if
- case refFruit of
- 1:
- 2:
- if whichFruit = 3 then
- theResponse = theResponse + 4
- end if
- 3:
- theResponse = theResponse + 4
- end case
- put "5751" & string((2 * whichFruit) + (i - 2)) & string(theResponse) into item i + 2 of gMasterMoves
- end repeat
- 3:
- put "574113" into item 1 of gMasterMoves
- refFruit = value(char 1 of theOrder)
- refNum = value(item refFruit of gGameSol)
- case refNum of
- 1:
- refVox = "1"
- 2:
- refVox = "2"
- 4:
- refVox = "3"
- otherwise:
- refVox = "4"
- end case
- put "5742" & string((refFruit * 2) - 1) & item refFruit of gGameSol into item 2 of gMasterMoves
- repeat with i = 2 to 3
- whichFruit = value(char i of theOrder)
- theRelative = value(item whichFruit of gGameSol) - value(item refFruit of gGameSol)
- theRatio = 10 * value(item whichFruit of gGameSol) / value(item refFruit of gGameSol)
- if theRelative > 0 then
- theResponse = 57528
- else
- if theRelative < 0 then
- theResponse = 57524
- else
- theResponse = 57611
- end if
- end if
- case refFruit of
- 1:
- if whichFruit = 2 then
- theFruit = 3
- else
- theFruit = 5
- end if
- case theRatio of
- 40, 2:
- theFruit = theFruit + 1
- end case
- 2:
- if whichFruit = 1 then
- theFruit = 1
- else
- theFruit = 6
- end if
- case theRatio of
- 40, 2:
- if theFruit = 1 then
- theFruit = 2
- else
- theFruit = 5
- end if
- end case
- 3:
- if whichFruit = 1 then
- theFruit = 2
- else
- theFruit = 4
- end if
- case theRatio of
- 40, 2:
- if theFruit = 2 then
- theFruit = 1
- else
- theFruit = 3
- end if
- end case
- end case
- put string(theResponse + (i - 2)) & string(theFruit) into item i + 1 of gMasterMoves
- end repeat
- end case
- gHostSoundQueue = gMasterMoves
- end
-