home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global glist, gn, mlist, tlist, isno, tct
- repeat with i = 10 to 16
- set the visible of sprite i to 1
- end repeat
- set the timeoutScript to EMPTY
- set the timeoutKeyDown to 0
- set the timeoutLength to 60 * 60
- set the timeoutMouse to 0
- set the timeoutPlay to 0
- if (isno + 10) = 10 then
- set isno to 1
- set tlist to []
- set mlist to []
- else
- set isno to isno + 1
- end if
- set tct to 1
- add(mlist, 7)
- set glist to []
- set gn to 31
- repeat with i = 31 to 41
- set the visible of sprite i to 1
- end repeat
- end
-
- on wait t
- set tn to the ticks + t
- repeat while the ticks <= tn
- nothing()
- end repeat
- end
-
- on hinotama num
- global glist, gn, tlist
- add(glist, num)
- add(tlist, num)
- set the visible of sprite gn to 0
- set gn to gn + 1
- end
-
- on endframe
- global gn
- if gn = 42 then
- tout()
- end if
- end
-
- on tcheck
- global tct
- if tct = 1 then
- set tct to 2
- puppetSound("2")
- set the timeoutLapsed to 0
- else
- if tct = 2 then
- set tct to 3
- puppetSound("3")
- set the timeoutLapsed to 0
- else
- if tct = 3 then
- set tct to 4
- puppetSound("5")
- set the timeoutLapsed to 0
- else
- tout()
- end if
- end if
- end if
- end
-
- on tout
- global glist, isno
- set the timeoutScript to EMPTY
- if isno = 7 then
- gotonetmovie("end.dcr")
- go("end")
- else
- if isno < 3 then
- if count(glist) < 3 then
- gotonetmovie("failure.dcr")
- go("end")
- else
- gotonetmovie("success.dcr")
- go("end")
- end if
- else
- if count(glist) < (isno + 1) then
- gotonetmovie("failure.dcr")
- go("end")
- else
- gotonetmovie("success.dcr")
- go("end")
- end if
- end if
- end if
- end
-