(include "sci.sh")
(use "Main")
(use "AnimDialog")
(use "sStopEggTimer")
(use "eureka")
(use "n255")
(use "Blink")
(use "CueObj")
(use "MoveFwd")
(use "n958")
(use "ScaleTo")
(use "Sound")
(use "Cycle")
(use "Sounds")
(use "View")
(use "Obj")
(script 201)


(local
    local0
    local1
    local2
    local3
    local4[2]
    local8
    local9
    local10
    local11
    local12
    local13
    local14
    local15
    local41 = 65535
    local41_2[26] = (0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 )
    local41[16] = (212 212 213 221 222 223 224 225 226 214 216 214 216 2243 2272 220 )
    local57[16] = (0 0 0 0 0 0 0 0 0 0 0 214 216 0 413 )
    local73 = 1
    local74 = 1

)
(procedure public (proc201_5 param1)
    = local73 param1
)


(procedure public (proc201_6 param1)
    (flo:
        setLoop(1)
        setCycle(End 
            (if (paramTotal)
                param1
            )(else
                0
            )
)
    )
    (floArm:hide())
    (send gEgo:
        setLoop(1)
        setCel(0)
        posn(178 95)
        show()
    )
)


(procedure public (proc201_7 param1)
    (drooleArm:
        setScript(0)
        hide()
    )
    (droole:
        setLoop(1)
        setCycle(End 
            (if (paramTotal)
                param1
            )(else
                0
            )
)
    )
    (drooleHand:hide())
)


(procedure public (proc201_20)
    return local14
)


(procedure public (proc201_21)
    = local14 0
)


(procedure public (proc201_22)
    return local15
)


(procedure public (proc201_27 param1)
    = local74 param1
)


(procedure public (proc201_33)
    = local15 0
)


(procedure (localproc_0544)
    (if (proc0_1(84))
        (send (ScriptID(202 2)):init())
        proc204_1()
    )
)


(procedure (localproc_055f)
    (var temp0, temp1, temp2, temp3, temp4[6])
    = temp1 0
    = temp0 0
    (while (< temp0 14)
        = temp3 1
        = temp2 0
        (while (< temp2 5)
            (if (<> StrAt(@local15 temp2) StrAt("00000 71552 92767 20011 69869 90210 53284 41666 41666 91001 01015 44091 81100 54671" (+ temp1 temp2)))
                break
            )
            ++temp2
        )
        (if (temp3)
            return 
                (if (<= temp0 13)
                    temp0
                )(else
                    15
                )
        )
        = temp1 (+ temp1 6)
        ++temp0
    )
    return 15
)


(procedure (localproc_05f7)
    (if (proc0_1(84))
        (if (<> (send gSq5Music1:number) 42)
            (send gSq5Music1:
                number(42)
                loop(-1)
                play(127)
            )
        )
    )(else
        (if (proc0_1(61))
            (if (<> (send gSq5Music1:number) 20)
                (send gSq5Music1:
                    number(20)
                    loop(-1)
                    play(127)
                )
            )
        )(else
            (if (proc0_1(42) or (== (eureka:puke) 2))
                (if (<> (send gSq5Music1:number) 38)
                    (send gSq5Music1:
                        number(38)
                        loop(-1)
                        play(127)
                    )
                )
            )(else
                (if (<> (send gSq5Music1:number) 101)
                    (send gSq5Music1:
                        number(101)
                        loop(-1)
                        play(75)
                    )
                )(else
                    (send gSq5Music1:pause(0))
                )
            )
        )
    )
)


(procedure (localproc_06b3)
    (if (proc0_1(84) or (>= (eureka:puke) 4))
    )(else
        (send gSq5Music2:
            number(206)
            loop(-1)
            play()
        )
    )
)


(procedure (localproc_0fd7)
    (var temp0, temp1)
    = temp0 0
    (while (< temp0 (send gCast:size))
        = temp1 (send gCast:at(temp0))
        (if ((send temp1:isKindOf(Actor)))
            (send temp1:cue())
        )
        ++temp0
    )
)


(procedure (localproc_1011)
    return local73
)


(procedure (localproc_1019)
    return local74
)


(procedure (localproc_1021)
    (var temp0, temp1)
    = temp1 4
    = temp0 1
    (while (< temp0 temp1)
        (send ((fastStar:new())):init())
        (send ((mediumStar:new())):init())
        (send ((slowStar:new())):init())
        ++temp0
    )
    (fastStar:init())
    (mediumStar:init())
    (slowStar:init())
)


(procedure (localproc_1077)
    (if (<> gEurekaCurLocation 0)
        (if (proc0_1(32))
            = local12 0
        )(else
            = local12 1
        )
        localproc_1121()
    )
)


