home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global orgelH, stuhlH, liftH, mainH, sideH, mytempo, VentH, colorpower, kellergitter, eetermpwr, drehs
- set colorpower to 1
- set eetermpwr to 1
- set drehs to 0
- if eetermpwr = 0 then
- set the visible of sprite 19 to 0
- else
- if colorpower = 1 then
- set the visible of sprite 19 to 1
- end if
- end if
- set the visible of sprite 20 to 0
- puppetSprite(20, 1)
- set the locH of sprite 20 to 320
- if colorpower = 0 then
- set the visible of sprite 10 to 0
- else
- set the visible of sprite 10 to 1
- end if
- end
-
- on switch me, type
- global delayT
- set delayT to 5
- if type = 1 then
- set steps to 5
- else
- set steps to 4
- end if
- set s0 to the castNum of sprite me
- set s1 to s0 - steps
- set s2 to s0 + steps
- if the name of cast s1 = "a" then
- repeat with i = s0 down to s1
- set the castNum of sprite me to i
- startTimer()
- repeat while the timer < delayT
- updateStage()
- end repeat
- updateStage()
- end repeat
- else
- if the name of cast s0 = "a" then
- repeat with i = s0 to s2
- set the castNum of sprite me to i
- startTimer()
- repeat while the timer < delayT
- updateStage()
- end repeat
- updateStage()
- end repeat
- end if
- end if
- end
-
- on checkventh
- global VentH, mainH, sideH, stuhlH, orgelH, mytempo
- if VentH = 0 then
- if (mainH = 0) and (mytempo > 0) then
- switchvent()
- else
- if (mainH = 1) and (mytempo > 0) then
- if mytempo <= 1 then
- if ((orgelH + stuhlH) = 0) or ((orgelH + sideH) = 0) then
- switchvent()
- end if
- else
- if orgelH = 0 then
- switchvent()
- end if
- end if
- end if
- end if
- end if
- end
-
- on switchvent
- global VentH, mytempo
- if VentH = 0 then
- set VentH to 1
- if mytempo > 0 then
- puppetSound(2, the number of cast "Vout")
- end if
- set thenum to the number of cast "vent"
- repeat with x = thenum down to thenum - 5
- set the castNum of sprite 14 to x
- updateStage()
- end repeat
- set the castNum of sprite 20 to the number of cast "La"
- updateStage()
- end if
- end
-