home *** CD-ROM | disk | FTP | other *** search
- global gp1list, gp2list, gp3list, gp4list, gp5list, gp6list, gpeachlist, gvisible, gsoundflg
-
- on kansei_init_rtn
- cursor(0)
- set gvisible to 0
- puppetSprite(4, 1)
- set the visible of sprite 7 to 1
- set the visible of sprite 8 to 1
- repeat with n = 31 to 42
- puppetSprite(n, 1)
- set the visible of sprite n to 1
- end repeat
- repeat with n = 43 to 48
- set the visible of sprite n to 0
- end repeat
- set gsoundflg to 0
- set_list_rtn()
- end
-
- on loop_rtn
- when mouseDown then SOUND_RTN
- if gsoundflg = 1 then
- if the timer <= 180 then
- nothing()
- else
- set gsoundflg to 0
- sound fadeIn 2, 15
- end if
- end if
- pmove_rtn()
- name_rtn()
- roll_chk()
- title_rtn()
- end
-
- on set_list_rtn
- set gpeachlist to [0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]
- set gp1list to [41: 59, 42: 61, 44: 66, 49: 75, 57: 90, 66: 108, 76: 127, 85: 145, 94: 163, 102: 178, 107: 187, 109: 192, 110: 194, 112: 195, 117: 199, 128: 206, 144: 217, 163: 231, 184: 245, 205: 259, 224: 273, 240: 284, 251: 291, 256: 295, 258: 296]
- set gp2list to [89: 4, 89: 5, 88: 9, 86: 16, 84: 27, 80: 41, 77: 55, 74: 70, 70: 84, 67: 99, 64: 113, 61: 124, 59: 132, 58: 139, 56: 144, 56: 147, 55: 149, 55: 150, 55: 151, 55: 155, 56: 161, 57: 171, 57: 184, 58: 197, 59: 210, 60: 224, 62: 238, 63: 251, 64: 264, 64: 277, 65: 287, 66: 297, 66: 298]
- set gp3list to [298: 7, 298: 8, 296: 10, 293: 14, 288: 21, 280: 32, 272: 45, 262: 59, 252: 73, 241: 88, 231: 102, 221: 116, 213: 129, 205: 140, 200: 147, 197: 151, 195: 153, 195: 154, 195: 154, 193: 156, 190: 159, 184: 164, 176: 171, 167: 179, 156: 189, 145: 199, 133: 210, 121: 221, 108: 232, 96: 243, 84: 254, 73: 264, 62: 274, 53: 282, 45: 289, 39: 294, 36: 297, 34: 299, 34: 299]
- set gp4list to [41: 59, 42: 61, 44: 66, 49: 75, 57: 90, 66: 108, 76: 127, 85: 145, 94: 163, 102: 178, 107: 187, 109: 192, 110: 194, 112: 195, 117: 199, 128: 206, 144: 217, 163: 231, 184: 245, 205: 259, 224: 273, 240: 284, 251: 291, 256: 295, 258: 296]
- set gp5list to [149: 3, 149: 4, 148: 5, 147: 9, 145: 14, 142: 20, 139: 29, 135: 39, 130: 52, 124: 66, 119: 81, 113: 96, 107: 110, 102: 124, 97: 137, 93: 147, 90: 154, 88: 158, 88: 159, 89: 160, 91: 163, 96: 169, 102: 179, 110: 190, 119: 202, 128: 215, 137: 227, 147: 240, 156: 253, 165: 265, 173: 276, 179: 286, 184: 292, 186: 295, 187: 296]
- set gp6list to [89: 4, 89: 5, 88: 9, 86: 16, 84: 27, 80: 41, 77: 55, 74: 70, 70: 84, 67: 99, 64: 113, 61: 124, 59: 132, 58: 139, 56: 144, 56: 147, 55: 150, 55: 151, 55: 155, 56: 161, 57: 171, 57: 184, 58: 197, 59: 210, 60: 224, 62: 238, 63: 251, 64: 264, 65: 287, 66: 293, 66: 293, 66: 297, 66: 298]
- end
-
- on pmove_rtn
- if getAt(gpeachlist, 1) <> 0 then
- if getAt(gpeachlist, 1) < 25 then
- setAt(gpeachlist, 1, getAt(gpeachlist, 1) + 1)
- set the locH of sprite 31 to getPropAt(gp1list, getAt(gpeachlist, 1))
- set the locV of sprite 31 to getAt(gp1list, getAt(gpeachlist, 1))
- else
- setAt(gpeachlist, 1, 0)
- set the locH of sprite 31 to -20
- set the locV of sprite 31 to -20
- end if
- end if
- if getAt(gpeachlist, 2) <> 0 then
- if getAt(gpeachlist, 2) < 33 then
- setAt(gpeachlist, 2, getAt(gpeachlist, 2) + 1)
- set the locH of sprite 32 to getPropAt(gp2list, getAt(gpeachlist, 2))
- set the locV of sprite 32 to getAt(gp2list, getAt(gpeachlist, 2))
- else
- setAt(gpeachlist, 2, 0)
- set the locH of sprite 32 to -20
- set the locV of sprite 32 to -20
- end if
- end if
- if getAt(gpeachlist, 3) <> 0 then
- if getAt(gpeachlist, 3) < 39 then
- setAt(gpeachlist, 3, getAt(gpeachlist, 3) + 1)
- set the locH of sprite 33 to getPropAt(gp3list, getAt(gpeachlist, 3))
- set the locV of sprite 33 to getAt(gp3list, getAt(gpeachlist, 3))
- else
- setAt(gpeachlist, 3, 0)
- set the locH of sprite 33 to -20
- set the locV of sprite 33 to -20
- end if
- end if
- if getAt(gpeachlist, 4) <> 0 then
- if getAt(gpeachlist, 4) < 25 then
- setAt(gpeachlist, 4, getAt(gpeachlist, 4) + 1)
- set the locH of sprite 34 to getPropAt(gp4list, getAt(gpeachlist, 4))
- set the locV of sprite 34 to getAt(gp4list, getAt(gpeachlist, 4))
- else
- setAt(gpeachlist, 4, 0)
- set the locH of sprite 34 to -20
- set the locV of sprite 34 to -20
- end if
- end if
- if getAt(gpeachlist, 5) <> 0 then
- if getAt(gpeachlist, 5) < 35 then
- setAt(gpeachlist, 5, getAt(gpeachlist, 5) + 1)
- set the locH of sprite 35 to getPropAt(gp5list, getAt(gpeachlist, 5))
- set the locV of sprite 35 to getAt(gp5list, getAt(gpeachlist, 5))
- else
- setAt(gpeachlist, 5, 0)
- set the locH of sprite 35 to -20
- set the locV of sprite 35 to -20
- end if
- end if
- if getAt(gpeachlist, 6) <> 0 then
- if getAt(gpeachlist, 6) < 35 then
- setAt(gpeachlist, 6, getAt(gpeachlist, 6) + 1)
- set the locH of sprite 36 to getPropAt(gp5list, getAt(gpeachlist, 6))
- set the locV of sprite 36 to getAt(gp5list, getAt(gpeachlist, 6))
- else
- setAt(gpeachlist, 6, 0)
- set the locH of sprite 36 to -20
- set the locV of sprite 36 to -20
- end if
- end if
- if getAt(gpeachlist, 7) <> 0 then
- if getAt(gpeachlist, 7) < 33 then
- setAt(gpeachlist, 7, getAt(gpeachlist, 7) + 1)
- set the locH of sprite 37 to getPropAt(gp2list, getAt(gpeachlist, 7))
- set the locV of sprite 37 to getAt(gp2list, getAt(gpeachlist, 7))
- else
- setAt(gpeachlist, 7, 0)
- set the locH of sprite 37 to -20
- set the locV of sprite 37 to -20
- end if
- end if
- if getAt(gpeachlist, 8) <> 0 then
- if getAt(gpeachlist, 8) < 33 then
- setAt(gpeachlist, 8, getAt(gpeachlist, 8) + 1)
- set the locH of sprite 38 to getPropAt(gp2list, getAt(gpeachlist, 8))
- set the locV of sprite 38 to getAt(gp2list, getAt(gpeachlist, 8))
- else
- setAt(gpeachlist, 8, 0)
- set the locH of sprite 38 to -20
- set the locV of sprite 38 to -20
- end if
- end if
- if getAt(gpeachlist, 9) <> 0 then
- if getAt(gpeachlist, 9) < 39 then
- setAt(gpeachlist, 9, getAt(gpeachlist, 9) + 1)
- set the locH of sprite 39 to getPropAt(gp3list, getAt(gpeachlist, 9))
- set the locV of sprite 39 to getAt(gp3list, getAt(gpeachlist, 9))
- else
- setAt(gpeachlist, 9, 0)
- set the locH of sprite 39 to -20
- set the locV of sprite 39 to -20
- end if
- end if
- if getAt(gpeachlist, 10) <> 0 then
- if getAt(gpeachlist, 10) < 25 then
- setAt(gpeachlist, 10, getAt(gpeachlist, 10) + 1)
- set the locH of sprite 40 to getPropAt(gp4list, getAt(gpeachlist, 10))
- set the locV of sprite 40 to getAt(gp4list, getAt(gpeachlist, 10))
- else
- setAt(gpeachlist, 10, 0)
- set the locH of sprite 40 to -20
- set the locV of sprite 40 to -20
- end if
- end if
- if getAt(gpeachlist, 11) <> 0 then
- if getAt(gpeachlist, 11) < 33 then
- setAt(gpeachlist, 11, getAt(gpeachlist, 11) + 1)
- set the locH of sprite 41 to getPropAt(gp2list, getAt(gpeachlist, 11))
- set the locV of sprite 41 to getAt(gp2list, getAt(gpeachlist, 11))
- else
- setAt(gpeachlist, 11, 0)
- set the locH of sprite 41 to -20
- set the locV of sprite 41 to -20
- end if
- end if
- if getAt(gpeachlist, 12) <> 0 then
- if getAt(gpeachlist, 12) < 25 then
- setAt(gpeachlist, 12, getAt(gpeachlist, 12) + 1)
- set the locH of sprite 42 to getPropAt(gp4list, getAt(gpeachlist, 12))
- set the locV of sprite 42 to getAt(gp4list, getAt(gpeachlist, 12))
- else
- setAt(gpeachlist, 12, 0)
- set the locH of sprite 42 to -20
- set the locV of sprite 42 to -20
- end if
- end if
- if getAt(gpeachlist, 2) = 21 then
- setAt(gpeachlist, 1, 1)
- end if
- if getAt(gpeachlist, 2) = 16 then
- setAt(gpeachlist, 3, 1)
- end if
- if getAt(gpeachlist, 2) = 6 then
- setAt(gpeachlist, 4, 1)
- end if
- if getAt(gpeachlist, 2) = 24 then
- setAt(gpeachlist, 5, 1)
- end if
- if getAt(gpeachlist, 2) = 30 then
- setAt(gpeachlist, 7, 1)
- end if
- if getAt(gpeachlist, 2) = 16 then
- setAt(gpeachlist, 8, 1)
- end if
- if getAt(gpeachlist, 3) = 17 then
- setAt(gpeachlist, 9, 1)
- end if
- if getAt(gpeachlist, 3) = 7 then
- setAt(gpeachlist, 10, 1)
- end if
- if getAt(gpeachlist, 3) = 25 then
- setAt(gpeachlist, 11, 1)
- end if
- if getAt(gpeachlist, 3) = 21 then
- setAt(gpeachlist, 12, 1)
- end if
- if getAt(gpeachlist, 11) = 14 then
- setAt(gpeachlist, 2, 1)
- end if
- if getAt(gpeachlist, 11) = 14 then
- setAt(gpeachlist, 6, 1)
- end if
- end
-
- on name_rtn
- if rollOver(12) then
- set the castNum of sprite 3 to the number of cast 61
- else
- if rollOver(13) then
- set the castNum of sprite 3 to the number of cast 62
- else
- if rollOver(15) then
- set the castNum of sprite 3 to the number of cast 64
- else
- if rollOver(16) then
- set the castNum of sprite 3 to the number of cast 65
- else
- if rollOver(17) then
- set the castNum of sprite 3 to the number of cast 66
- else
- if rollOver(18) then
- set the castNum of sprite 3 to the number of cast 67
- else
- if rollOver(19) then
- set the castNum of sprite 3 to the number of cast 68
- else
- if rollOver(20) then
- set the castNum of sprite 3 to the number of cast 69
- else
- if rollOver(21) then
- set the castNum of sprite 3 to the number of cast 70
- else
- if rollOver(22) then
- set the castNum of sprite 3 to the number of cast 71
- else
- if rollOver(24) then
- set the castNum of sprite 3 to the number of cast 73
- else
- if rollOver(25) then
- set the castNum of sprite 3 to the number of cast 74
- else
- if rollOver(26) then
- set the castNum of sprite 3 to the number of cast 79
- else
- if rollOver(27) then
- set the castNum of sprite 3 to the number of cast 80
- else
- if rollOver(28) then
- set the castNum of sprite 3 to the number of cast 76
- else
- if rollOver(29) then
- set the castNum of sprite 3 to the number of cast 77
- else
- if rollOver(30) then
- set the castNum of sprite 3 to the number of cast 78
- else
- set gvisible to 1
- set the visible of sprite 43 to 0
- set the visible of sprite 44 to 0
- set the visible of sprite 45 to 0
- set the visible of sprite 46 to 0
- set the visible of sprite 47 to 0
- set the visible of sprite 48 to 0
- set the castNum of sprite 3 to the number of cast 81
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- updateStage()
- end
-
- on roll_chk
- if gvisible = 1 then
- return
- end if
- if (clickOn() = 10) or (clickOn() = 11) or (clickOn() = 12) or (clickOn() = 13) then
- set the visible of sprite 44 to 1
- else
- set the visible of sprite 44 to 0
- end if
- if (clickOn() = 14) or (clickOn() = 15) or (clickOn() = 16) or (clickOn() = 17) then
- set the visible of sprite 45 to 1
- else
- set the visible of sprite 45 to 0
- end if
- if (clickOn() = 18) or (clickOn() = 19) or (clickOn() = 20) or (clickOn() = 21) or (clickOn() = 22) then
- set the visible of sprite 46 to 1
- else
- set the visible of sprite 46 to 0
- end if
- if (clickOn() = 23) or (clickOn() = 24) or (clickOn() = 25) then
- set the visible of sprite 47 to 1
- else
- set the visible of sprite 47 to 0
- end if
- if (clickOn() = 28) or (clickOn() = 29) or (clickOn() = 30) then
- set the visible of sprite 48 to 1
- else
- set the visible of sprite 48 to 0
- end if
- if (clickOn() = 26) or (clickOn() = 27) then
- set the visible of sprite 43 to 1
- else
- set the visible of sprite 43 to 0
- end if
- updateStage()
- end
-
- on title_rtn
- if rollOver(10) then
- set the castNum of sprite 4 to the number of cast 48
- else
- if rollOver(11) then
- set the castNum of sprite 4 to the number of cast 48
- else
- if rollOver(12) then
- set the castNum of sprite 4 to the number of cast 48
- else
- if rollOver(13) then
- set the castNum of sprite 4 to the number of cast 48
- else
- if rollOver(14) then
- set the castNum of sprite 4 to the number of cast 49
- else
- if rollOver(15) then
- set the castNum of sprite 4 to the number of cast 49
- else
- if rollOver(16) then
- set the castNum of sprite 4 to the number of cast 49
- else
- if rollOver(17) then
- set the castNum of sprite 4 to the number of cast 49
- else
- if rollOver(18) then
- set the castNum of sprite 4 to the number of cast 50
- else
- if rollOver(19) then
- set the castNum of sprite 4 to the number of cast 50
- else
- if rollOver(20) then
- set the castNum of sprite 4 to the number of cast 50
- else
- if rollOver(21) then
- set the castNum of sprite 4 to the number of cast 50
- else
- if rollOver(22) then
- set the castNum of sprite 4 to the number of cast 50
- else
- if rollOver(23) then
- set the castNum of sprite 4 to the number of cast 51
- else
- if rollOver(24) then
- set the castNum of sprite 4 to the number of cast 51
- else
- if rollOver(25) then
- set the castNum of sprite 4 to the number of cast 51
- else
- if rollOver(26) then
- set the castNum of sprite 4 to the number of cast 52
- else
- if rollOver(27) then
- set the castNum of sprite 4 to the number of cast 52
- else
- if rollOver(28) then
- set the castNum of sprite 4 to the number of cast 52
- else
- if rollOver(29) then
- set the castNum of sprite 4 to the number of cast 52
- else
- if rollOver(30) then
- set the castNum of sprite 4 to the number of cast 52
- else
- nothing()
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on sound_rtn
- set gvisible to 0
- if (clickOn() >= 12) and (clickOn() <= 30) then
- set whichsound to 2
- end if
- if clickOn() = 12 then
- puppetSound("S11.AIF")
- end if
- if clickOn() = 13 then
- puppetSound("S15.AIF")
- end if
- if clickOn() = 15 then
- puppetSound("S21.AIF")
- end if
- if clickOn() = 16 then
- puppetSound("S23.AIF")
- end if
- if clickOn() = 17 then
- puppetSound("S21.AIF")
- end if
- if clickOn() = 18 then
- set whichsound to 1
- sound fadeOut 2, 2
- puppetSound("S39.AIF")
- end if
- if clickOn() = 19 then
- set whichsound to 1
- sound fadeOut 2, 2
- puppetSound("S32.AIF")
- end if
- if clickOn() = 20 then
- set whichsound to 1
- sound fadeOut 2, 2
- puppetSound("S33.AIF")
- end if
- if clickOn() = 21 then
- set whichsound to 1
- sound fadeOut 2, 2
- puppetSound("S34.AIF")
- end if
- if clickOn() = 22 then
- set whichsound to 1
- sound fadeOut 2, 2
- puppetSound("S38.AIF")
- end if
- if clickOn() = 24 then
- puppetSound("S41.AIF")
- end if
- if clickOn() = 25 then
- puppetSound("S42.AIF")
- end if
- if clickOn() = 26 then
- puppetSound("S56.AIF")
- end if
- if clickOn() = 27 then
- puppetSound("S57.AIF")
- end if
- if clickOn() = 28 then
- puppetSound("S53.AIF")
- end if
- if clickOn() = 29 then
- puppetSound("S52.AIF")
- end if
- if clickOn() = 30 then
- puppetSound("S51.AIF")
- end if
- if (gsoundflg = 1) and (whichsound = 2) then
- set gsoundflg to 0
- sound fadeIn 2, 15
- end if
- if whichsound = 1 then
- set gsoundflg to 1
- startTimer()
- end if
- end
-