(instance public rm201 of Rm
    (properties
        noun 32
        picture 41
        style 10
    )

    (method (init param1)
        (var temp0)
        (send gRoom:setRegions(210))
        proc958_0(143 201 205 202)
        proc958_0(128 98 217 202 203 992 200)
        (super:init(rest param1))
        (send gRoom:setScript(sInitRoom))
    )


    (method (doit)
        (if (script)
        )(else
            (if ((eureka:timer))
                (self:setScript(sHandleTimer))
            )(else
                (if (proc0_1(84) and not proc0_1(86))
                    proc0_2(85)
                    (send gRoom:setScript(sAbandonShip))
                )
            )
        )
        (super:doit())
    )


    (method (dispose)
        (send gWalkHandler:delete(bridge))
        (theMusic3:dispose())
        (if (not proc999_5(gTheGModNum 200 222))
            (send gSq5Music2:fade())
            (if (not proc999_5(gTheGModNum 212 213))
                (send gSq5Music1:fade())
            )
        )
        DisposeScript(202)
        DisposeScript(204)
        DisposeScript(207)
        DisposeScript(208)
        DisposeScript(209)
        DisposeScript(211)
        DisposeScript(214)
        DisposeScript(216)
        DisposeScript(217)
        DisposeScript(218)
        DisposeScript(219)
        DisposeScript(220)
        DisposeScript(221)
        DisposeScript(232)
        DisposeScript(233)
        (super:dispose())
    )


    (method (doVerb param1)
        (if ((send gCast:contains(ScriptID(204 4))) and not proc0_1(84))
            (send gRoom:setScript(ScriptID(204 5)))
        )(else
            (super:doVerb(param1))
        )
    )


    (method (notify param1 param2 param3 param4 param5 param6)
        (var temp0)
        (asm
            pushi   #handsOff
            pushi   0
            lag     gSQ5
            send    4
            lsp     param1
            dup     
            ldi     1
            eq?     
            bnt     code_03c0
            pushi   8
            lea     @local15
            push    
            pushi   201
            pushi   0
            lsp     param2
            ldi     48
            add     
            push    
            lsp     param3
            ldi     48
            add     
            push    
            lsp     param4
            ldi     48
            add     
            push    
            lsp     param5
            ldi     48
            add     
            push    
            lsp     param6
            ldi     48
            add     
            push    
            callk   Format, 16
            ldi     0
            sat     temp0
            pushi   #destination
            pushi   0
            class   eureka
            send    4
            bnt     code_024c
            pushi   #destination
            pushi   0
            class   eureka
            send    4
            sat     temp0
code_024c:  pushi   0
            call    localproc_055f, 0
            sal     local14
            pushi   #destination
            pushi   1
            push    
            class   eureka
            send    6
            pushi   #destination
            pushi   0
            class   eureka
            send    4
            push    
            ldi     0
            eq?     
            bnt     code_0275
            pushi   #destination
            pushi   1
            pushi   0
            class   eureka
            send    6
            jmp     code_0294
code_0275:  pushi   #destination
            pushi   0
            class   eureka
            send    4
            push    
            ldi     7
            eq?     
            bnt     code_0294
            lsg     global142
            ldi     2
            eq?     
            bnt     code_0294
            pushi   #destination
            pushi   1
            pushi   8
            class   eureka
            send    6
code_0294:  pushi   #destination
            pushi   0
            class   eureka
            send    4
            push    
            pushi   #curLocation
            pushi   0
            class   eureka
            send    4
            eq?     
            bnt     code_02c9
            pushi   #state
            pushi   0
            class   eureka
            send    4
            push    
            dup     
            ldi     3
            eq?     
            bnt     code_02c1
            pushi   #destination
            pushi   1
            pushi   0
            class   eureka
            send    6
            jmp     code_02c5
code_02c1:  dup     
            ldi     1
            eq?     
code_02c5:  toss    
            jmp     code_03b7
code_02c9:  pushi   #destination
            pushi   0
            class   eureka
            send    4
            push    
            ldi     4
            eq?     
            bnt     code_0321
            pushi   1
            pushi   30
            callb   proc0_1, 2
            bnt     code_0321
            pushi   #say
            pushi   4
            pushi   23
            pushi   0
            pushi   43
            pushi   1
            lag     gTestMessager
            send    12
            lat     temp0
            bnt     code_0302
            pushi   #destination
            pushi   1
            push    
            class   eureka
            send    6
            ldi     65535
            sap     param1
            jmp     code_03b7
code_0302:  pushi   #destination
            pushi   1
            pushi   0
            class   eureka
            send    6
            pushi   #warnings
            pushi   1
            pushi   0
            pushi   135
            pushi   1
            pushi   0
            pushi   146
            pushi   1
            pushi   0
            class   eureka
            send    18
            jmp     code_03b7
code_0321:  pushi   1
            pushi   32
            callb   proc0_1, 2
            bnt     code_037a
            pushi   #warnings
            pushi   1
            pushi   0
            pushi   135
            pushi   1
            pushi   0
            pushi   29
            pushi   1
            pushi   1
            pushi   146
            pushi   1
            pushi   0
            class   eureka
            send    24
            pushi   146
            pushi   3
            pushi   #destination
            pushi   0
            class   eureka
            send    4
            push    
            ldi     3
            eq?     
            bnt     code_0367
            pushi   1
            pushi   9
            callb   proc0_1, 2
            not     
            bnt     code_0367
            pushi   2
            pushi   210
            pushi   6
            callk   ScriptID, 4
            jmp     code_0370
code_0367:  pushi   2
            pushi   210
            pushi   4
            callk   ScriptID, 4
code_0370:  push    
            pushi   0
            pushi   30
            class   eureka
            send    10
            jmp     code_03b7
code_037a:  pushi   #timer
            pushi   1
            pushi   0
            pushi   674
            pushi   1
            pushi   0
            pushi   146
            pushi   1
            pushi   0
            class   eureka
            send    18
            pushi   #state
            pushi   0
            class   eureka
            send    4
            push    
            ldi     2
            eq?     
            bnt     code_03a2
            pushi   #state
            pushi   1
            pushi   1
            class   eureka
            send    6
code_03a2:  pushi   #setScript
            pushi   3
            pushi   2
            pushi   210
            pushi   2
            callk   ScriptID, 4
            push    
            pushi   0
            pushi   30
            class   eureka
            send    10
code_03b7:  pushi   #warnings
            pushi   1
            pushi   0
            class   eureka
            send    6
code_03c0:  toss    
            lap     param1
            sal     local13
            pushi   #state
            pushi   0
            class   eureka
            send    4
            push    
            dup     
            ldi     0
            eq?     
            bnt     code_03f0
            pushi   #stopUpd
            pushi   0
            pushi   2
            pushi   214
            pushi   3
            callk   ScriptID, 4
            send    4
            pushi   #stopUpd
            pushi   0
            pushi   2
            pushi   214
            pushi   2
            callk   ScriptID, 4
            send    4
code_03f0:  toss    
            pushi   #stopUpd
            pushi   0
            lofsa   droole
            send    4
            ret     
        )
    )

)
(instance sInitRoom of Script
    (properties)

    (method (changeState newState)
        (var temp0)
        (switch (= state newState)
            (case 0
                ((bridge:init()) (buttonPanel:init()) (send gEgo:
                    view(200)
                    init()
                    loop(0)
                    cel(0)
                    posn(132 95)
                    setScale(0)
                    setPri(12)
                    hide()
                )
 localproc_0544() 
                (switch (gGModNum)
                    (case 107
                        ((eureka:
                            timer(0)
                            setScript(
                                (if ((== (eureka:destination) 3) and not proc0_1(9))
                                    ScriptID(210 6)
                                )(else
                                    ScriptID(210 4)
                                )
 0 30)
                        )
 (send gSQ5:handsOn())  )
                    )
                    (case 200
                        (
                        (if (((== gEurekaCurLocation 3) and proc0_1(9)) and proc0_1(61))
                            proc0_3(61)
                        )
 
                        (if ((((== global142 1) and proc0_1(45)) and not proc0_1(86)) and (== gEurekaCurLocation 6))
                            (if (== global164 1)
                                proc0_2(42)
                                (eureka:setScript(0))
                                (eureka:setScript(ScriptID(210 1) 0 3))
                            )(else
                                = next ScriptID(233 3)
                            )
                        )(else
                            (if ((proc0_1(76) and (== global142 0)) and not proc0_1(97))
                                = next ScriptID(211 1)
                                = global142 1
                            )(else
                                (if (((== gEurekaCurLocation 8) and proc0_1(75)) and (< global164 8))
                                    = next ScriptID(233 3)
                                )(else
                                    (if (((== gEurekaCurLocation 14) and not proc0_1(86)) and (== (eureka:puke) 1))
                                        (eureka:setScript(ScriptID(210 5) 0 1))
                                    )(else
                                        (if ((== (eureka:garbage) 1) and not proc0_1(86))
                                            = next ScriptID(232 25)
                                        )(else
                                            (if ((not proc0_1(86) and ((not proc0_1(56) or proc0_1(113)) or proc0_1(114))) and (> global126 1))
                                                = next ScriptID(232 24)
                                            )(else
                                                (send gSQ5:handsOn())
                                            )
                                        )
                                    )
                                )
                            )
                        )
 )
                    )
                    (case 206
                        ((send (ScriptID(209 2)):
                            init()
                            view(218)
                            setLoop(0)
                            cel(0)
                        )
 = next ScriptID(232 4)  )
                    )
                    (case 212
                        ((send gSQ5:handsOn()) (eureka:puke(2))  )
                    )
                    (case 213
                        ((send gSQ5:handsOn()) (eureka:puke(3))  )
                    )
                    (case 222
                        ((send gSQ5:handsOn()) 
                        (if (== gEurekaCurLocation 6)
                            (eureka:setScript(0))
                            (eureka:setScript(ScriptID(210 1) 0 10))
                        )(else
                            = next ScriptID(221 6)
                        )
 )
                    )
                    (case 280
                        (++global127 
                        (switch ((eureka:curLocation))
                            (case 1
                                (= next ScriptID(232 7)  )
                            )
                            (case 2
                                (= next ScriptID(232 5) )
                            )
                        )
  )
                    )
                    (case 290
                        (++global127 
                        (switch ((eureka:curLocation))
                            (case 1
                                (= next ScriptID(232 7)  )
                            )
                            (case 2
                                (= next ScriptID(232 5)  )
                            )
                            (default 
                                ((send gSQ5:handsOn()) )
                            )
                        )
  )
                    )
                    (case 215
                        ((send gSQ5:handsOn())  )
                    )
                    (case 550
                        (= gEurekaCurLocation 16 = local12 1 (eureka:
                            state(1)
                            prevLocation(4)
                            curLocation(0)
                        )
 proc0_2(30) proc0_2(56) proc0_2(35) proc0_2(36) proc0_2(9) proc0_2(60) proc0_3(32) proc0_3(86) = global170 2 = global130 1 = global126 6 = next ScriptID(233 8)  )
                    )
                    (default 
                        ((send gSQ5:handsOn()) 
                        (if (>= (= temp0 proc255_1("Eureka State: \n\n\n(0) starcon \n(1) regular speed \n(2) chasing goliath \n(3) wd40 attacks \n(4) garbage pickup \n(5) distress call \n(6) goliath blobbed \n(7) approach space bar \n(8) cliffy lost in space \n(9) goliath attacks\n")) 0)
                            = local0 temp0
                        )(else
                            = local0 0
                        )
 
                        (switch (local0)
                            (case 0
                                (= gEurekaCurLocation 0 = global130 1 (eureka:state(0))  )
                            )
                            (case 1
                                ((send gSQ5:handsOn()) = gEurekaCurLocation 16 = global130 1 (eureka:state(1)) = local12 1 proc0_3(32)  )
                            )
                            (case 2
                                ((eureka:
                                    warnings(0)
                                    state(1)
                                    destination(12)
                                    setScript(ScriptID(210 4) 0 5)
                                )
 = gEurekaCurLocation 17 = local12 0 = global130 1 = global164 8 = global170 2 = global142 2 = local12 0 proc0_2(32) proc0_2(33) proc0_2(94) proc0_2(93) proc0_2(87) proc0_2(89) proc0_2(75) proc0_2(30) proc0_3(42) proc0_2(45)  )
                            )
                            (case 3
                                (= gEurekaCurLocation 17 = global130 1 proc0_2(32) (eureka:state(1)) = local12 0 (eureka:
                                    warnings(0)
                                    destination(3)
                                    setScript(ScriptID(210 6) 0 10)
                                )
  )
                            )
                            (case 4
                                (= gEurekaCurLocation 17 proc0_2(32) = local12 0 = global127 0 proc0_3(35) = global130 1 proc0_3(36) (eureka:
                                    warnings(0)
                                    state(1)
                                    destination(1)
                                    setScript(ScriptID(210 4) 0 5)
                                )
 proc0_3(30)  )
                            )
                            (case 5
                                (= gEurekaCurLocation 5 = global170 2 proc0_2(76) proc0_2(30) proc0_2(9) proc0_2(93) = global130 1 = global142 0 (eureka:
                                    state(3)
                                    destination(0)
                                    curLocation(5)
                                )
 = local12 1 = global127 3 localproc_1021()  )
                            )
                            (case 6
                                (= gEurekaCurLocation 14 = global142 2 = global170 2 proc0_2(60) proc0_2(30) proc0_2(76) proc0_2(9) proc0_2(93) proc0_2(56) proc0_3(32) (eureka:
                                    state(3)
                                    curLocation(14)
                                    puke(1)
                                    destination(0)
                                    setScript(ScriptID(210 5) 0 1)
                                )
  )
                            )
                            (case 7
                                (= global130 1 = global126 4 = gEurekaCurLocation 17 = local12 0 = global127 3 proc0_2(32) proc0_2(35) proc0_2(36) proc0_2(56) proc0_3(30) (eureka:
                                    warnings(0)
                                    state(1)
                                    destination(4)
                                    setScript(ScriptID(210 4) 0 10)
                                )
  )
                            )
                            (case 8
                                ((eureka:
                                    state(3)
                                    warnings(0)
                                    timer(0)
                                    destination(0)
                                    curLocation(15)
                                    setScript(0)
                                )
 proc0_2(33) proc0_2(94) proc0_2(93) proc0_3(87) proc0_2(89) proc0_3(75) proc0_2(30) proc0_2(45) proc0_3(42) proc0_3(32) = global170 2 = global130 1 = gEurekaCurLocation 15 = global142 2 = global164 1 = next ScriptID(221 6)  )
                            )
                            (case 9
                                (= gEurekaCurLocation 6 = global170 2 = global142 1 (eureka:
                                    state(3)
                                    warnings(0)
                                    timer(0)
                                    destination(0)
                                    curLocation(6)
                                    setScript(0)
                                )
 proc0_2(42) (eureka:setScript(ScriptID(210 1) 0 5)) proc0_2(33) proc0_2(94) proc0_2(93) proc0_2(76) proc0_2(63) proc0_2(30) proc0_2(45) = global130 1 = global164 1 proc0_3(32)  )
                            )
                            (default 
                                (= gEurekaCurLocation 16 (eureka:state(1)) proc0_3(32) )
                            )
                        )
 )
                    )
                )
 localproc_1077() (flo:init()) (droole:init()) (bigPlanet:init()) (ViewScreen:
                    init()
                    setOnMeCheck(1 2)
                )
 (vid1Monitor:init()) (vid2Monitor:init()) (vid3Monitor:init()) (capChair:init()) (dConsole:init()) (fConsole:init()) (send gWalkHandler:addToFront(bridge)) (send gUser:canControl(0)) 
                (if ((>= (eureka:puke) 4) or proc0_1(84))
                    (send (ScriptID(202 13)):init())
                    (send (ScriptID(202 14)):init())
                    (send (ScriptID(202 15)):init())
                )
 = cycles 1  )
            )
            (case 1
                (localproc_05f7() localproc_06b3() = cycles 1  )
            )
            (case 2
                ((self:dispose()) )
            )
        )
    )

)
(instance public sTurnDrooleBack of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((droole:setCycle(Beg self))  )
            )
            (case 1
                ((drooleArm:
                    show()
                    setScript(sDrooleArm)
                )
 (droole:
                    setLoop(0)
                    setCycle(0)
                    stopUpd()
                )
 = cycles 2  )
            )
            (case 2
                ((self:dispose()) )
            )
        )
    )

)
(instance public sAbandonShip of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (
                (if (proc0_1(84))
                    = seconds 8
                )(else
                    = seconds 1
                )
 (send gSQ5:handsOff())  )
            )
            (case 1
                ((send gRoom:newRoom(200)) (self:dispose()) )
            )
        )
    )

)
(instance sHandleTimer of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) 
                (if (((((((== (eureka:timer) 3) or proc0_1(86)) or ((== (eureka:timer) 6) and (== (eureka:warnings) 1))) or (proc0_1(37) and proc0_1(39))) or ((== (eureka:timer) 5) and ((== gEurekaCurLocation 14) or (> (eureka:warnings) 1)))) or (== global126 1)) or (((== (eureka:destination) 32) and (>= global127 3)) and not proc0_1(56)))
                    = cycles 4
                )(else
                    proc201_7(self)
                )
 )
            )
            (case 1
                ((eureka:warnings((+ (eureka:warnings) 1))) 
                (switch ((eureka:timer))
                    (case 1
                        ((send gTestMessager:say(11 0 17 (eureka:warnings) self)) 
                        (if (== (eureka:warnings) 3)
                            (eureka:warnings(0))
                        )
 (eureka:setScript(0)) (eureka:setScript(ScriptID(210 2) 0 30))  )
                    )
                    (case 2
                        (
                        (if ((== global126 1) or (((== (eureka:destination) 4) and (>= global127 3)) and not proc0_1(56)))
                            = next ScriptID(232 9)
                            (self:dispose())
                        )(else
                            (if (< (eureka:warnings) 3)
                                proc0_2(60)
                                (eureka:state(2))
                                (eureka:setScript(ScriptID(210 4) 0 30))
                                (send gTestMessager:say(11 0 14 (eureka:warnings) self))
                            )(else
                                (if (proc0_1(37))
                                    (if (not proc0_1(39))
                                        (send gTestMessager:say(24 0 0 1 self 202))
                                    )(else
                                        = cycles 1
                                    )
                                    = next ScriptID(207 7)
                                    (eureka:
                                        state(2)
                                        timer(0)
                                        warnings(0)
                                        destination(0)
                                        curLocation(14)
                                    )
                                )(else
                                    (if (proc0_1(32))
                                        = next sSmallPlanet
                                    )(else
                                        (if ((send gCast:contains(wasteBeacon)))
                                            (wasteBeacon:dispose())
                                        )
                                        (if (== (eureka:destination) 6)
                                            (send (ScriptID(221 0)):dispose())
                                        )
                                        (bigPlanet:dispose())
                                        proc0_3(38)
                                    )
                                    (send gTestMessager:say(11 0 14 3 self))
                                    (eureka:
                                        timer(0)
                                        warnings(0)
                                        state(1)
                                        destination(0)
                                    )
                                )
                            )
                        )
 )
                    )
                    (case 3
                        (
                        (if (<> global126 1)
                            (switch ((eureka:warnings))
                                (case 1
                                    proc0_2(61)
                                    proc0_2(60)
                                    (eureka:
                                        timer(0)
                                        setScript(0)
                                    )
                                    = local14 0
                                    = next ScriptID(208 0)
                                    = cycles 1
                                )
                                (case 2
                                    = next ScriptID(208 1)
                                    (eureka:timer(0))
                                    = cycles 1
                                )
                                (case 3
                                    = next ScriptID(208 1)
                                    (eureka:timer(0))
                                    = cycles 1
                                )
                            )
                        )(else
                            = next ScriptID(232 9)
                            = cycles 1
                        )
 (self:dispose())  )
                    )
                    (case 5
                        (
                        (switch (gEurekaCurLocation)
                            (case 6
                                (
                                (switch ((eureka:warnings))
                                    (case 1
                                        ((send gTestMessager:say(13 0 14 0 self 202)) (eureka:setScript(0)) (eureka:setScript(ScriptID(210 1) 0 2))  )
                                    )
                                    (case 2
                                        ((send gTestMessager:say(13 0 12 (+ (eureka:hits) 1) self 202)) (eureka:setScript(0)) (eureka:setScript(ScriptID(210 1) 0 20))  )
                                    )
                                    (case 3
                                        (= next ScriptID(221 5) = cycles 1  )
                                    )
                                    (case 4
                                        ((eureka:warnings(1)) (send gRoom:newRoom(222)) = cycles 1 )
                                    )
                                )
  )
                            )
                            (case 14
                                (
                                (if (proc0_1(39))
                                    = cycles 1
                                )(else
                                    = next ScriptID(207 5)
                                    = cycles 1
                                )
 )
                            )
                        )
  )
                    )
                    (case 6
                        (
                        (switch ((eureka:puke))
                            (case 1
                                (
                                (switch ((eureka:warnings))
                                    (case 1
                                        ((send gTestMessager:say(11 0 15 1 self)) (eureka:setScript(0)) (eureka:setScript(ScriptID(210 5) 0 15))  )
                                    )
                                    (default 
                                        (= next ScriptID(207 2) (self:dispose()) )
                                    )
                                )
  )
                            )
                            (case 2
                                (= next ScriptID(207 4) (self:dispose())  )
                            )
                            (case 4
                                ((send client:setScript(ScriptID(210 3) 0 7)) (self:dispose())  )
                            )
                            (default 
                                ((eureka:
                                    timer(0)
                                    setScript(0)
                                    warnings(0)
                                )
 = cycles 1 )
                            )
                        )
 )
                    )
                )
 (eureka:timer(0))  )
            )
            (case 2
                ((self:setScript(sTurnDrooleBack self))  )
            )
            (case 3
                ((send gSQ5:handsOn()) (self:dispose()) )
            )
        )
    )

)
(instance sSmallPlanet of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) (smallPlanet:
                    init()
                    setScale(ScaleTo 100 10 self)
                )
  )
            )
            (case 1
                ((smallPlanet:setMotion(MoveTo 275 120 self)) (eureka:state(1))  )
            )
            (case 2
                ((send gSQ5:handsOn()) (self:dispose()) )
            )
        )
    )

)
(instance public sTurnAround of Script
    (properties)

    (method (changeState newState)
        (var temp0[4])
        (switch (= state newState)
            (case 0
                (
                (if ((eureka:curLocation))
                    = local13 1
                    (eureka:
                        setScript(0)
                        timer(0)
                    )
                    (leadStar:init())
                )(else
                    = cycles 1
                )
 )
            )
            (case 1
                (= seconds 3  )
            )
            (case 2
                ((eureka:state(2)) (self:setScript(sBigPlanet self))  )
            )
            (case 3
                ((self:dispose()) )
            )
        )
    )

)
(instance sFloArm of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (156 (floArm:x) = cycles 1  )
            )
            (case 1
                (= ticks Random(3 20) = state (- state 2) )
            )
        )
    )

)
(instance public sBusyFlo of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gEgo:startUpd()) (flo:setCycle(Beg self))  )
            )
            (case 1
                ((flo:
                    setLoop(0)
                    setCel(0)
                    setCycle(0)
                )
 (send gEgo:hide()) (floArm:show(self)) = cycles 1  )
            )
            (case 2
                (
                (if ((<= 1 register) and (<= register 3))
                    (send gSq5Music2:
                        number(212)
                        setLoop(1)
                        play()
                    )
                    = seconds 2
                )(else
                    = ticks 30
                )
 )
            )
            (case 3
                (
                (if ((<= 1 register) and (<= register 3))
                    proc201_5(0)
                    (floTalker:talkWidth(60))
                    (send gTestMessager:say(19 0 0 1 self))
                )(else
                    (self:changeState(6))
                )
 )
            )
            (case 4
                (= seconds 3 (floTalker:talkWidth(120)) proc201_5(1) (send gSq5Music2:
                    number(234)
                    setLoop(1)
                    play()
                )
  )
            )
            (case 5
                (
                (if (((== register 1) and not proc0_1(34)) and (== gEurekaCurLocation 0))
                    = cycles 1
                )(else
                    proc201_6(self)
                )
 )
            )
            (case 6
                ((flo:stopUpd()) 
                (if (not proc0_1(61))
                    (send gSq5Music2:
                        number(206)
                        setLoop(-1)
                        play()
                    )
                )
 (self:dispose()) )
            )
        )
    )

)
(instance theMusic3 of Sound
    (properties)
)
(instance sDrooleArm of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (= seconds 1  )
            )
            (case 1
                (
                (switch (Random(0 6))
                    (case 0
                        ((drooleArm:setCel(0)) (drooleHand:hide())  )
                    )
                    (default 
                        ((drooleArm:setCel(1)) (drooleHand:
                            show()
                            setCel(Random(2 4))
                        )
 )
                    )
                )
 = cycles 1  )
            )
            (case 2
                (= ticks Random(3 20)  )
            )
            (case 3
                ((self:changeState(1)) )
            )
        )
    )

)
(instance sStepOnGas of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((theMusic3:
                    number(163)
                    loop(1)
                    play(self)
                )
  )
            )
            (case 1
                (UnLoad(132 163) (send gSQ5:handsOn()) (send gSq5IconBar:select((send gSq5IconBar:at(4)))) (send gSQ5:setCursor(984 1)) (self:dispose()) )
            )
        )
    )

)
(instance public sFlashWhite of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) (send gSq5Music2:
                    number(211)
                    setLoop(1)
                    play()
                )
 
                (if ((send gCast:contains(wasteBeacon)))
                    (wasteBeacon:dispose())
                )
 = seconds 2  )
            )
            (case 1
                (Palette(4 64 127 0) = cycles 1  )
            )
            (case 2
                (Palette(1 4101 2) Palette(4 64 127 0) (droole:setScript(sStepOnGas)) = cycles 1  )
            )
            (case 3
                (= register 0 (while (< register 65)Palette(4 64 127 register) 
                    (if (== register 60)
                        = cycles 1
                    )
 = register (+ register 15)  ) = local10 1 = local12 0 localproc_0fd7()  )
            )
            (case 4
                (Palette(4 64 127 100) = cycles 1  )
            )
            (case 5
                (Palette(1 412 2) = gEurekaCurLocation 17 = local10 0 (eureka:
                    timer(0)
                    setScript(0)
                )
 (eureka:setScript(
                    (if ((== (eureka:destination) 3) and not proc0_1(9))
                        ScriptID(210 6)
                    )(else
                        ScriptID(210 4)
                    )
 0 30)) = cycles 1  )
            )
            (case 6
                ((send gSq5Music2:
                    number(206)
                    setLoop(-1)
                    play()
                )
 (self:dispose()) )
            )
        )
    )

)
(instance sPutOnBrakes of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSq5Music2:
                    number(214)
                    loop(1)
                    play(self)
                )
  )
            )
            (case 1
                ((send gSq5Music2:
                    number(107)
                    loop(1)
                    play(self)
                )
  )
            )
            (case 2
                ((send gSq5Music2:
                    number(206)
                    loop(-1)
                    play()
                )
 = gEurekaCurLocation 16 
                (if ((== (eureka:state) 2) and (eureka:destination))
                    = next sBigPlanet
                    (self:dispose())
                )(else
                    (send gSQ5:handsOn())
                    (send gSq5IconBar:select((send gSq5IconBar:at(4))))
                    (send gSQ5:setCursor(984 1))
                    (self:dispose())
                )
 )
            )
        )
    )

)
(instance public sFlashRed of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) 
                (if (not proc0_1(61))
                    (send gSq5Music2:
                        number(211)
                        setLoop(1)
                        play()
                    )
                    = seconds 3
                )(else
                    = cycles 1
                )
 )
            )
            (case 1
                (Palette(4 64 127 0) 
                (if (not proc0_1(61))
                    (droole:setScript(sPutOnBrakes))
                )(else
                    (send gSq5Music2:
                        number(128)
                        loop(-1)
                        play()
                    )
                )
 = cycles 1  )
            )
            (case 2
                (Palette(1 4102 2) Palette(4 64 127 0) = cycles 1  )
            )
            (case 3
                (= register 0 (while (< register 65)Palette(4 64 127 register) 
                    (if (>= register 60)
                        = cycles 1
                    )
 = register (+ register 10)  ) = local11 1 localproc_0fd7()  )
            )
            (case 4
                (Palette(4 64 127 100) = cycles 1  )
            )
            (case 5
                (Palette(1 412 2) = local11 0 = cycles 1  )
            )
            (case 6
                (= local12 1 
                (if (proc0_1(61))
                    = seconds 1
                )(else
                    = cycles 1
                )
 )
            )
            (case 7
                ((self:dispose()) )
            )
        )
    )

)
(instance sTrashBeacon of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (proc201_6(self)  )
            )
            (case 1
                ((send gTestMessager:say(39 0 51 1 self))  )
            )
            (case 2
                ((self:setScript(sBusyFlo self 0))  )
            )
            (case 3
                ((self:dispose()) )
            )
        )
    )

)
(instance public sBigPlanet of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) proc0_3(38) (eureka:
                    setScript(0)
                    timer(0)
                )
 
                (if (> (eureka:curLocation) 14)
                    (eureka:
                        state(1)
                        destination(0)
                        curLocation(0)
                    )
                    proc201_27(0)
                    (send gTestMessager:say(11 0 14 4 self))
                    = state 3
                )(else
                    (switch ((eureka:curLocation))
                        (case 1
                            (if (proc0_1(35))
                                proc0_3(38)
                            )(else
                                proc0_2(38)
                            )
                            = cycles 1
                        )
                        (case 2
                            (if (proc0_1(36))
                                proc0_3(38)
                            )(else
                                proc0_2(38)
                            )
                            = cycles 1
                        )
                        (case 5
                            (if (not proc0_1(93) and proc0_1(30))
                                = local2 1
                            )(else
                                = local2 0
                            )
                            = cycles 1
                        )
                        (case 6
                            (if (not proc0_1(94) and proc0_1(33))
                                = local3 1
                            )(else
                                = local3 0
                            )
                            = cycles 1
                            (send (ScriptID(221 0)):init())
                        )
                        (case 12
                            (if (proc0_1(75))
                                (self:setScript(ScriptID(207 6) self))
                            )(else
                                = cycles 1
                            )
                        )
                        (default 
                            = cycles 1
                        )
                    )
                )
 )
            )
            (case 1
                (
                (if (proc0_1(38))
                    (wasteBeacon:
                        init()
                        setCycle(Fwd self)
                    )
                )
 (bigPlanet:
                    init()
                    setScale(ScaleTo 100 5 2)
                    setMotion(MoveTo 65472 125 self)
                )
  )
            )
            (case 2
                (
                (if (proc0_1(38))
                    (self:setScript(sTrashBeacon self))
                )(else
                    (if (local3)
                        = local3 0
                        (self:setScript(ScriptID(233 2) self))
                    )(else
                        (if (local2)
                            = local2 0
                            (self:setScript(ScriptID(233 1) self))
                        )(else
                            (if (proc0_1(61))
                                (self:dispose())
                            )(else
                                = cycles 1
                            )
                        )
                    )
                )
 )
            )
            (case 3
                ((eureka:
                    timer(0)
                    setScript(ScriptID(210 4) 0 30)
                    warnings(2)
                    destination(0)
                )
 = cycles 1  )
            )
            (case 4
                (proc201_27(1) (send gSQ5:handsOn()) (send gSq5IconBar:select((send gSq5IconBar:at(4)))) (send gSQ5:setCursor(984 1)) (self:dispose()) )
            )
        )
    )

)
(instance public sInToOrbit of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) 
                (if (not proc0_1(61))
                    (send gSq5Music2:
                        number(211)
                        setLoop(1)
                        play()
                    )
                )
 = seconds 2  )
            )
            (case 1
                (= local8 1 (bigPlanet:init()) 
                (if (== (eureka:curLocation) 6)
                    (send (ScriptID(221 0)):init())
                )
 )
            )
            (case 2
                (= gEurekaCurLocation (eureka:curLocation) 
                (switch ((eureka:curLocation))
                    (case 7
                        (= next ScriptID(232 11)  )
                    )
                    (case 4
                        (
                        (if (< global127 3)
                            = next ScriptID(232 12)
                        )(else
                            (if (== global127 3)
                                proc0_2(85)
                                = next sAbandonShip
                            )
                        )
 )
                    )
                    (case 6
                        (
                        (if (== global142 1)
                            proc0_10(181 20)
                        )
 (send (ScriptID(221 0)):addToPic())  )
                    )
                    (case 5
                        (
                        (if (proc0_1(30))
                            proc0_10(177 10)
                            (if (not proc0_1(97) and not proc0_1(76))
                                proc0_2(108)
                            )
                        )
 )
                    )
                    (case 8
                        (proc0_10(180 10) )
                    )
                )
 
                (if (not proc0_1(61))
                    (bigPlanet:addToPic())
                )
 = cycles 1  )
            )
            (case 3
                (
                (if (not proc0_1(61))
                    (send gSq5Music2:
                        number(206)
                        setLoop(-1)
                        play()
                    )
                    (send gSQ5:handsOn())
                    (send gSq5IconBar:select((send gSq5IconBar:at(4))))
                    (send gSQ5:setCursor(984 1))
                )
 (self:dispose()) )
            )
        )
    )

)
(instance public sOutOfOrbit of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) 
                (if ((== gEurekaCurLocation 6) and (send gAddToPics:contains(ScriptID(221 0))))
                    (send gAddToPics:delete(ScriptID(221 0)))
                )
 (send gSq5Music2:
                    number(211)
                    setLoop(1)
                    play()
                )
 = seconds 2  )
            )
            (case 1
                ((send gRoom:drawPic(41 100)) (flo:startUpd()) (droole:startUpd()) (bigPlanet:init()) 
                (if (== gEurekaCurLocation 6)
                    (send (ScriptID(221 0)):init())
                )
 = local9 1  )
            )
            (case 2
                (= gEurekaCurLocation 16 (eureka:state(1)) = local9 0 = cycles 1  )
            )
            (case 3
                ((send gSQ5:handsOn()) (send gSq5IconBar:select((send gSq5IconBar:at(4)))) (send gSQ5:setCursor(984 1)) 
                (if (== (eureka:curLocation) 15)
                    (eureka:curLocation(6))
                )
 (send gSq5Music2:
                    number(206)
                    setLoop(-1)
                    play()
                )
 (self:dispose()) )
            )
        )
    )

)
(instance smallPlanet of Actor
    (properties
        x 156
        y 81
        view 217
        loop 4
        cel 6
        maxScale 20
    )

    (method (init param1)
        (self:
            setLoop(4)
            setCel(6)
            x(156)
            y(81)
            setPri(5)
            ignoreActors(1)
            scaleX(20)
            scaleY(20)
            moveSpeed(0)
            setStep(5 5)
        )
        (super:init(rest param1))
    )


    (method (doit param1)
        (if ((== (eureka:state) 2) and (== gEurekaCurLocation 16))
            (self:dispose())
        )
        (super:doit(rest param1))
    )

)
(instance wasteBeacon of Prop
    (properties
        x 130
        y 75
        view 217
        loop 3
        detailLevel 2
    )

    (method (init param1)
        (if (< (eureka:warnings) 2)
            (self:
                setPri(6)
                setLoop(3)
                x(130)
                y(75)
                ignoreActors()
            )
        )(else
            (self:
                x(65472)
                y(125)
                hide()
            )
        )
        (super:init(rest param1))
        (theMusic3:
            number(224)
            loop(-1)
            play()
        )
    )


    (method (doit param1)
        (self:
            x(+ (bigPlanet:x) 10)
            y((bigPlanet:y))
        )
        (super:doit(rest param1))
    )


    (method (dispose param1)
        (theMusic3:fade(0 10 10 1))
        (super:dispose(rest param1))
    )

)
(instance public bigPlanet of Actor
    (properties
        view 212
        signal 24576
    )

    (method (init param1)
        (var temp0)
        (if ((((== (eureka:state) 2) and (eureka:destination)) and not proc0_1(32)) or (== (eureka:state) 3))
            (self:
                view(local41[(eureka:curLocation)])
                setStep(15 15)
                setPri(5)
            )
            (if (= temp0 local57[(eureka:curLocation)])
                Palette(1 = temp0 local57[(eureka:curLocation)] 2)
            )
            (switch ((eureka:state))
                (case 2
                    (self:
                        x(130)
                        y(75)
                        scaleX(10)
                        scaleY(10)
                        maxScale(10)
                        scaleSignal(1)
                        setCel(0)
                        setLoop(0)
                        moveSpeed(0)
                        ignoreActors(1)
                    )
                )
                (case 3
                    (self:signal(0))
                    (if (local8)
                        (self:
                            ignoreActors(1)
                            view(local41[(eureka:curLocation)])
                            setLoop(
                                (if (proc999_5((eureka:curLocation) 4 7 8 14))
                                    0
                                )(else
                                    1
                                )
)
                            x(65350)
                            y(58)
                            setCycle(0)
                            scaleSignal(1)
                            scaleX(128)
                            scaleY(128)
                            maxScale(128)
                            setPri(5)
                        )
                    )(else
                        (self:
                            ignoreActors(1)
                            view(local41[(eureka:curLocation)])
                            setLoop(
                                (if (proc999_5((eureka:curLocation) 4 7 8 14 15))
                                    0
                                )(else
                                    1
                                )
)
                            x(48)
                            y(58)
                            setCycle(0)
                            scaleSignal(1)
                            scaleX(128)
                            scaleY(128)
                            maxScale(128)
                            setPri(5)
                        )
                    )
                    (if ((== (eureka:curLocation) 14) and (>= (eureka:puke) 1))
                        (self:view(227))
                    )
                )
                (default 
                    (super:init(rest param1))
                )
            )
            (super:init(rest param1))
        )
    )


    (method (doit param1)
        (if (local8)
            (if (> x 42)
                (sInToOrbit:cue())
                = local8 0
            )(else
                (self:setMotion(MoveTo (+ x 6) y))
            )
        )(else
            (if (local9)
                (if (< x -180)
                    (sOutOfOrbit:cue())
                    (switch ((eureka:curLocation))
                        (case 15
                            (send (ScriptID(221 1)):dispose())
                            (send (ScriptID(221 2)):dispose())
                            (send (ScriptID(221 3)):dispose())
                            (send (ScriptID(221 4)):dispose())
                        )
                        (case 6
                            (send (ScriptID(221 0)):dispose())
                        )
                    )
                    (self:dispose())
                )(else
                    (self:setMotion(MoveTo (- x 6) y))
                )
            )
        )
        (super:doit(rest param1))
    )

)
(instance leadStar of Actor
    (properties
        view 217
        priority 4
        signal 24576
    )

    (method (init param1)
        (self:
            x(44)
            y(129)
            ignoreActors(1)
        )
        (super:init(rest param1))
    )


    (method (doit param1)
        (if (local13)
            (if (> x 464)
                = local13 0
                (sTurnAround:cue())
                (self:dispose())
            )(else
                (self:x((+ x 6)))
            )
        )(else
            (self:dispose())
        )
        (super:doit(rest param1))
    )

)
(instance fastStar of Actor
    (properties
        view 217
        priority 4
        signal 24592
        moveSpeed 0
    )

    (method (init param1)
        (var temp0, temp1, temp2, temp3)
        (if (== (eureka:state) 3)
            = temp0 Random(5 85)
        )(else
            (if (local12)
                = temp0 Random(5 65)
            )(else
                = temp0 Random(15 25)
            )
        )
        = temp2 (+ 155 CosMult((= temp1 Random(0 359)) temp0))
        (self:
            illegalBits(0)
            posn(temp2 = temp3 (+ 78 SinMult(temp1 temp0)))
            setLoop(0)
            setCel(0)
            heading(+ temp1 90)
            setStep(5 5)
            setCycle(0)
        )
        (if (local12)
            (self:
                setLoop(Random(0 2))
                stopUpd()
                setMotion(0)
            )
        )(else
            (self:
                setStep(5 5)
                setMotion(MoveFwd 40 self)
            )
        )
        (super:init(rest param1))
    )


    (method (doit param1)
        (if (local8)
            (if (> x 276)
                (self:x((- x 230)))
            )
            (self:x((+ x 6)))
        )(else
            (if (local9)
                (if (< x 44)
                    (self:x((+ x 240)))
                )
                (self:x((- x 6)))
            )(else
                (if (local13)
                    (if (< x 44)
                        (self:x((+ x 230)))
                    )
                    (self:x((- x 6)))
                )
            )
        )
        (super:doit(rest param1))
    )


    (method (cue)
        (if (local11)
            (self:
                setStep(1 1)
                setMotion(MoveFwd 10 self)
            )
        )(else
            (if (local10)
                (self:
                    setStep(10 10)
                    setMotion(MoveFwd 20 self)
                )
            )(else
                (if (local12)
                    (self:setMotion(0))
                )(else
                    (if ((self:inRect(44 39 276 128)))
                        (self:
                            setLoop(% (+ (self:loop) 1) 3)
                            setStep(* xStep 2 * yStep 2)
                            setMotion(MoveFwd 40 self)
                        )
                    )(else
                        (self:init())
                    )
                )
            )
        )
    )

)
(instance mediumStar of Actor
    (properties
        view 217
        priority 4
        signal 24592
        moveSpeed 5
    )

    (method (init param1)
        (var temp0, temp1, temp2, temp3)
        (if (== (eureka:state) 3)
            = temp0 Random(5 85)
        )(else
            (if (local12)
                = temp0 Random(5 65)
            )(else
                = temp0 Random(10 15)
            )
        )
        = temp2 (+ 155 CosMult((= temp1 Random(0 359)) temp0))
        = temp3 (+ 78 SinMult(temp1 temp0))
        (self:
            illegalBits(0)
            setHeading(+ temp1 90)
            posn(temp2 temp3)
            setLoop(0)
            setCel(Random(0 1))
            setStep(4 4)
            setCycle(0)
        )
        (if (local12)
            (self:
                setLoop(Random(0 2))
                stopUpd()
                setMotion(0)
            )
        )(else
            (self:
                setStep(4 4)
                setMotion(MoveFwd 40 self)
            )
        )
        (super:init(rest param1))
    )


    (method (doit param1)
        (if (local8)
            (if (> x 276)
                (self:x((- x 230)))
            )
            (self:x((+ x 3)))
        )(else
            (if (local9)
                (if (< x 44)
                    (self:x((+ x 240)))
                )
                (self:x((- x 3)))
            )(else
                (if (local13)
                    (if (< x 44)
                        (self:x((+ x 230)))
                    )
                    (self:x((- x 3)))
                )
            )
        )
        (super:doit(rest param1))
    )


    (method (cue)
        (if (local11)
            (self:
                setStep(1 1)
                setMotion(MoveFwd 10 self)
            )
        )(else
            (if (local10)
                (self:
                    setStep(5 5)
                    setMotion(MoveFwd 20 self)
                )
            )(else
                (if (local12)
                    (self:setMotion(0))
                )(else
                    (if ((self:inRect(44 39 276 128)))
                        (self:
                            setLoop(% (+ (self:loop) 1) 3)
                            setStep(* xStep 2 * yStep 2)
                            setMotion(MoveFwd 40 self)
                        )
                    )(else
                        (self:init())
                    )
                )
            )
        )
    )

)
(instance slowStar of Actor
    (properties
        view 217
        priority 4
        signal 24592
        moveSpeed 10
    )

    (method (init param1)
        (var temp0, temp1, temp2, temp3)
        (if (== (eureka:state) 3)
            = temp0 Random(5 85)
        )(else
            (if (local12)
                = temp0 Random(5 65)
            )(else
                = temp0 Random(10 15)
            )
        )
        = temp2 (+ 155 CosMult((= temp1 Random(0 359)) temp0))
        = temp3 (+ 78 SinMult(temp1 temp0))
        (self:
            illegalBits(0)
            setHeading(+ temp1 90)
            posn(temp2 temp3)
            setLoop(0)
            setCel(Random(2 3))
            setStep(1 1)
            setCycle(0)
        )
        (if (local12)
            (self:
                setLoop(Random(0 2))
                stopUpd()
                setMotion(0)
            )
        )(else
            (self:
                setStep(2 2)
                setMotion(MoveFwd 40 self)
            )
        )
        (super:init(rest param1))
    )


    (method (doit param1)
        (if (local8)
            (if (> x 276)
                (self:x((- x 230)))
            )
            (self:x((+ (self:x) xStep)))
        )(else
            (if (local9)
                (if (< x 44)
                    (self:x((+ x 240)))
                )
                (self:x((- (self:x) xStep)))
            )(else
                (if (local13)
                    (if (< x 44)
                        (self:x((+ x 230)))
                    )
                    (self:x((- x 3)))
                )
            )
        )
        (super:doit(rest param1))
    )


    (method (cue)
        (if (local11)
            (self:
                setStep(1 1)
                setMotion(MoveFwd 10 self)
            )
        )(else
            (if (local10)
                (self:
                    setStep(2 2)
                    setMotion(MoveFwd 20 self)
                )
            )(else
                (if (local12)
                    (self:setMotion(0))
                )(else
                    (if ((self:inRect(44 39 276 128)))
                        (self:
                            setLoop(% (+ (self:loop) 1) 3)
                            setStep(* xStep 2 * yStep 2)
                            setMotion(MoveFwd 40 self)
                        )
                    )(else
                        (self:init())
                    )
                )
            )
        )
    )

)
(instance public ViewScreen of Feature
    (properties
        x 165
        y 179
        z 93
        noun 23
        onMeCheck 2
    )

    (method (init param1)
        (switch (gEurekaCurLocation)
            (case 0
                ((send (ScriptID(214 1)):
                    init()
                    ignoreActors(1)
                    addToPic()
                )
 (send (ScriptID(214 0)):
                    init()
                    ignoreActors(1)
                    addToPic()
                )
 
                (if (not proc0_1(31))
                    (send (ScriptID(214 3)):
                        init()
                        stopUpd()
                        ignoreActors(1)
                    )
                    (send (ScriptID(214 2)):
                        init()
                        stopUpd()
                        ignoreActors(1)
                    )
                )
 )
            )
            (case 6
                ((send (ScriptID(221 0)):
                    init()
                    addToPic()
                )
  )
            )
            (case 15
                ((send (ScriptID(221 1)):init()) (send (ScriptID(221 2)):init()) (send (ScriptID(221 3)):init()) (send (ScriptID(221 4)):init())  )
            )
            (case 14
                ((send (ScriptID(207 0)):init())  )
            )
            (case 3
                (
                (if (proc0_1(61))
                    (send (ScriptID(208 2)):
                        init()
                        addToPic()
                    )
                )
 )
            )
        )
        (if (== (eureka:state) 3)
            (bigPlanet:addToPic())
        )
        (super:init(rest param1))
    )


    (method (doVerb param1)
        (if ((send gCast:contains(ScriptID(204 4))) and not proc0_1(84))
            (send gRoom:setScript(ScriptID(204 5)))
        )(else
            (switch (param1)
                (case 1
                    (if ((== (eureka:state) 2) and (eureka:curLocation))
                        (send gTestMessager:say(23 1 0 (eureka:curLocation) 0 202))
                    )(else
                        (if (== gEurekaCurLocation 0)
                            (if (proc0_1(31))
                                (send gTestMessager:say(23 1 88 1 0 202))
                            )(else
                                (send gTestMessager:say(23 1 20 1 0 202))
                            )
                        )(else
                            (if ((== gEurekaCurLocation 6) and (> gPEventX 136))
                                (send gTestMessager:say(23 1 17 1 0 202))
                            )(else
                                (if ((== gEurekaCurLocation 14) and (< (eureka:puke) 2))
                                    (if (== (eureka:puke) 1)
                                        (send gTestMessager:say(23 1 92 1 0 202))
                                    )(else
                                        (if (proc0_1(119))
                                            (send gTestMessager:say(23 1 14 1 0 202))
                                        )(else
                                            proc0_2(119)
                                            (send gTestMessager:say(23 1 14 0 0 202))
                                        )
                                    )
                                )(else
                                    (if (proc0_1(61))
                                        (send gTestMessager:say(29 1 0 1 0 202))
                                    )(else
                                        (send gTestMessager:say(23 1 0 gEurekaCurLocation 0 202))
                                    )
                                )
                            )
                        )
                    )
                )
                (default 
                    (super:doVerb(param1))
                )
            )
        )
    )

)
(instance public flo of Prop
    (properties
        x 65524
        y 199
        z 90
        noun 16
        view 202
        priority 12
        signal 20496
    )

    (method (init param1)
        (if (not proc0_1(86))
            (self:
                stopUpd()
                setCycle(0)
                setScript(sFloArm)
                ignoreActors(1)
            )
            (floArm:
                init()
                show()
            )
            (super:init(rest param1))
        )(else
            (self:dispose())
        )
    )


    (method (doVerb param1 param2)
        (if ((send gCast:contains(ScriptID(204 4))))
            (send gRoom:setScript(ScriptID(204 5)))
        )(else
            (switch (param1)
                (case 24
                    (send gSQ5:handsOff())
                    (send gRoom:setScript(ScriptID(216 0)))
                )
                (case 2
                    (send gSQ5:handsOff())
                    (send gRoom:setScript(ScriptID(216 1)))
                )
                (default 
                    (super:doVerb(param1 rest param2))
                )
            )
        )
    )

)
(instance public droole of Prop
    (properties
        x 276
        y 200
        z 80
        noun 11
        view 203
        priority 9
        signal 20496
        detailLevel 3
    )

    (method (init param1)
        (if (proc0_1(86) or proc0_1(97))
            (self:dispose())
        )(else
            (self:
                stopUpd()
                setCycle(0)
                ignoreActors(1)
            )
            (drooleArm:init())
            (super:init(rest param1))
        )
    )


    (method (doVerb param1 param2)
        (if ((send gCast:contains(ScriptID(204 4))))
            (send gRoom:setScript(ScriptID(204 5)))
        )(else
            (switch (param1)
                (case 24
                    (send gSQ5:handsOff())
                    (send gRoom:setScript(ScriptID(217 0)))
                )
                (case 2
                    (send gRoom:setScript(ScriptID(217 1)))
                )
                (default 
                    (super:doVerb(param1 rest param2))
                )
            )
        )
    )

)
(instance public drooleArm of Prop
    (properties
        x 275
        y 178
        view 203
        loop 2
        priority 9
        signal 16
        detailLevel 3
    )

    (method (init param1)
        (drooleHand:init())
        (self:
            setScript(sDrooleArm)
            setCycle(0)
            show()
        )
        (super:init(rest param1))
    )

)
(instance drooleHand of Prop
    (properties
        x 275
        y 178
        view 203
        loop 2
        cel 2
        priority 9
        signal 16
        detailLevel 3
    )

    (method (init param1)
        (self:hide())
        (super:init(rest param1))
    )

)
(instance public rogTalker of Narrator
    (properties)

    (method (init param1)
        = font gFont
        (send (= gSq5Win gNewSpeakWindow):
            tailX(152)
            tailY(138)
            xOffset(0)
            isBottom(0)
        )
        (super:init(rest param1))
    )


    (method (dispose param1)
        = gSq5Win gSq5Win_2
        (super:dispose(rest param1))
    )

)
(instance public floTalker of ChoiceTalker
    (properties
        x 65514
        y 107
        view 202
        loop 1
        cel 1
        signal 16384
        talkWidth 120
        normal 1
    )

    (method (init param1)
        = font gFont
        (if (normal)
            (send (= gSq5Win gNewSpeakWindow):
                tailX(55)
                tailY(88)
                xOffset(30)
                isBottom(1)
            )
        )(else
            = gSq5Win gSq5Win_2
            (self:
                textX(50)
                textY(65436)
                talkWidth(150)
            )
        )
        (if (localproc_1011())
            (self:
                loop(1)
                cel(1)
            )
            (super:init(0 0 floMouth rest param1))
        )(else
            (self:
                loop(4)
                cel(0)
            )
            (super:init(0 0 0 rest param1))
        )
    )


    (method (dispose param1)
        = gSq5Win gSq5Win_2
        (super:dispose(rest param1))
    )

)
(instance floMouth of Prop
    (properties
        nsTop 26
        nsLeft 30
        view 202
        loop 3
        cel 4
        signal 16384
    )

    (method (init param1)
        (self:cel(4))
        (super:init(rest param1))
    )

)
(instance public drooleTalker of ChoiceTalker
    (properties
        x 268
        y 120
        view 203
        loop 1
        cel 2
        signal 16384
        talkWidth 120
        textX 65436
        normal 1
    )

    (method (init param1)
        = font gFont
        (if (normal)
            (send (= gSq5Win gNewSpeakWindow):
                tailX(250)
                tailY(115)
                xOffset(-1)
                isBottom(1)
            )
        )(else
            = gSq5Win gSq5Win_2
            (self:
                textX(65416)
                textY(65436)
                talkWidth(120)
            )
        )
        (if (localproc_1019())
            (self:
                loop(1)
                cel(2)
                x(268)
                y(120)
            )
            (super:init(0 drooleEyes drooleMouth rest param1))
        )(else
            (self:
                setLoop(5)
                cel(0)
            )
            (super:init(0 0 0 rest param1))
        )
    )


    (method (dispose param1)
        = gSq5Win gSq5Win_2
        (super:dispose(rest param1))
    )

)
(instance drooleMouth of Prop
    (properties
        nsTop 16
        nsLeft 31
        view 203
        loop 3
        signal 16384
    )

    (method (init param1)
        (self:ignoreActors(1))
        (super:init(rest param1))
    )

)
(instance drooleEyes of Prop
    (properties
        nsTop 7
        nsLeft 28
        view 203
        loop 4
        priority 14
        signal 16400
    )
)
(instance public floArm of View
    (properties
        x 31
        y 176
        view 202
        loop 2
        priority 12
        signal 16400
    )
)
(instance dConsole of Feature
    (properties
        x 257
        y 188
        z 30
        noun 9
        nsTop 135
        nsLeft 227
        nsBottom 182
        nsRight 287
    )

    (method (doVerb param1 param2)
        (switch (param1)
            (case 24
                (
                (if (not proc0_1(86) and not proc0_1(97))
                    (send gSQ5:handsOff())
                    (send gRoom:setScript(ScriptID(217 0)))
                )(else
                    (super:doVerb(param1 rest param2))
                )
 )
            )
            (case 2
                (
                (if (not proc0_1(86) and not proc0_1(97))
                    (send gSQ5:handsOff())
                    (send gRoom:setScript(ScriptID(217 1)))
                )(else
                    (super:doVerb(param1 rest param2))
                )
 )
            )
            (default 
                ((super:doVerb(param1 rest param2)) )
            )
        )
    )

)
(instance fConsole of Feature
    (properties
        x 48
        y 184
        z 30
        noun 14
        nsTop 138
        nsLeft 23
        nsBottom 170
        nsRight 74
    )

    (method (doVerb param1 param2)
        (switch (param1)
            (case 24
                (
                (if (not proc0_1(86))
                    (send gSQ5:handsOff())
                    (send gRoom:setScript(ScriptID(216 0)))
                )(else
                    (super:doVerb(param1 rest param2))
                )
 )
            )
            (case 2
                (
                (if (not proc0_1(86))
                    (send gSQ5:handsOff())
                    (send gRoom:setScript(ScriptID(216 1)))
                )(else
                    (super:doVerb(param1 rest param2))
                )
 )
            )
            (default 
                ((super:doVerb(param1 rest param2)) )
            )
        )
    )

)
(instance capChair of Feature
    (properties
        x 162
        y 199
        z 30
        noun 5
        nsTop 149
        nsLeft 127
        nsBottom 189
        nsRight 197
    )
)
(instance vid1Monitor of Feature
    (properties
        x 100
        y 35
        noun 36
        nsTop 26
        nsLeft 89
        nsBottom 41
        nsRight 112
    )
)
(instance vid2Monitor of Feature
    (properties
        x 219
        y 34
        noun 37
        nsTop 26
        nsLeft 207
        nsBottom 41
        nsRight 232
    )
)
(instance vid3Monitor of Feature
    (properties
        x 160
        y 34
        noun 38
        nsTop 26
        nsLeft 143
        nsBottom 42
        nsRight 177
    )
)
(instance bridge of Feature
    (properties
        x 163
        y 234
        z 50
        nsTop 171
        nsLeft 145
        nsBottom 188
        nsRight 178
    )

    (method (doVerb param1)
        (if ((send gCast:contains(ScriptID(204 4))) and not proc0_1(84))
            (send gRoom:setScript(ScriptID(204 5)))
        )(else
            (if (proc999_5(param1 4 3))
                (send gSQ5:handsOff())
                (send gRoom:newRoom(200))
            )(else
                (super:doVerb(param1))
            )
        )
    )

)
(instance buttonPanel of Feature
    (properties
        x 201
        y 153
        nsTop 150
        nsLeft 200
        nsBottom 157
        nsRight 218
    )

    (method (doVerb param1)
        (var temp0)
        (switch (param1)
            (case 4
                (
                (if (proc999_4(200 160 204 167 gPEventX gPEventY))
                    = temp0 0
                )(else
                    (if (proc999_4(207 160 211 167 gPEventX gPEventY))
                        = temp0 1
                    )(else
                        (if (proc999_4(214 160 218 167 gPEventX gPEventY))
                            = temp0 2
                        )
                    )
                )
 
                (if (not (send gRoom:script))
                    (send gSQ5:handsOff())
                    (send gRoom:setScript(ScriptID(202 6) 0 temp0))
                )
 )
            )
            (case 1
                (
                (if (proc999_4(200 160 204 167 gPEventX gPEventY))
                    = temp0 1
                )(else
                    (if (proc999_4(207 160 211 167 gPEventX gPEventY))
                        = temp0 2
                    )(else
                        (if (proc999_4(214 160 218 167 gPEventX gPEventY))
                            = temp0 3
                        )
                    )
                )
 (send gTestMessager:say(6 1 0 temp0 0 202))  )
            )
            (default 
                ((super:doVerb(param1)) )
            )
        )
    )

)
