(include "sci.sh")
(use "Main")
(use "eureka")
(use "rm240")
(use "Scaler")
(use "Osc")
(use "PolyPath")
(use "ForwardCounter")
(use "Rev")
(use "Jump")
(use "Cycle")
(use "View")
(use "Obj")
(script 243)


(local
    local0

)
(procedure public (proc243_3)
)


(instance public cliffyGoesWith of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gTestMessager:say(5 2 7 0 self))  )
            )
            (case 1
                (proc240_28(1) (send (ScriptID(240 21)):setMotion(MoveTo 179 164 self))  )
            )
            (case 2
                ((send (ScriptID(240 21)):setMotion(MoveTo 176 152 self))  )
            )
            (case 3
                ((send (ScriptID(240 21)):setMotion(MoveTo 121 148 self))  )
            )
            (case 4
                ((send (ScriptID(240 21)):setHeading(180 self))  )
            )
            (case 5
                ((send (ScriptID(240 21)):
                    view(33)
                    loop(0)
                    cel((send (ScriptID(240 21)):lastCel()))
                )
 (self:dispose()) )
            )
        )
    )

)
(instance public spikeNailsEgo of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) (send gEgo:setMotion(0)) (send gSq5Music1:
                    number(23)
                    loop(-1)
                    play()
                )
 (send (ScriptID(240 8)):
                    init(1)
                    setCycle(Walk)
                    setScale(Scaler 85 50 144 122)
                    detailLevel(0)
                    setMotion(MoveTo + (send gEgo:x) 30 + (send gEgo:y) 5 self)
                )
  )
            )
            (case 1
                ((send gEgo:setHeading(135 self)) (send (ScriptID(240 8)):setHeading(270))  )
            )
            (case 2
                ((send (ScriptID(240 8)):dispose()) = register 3 = start 0 (send gEgo:
                    view(192)
                    loop(0)
                    cel(0)
                    setScale(Scaler 116 71 149 123)
                    setCycle(End self)
                )
 (send gSq5Music2:
                    number(246)
                    loop(1)
                    play()
                )
  )
            )
            (case 3
                ((send gEgo:setCycle(CT 5 -1 self))  )
            )
            (case 4
                ((send gEgo:setCycle(End self)) 
                (if (--register)
                    = state (- state 2)
                )
 )
            )
            (case 5
                ((send gSq5Music2:
                    number(2471)
                    loop(-1)
                    play()
                )
 (send gEgo:
                    y(1)
                    cel(0)
                )
 = cycles 1  )
            )
            (case 6
                ((send gEgo:setCycle(CT 4 1 self))  )
            )
            (case 7
                ((send gEgo:setCycle(CT 1 -1 self)) 
                (if (--register)
                    = state (- state 2)
                )
 )
            )
            (case 8
                ((send gEgo:setCycle(End self)) (send gSq5Music2:
                    number(247)
                    loop(1)
                    play()
                )
  )
            )
            (case 9
                ((send gEgo:
                    view(192)
                    loop(2)
                    cel(0)
                    setCycle(End self)
                )
  )
            )
            (case 10
                (proc0_6(0 4) = global126 6 (send gEgo:get(8)) 
                (if (== client gRoom)
                    proc240_30()
                    (send gSQ5:handsOn())
                )
 (self:dispose()) )
            )
        )
    )

)
(instance public useAntAcids of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) 
                (if (proc240_1())
                    (self:setScript(ScriptID(240 3) self 2))
                )(else
                    = cycles 1
                )
 )
            )
            (case 1
                ((send gEgo:setMotion(PolyPath 223 146 self))  )
            )
            (case 2
                (
                (if (proc0_1(43))
                    (send gEgo:setHeading(45 self))
                )(else
                    (self:setScript(ScriptID(240 9) self))
                )
 )
            )
            (case 3
                (proc0_10(171 20) (send gEgo:
                    view(243)
                    loop(0)
                    cel(0)
                    looper(0)
                    setCycle(End self)
                )
  )
            )
            (case 4
                ((send gEgo:setCycle(Beg)) (send (ScriptID(240 20)):
                    init()
                    view(244)
                    loop(6)
                    cel(0)
                    x(251)
                    y(100)
                    setPri(12)
                    setCycle(End self)
                )
 (send gSq5Music2:
                    number(137)
                    loop(1)
                    play()
                )
 (send (ScriptID(240 8)):setCycle(0))  )
            )
            (case 5
                ((send gSq5Music2:
                    number(137)
                    loop(1)
                    play(self)
                )
  )
            )
            (case 6
                ((send gSq5Music2:
                    number(256)
                    loop(1)
                    play()
                )
 (send (ScriptID(240 20)):
                    x(244)
                    y(101)
                    loop(8)
                    cel(0)
                    x(254)
                    y(101)
                    setCycle(End self)
                )
 (bubbles2:
                    init()
                    setCycle(End self)
                )
  )
            )
            (case 7
                ( )
            )
            (case 8
                ((send (ScriptID(240 20)):
                    loop(10)
                    cel(0)
                    setCycle(Fwd)
                )
 (bubbles2:
                    loop(9)
                    setCycle(Fwd)
                )
 proc0_2(56) (send gSq5Music2:stop()) (self:setScript(ScriptID(240 9) self))  )
            )
            (case 9
                ((send gTestMessager:say(22 29 0 1 self))  )
            )
            (case 10
                (
                (if ((send gCast:contains(ScriptID(240 21))))
                    (send gTestMessager:say(22 29 0 2 self))
                )(else
                    = cycles 1
                )
 )
            )
            (case 11
                ((send gSQ5:handsOn()) (send (ScriptID(240 8)):setCycle(Fwd)) proc0_6(0 6) (send gEgo:put(5)) (bubbles2:dispose()) (send (ScriptID(240 20)):
                    view(244)
                    loop(3)
                    cel(0)
                    x(254)
                    y(101)
                    dispose()
                )
 (self:dispose()) )
            )
        )
    )

)
(instance bubbles2 of Prop
    (properties
        x 252
        y 102
        view 244
        loop 7
        priority 10
        signal 16400
    )
)
(instance public putSpikeInTank of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (
                (if (== client gRoom)
                    (send gSQ5:handsOff())
                )
 
                (if (proc240_1())
                    (self:setScript(ScriptID(240 3) self 2))
                )(else
                    = cycles 1
                )
 )
            )
            (case 1
                (
                (if (proc0_1(43))
                    = cycles 1
                )(else
                    (self:setScript(ScriptID(240 9) self))
                )
 )
            )
            (case 2
                ((send gEgo:setMotion(PolyPath 214 141 self))  )
            )
            (case 3
                ((send gEgo:setHeading(180 self))  )
            )
            (case 4
                ((send gEgo:
                    view(192)
                    loop(2)
                    cel(15)
                    setCycle(Beg self)
                )
  )
            )
            (case 5
                ((send (ScriptID(240 27)):noun(25)) (send gEgo:
                    view(243)
                    loop(1)
                    cel(0)
                    setScale(Scaler 116 71 149 123)
                    posn(220 141)
                    setCycle(End self)
                )
  )
            )
            (case 6
                (proc0_10(169 20) proc0_6(0 4) (send gEgo:setMotion(PolyPath 210 141 self)) = global126 2 (send (ScriptID(240 8)):
                    init()
                    detailLevel(3)
                )
 (send gEgo:put(8))  )
            )
            (case 7
                (
                (if (== client gRoom)
                    (send gSQ5:handsOn())
                )
 (self:dispose()) )
            )
        )
    )

)
(instance public spikeEscapes of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (= global126 5 (send (ScriptID(240 8)):
                    detailLevel(0)
                    setCycle(Beg self)
                )
  )
            )
            (case 1
                (
                (if (not proc0_1(43))
                    = register 0
                    (extra2:
                        view(244)
                        loop(1)
                        cel(0)
                        init()
                        posn(254 101)
                        setPri(15)
                        setCycle(End self)
                    )
                )(else
                    = register 1
                    = cycles ++state
                )
 )
            )
            (case 2
                ((extra2:setCycle(Beg self)) (send (ScriptID(240 24)):
                    init(1)
                    setCycle(End self)
                )
 proc0_2(43) (send (ScriptID(240 20)):
                    init()
                    cel(0)
                    setCycle(End)
                )
  )
            )
            (case 3
                (proc0_8(gEgo ScriptID(240 8)) 
                (if ((send gCast:contains(ScriptID(240 21))))
                    = local0 (send (ScriptID(240 21)):view)
                    proc240_28(7)
                    proc0_8(ScriptID(240 21) ScriptID(240 8))
                )
 (send (ScriptID(240 24)):stopUpd()) (extra2:dispose()) (send (ScriptID(240 8)):
                    view(244)
                    loop(5)
                    cel(0)
                    posn(251 100)
                    setCycle(End self)
                )
  )
            )
            (case 4
                ((send (ScriptID(240 20)):dispose()) (send gSq5Music1:
                    number(23)
                    loop(-1)
                    play()
                )
 proc240_29(1) (send (ScriptID(240 8)):
                    posn(181 144)
                    setMotion(MoveTo 181 189 self)
                )
 
                (if ((send gCast:contains(ScriptID(240 21))))
                    proc0_8(ScriptID(240 21) ScriptID(240 8))
                )
 )
            )
            (case 5
                (
                (if ((send gCast:contains(ScriptID(240 21))))
                    proc0_8(ScriptID(240 21) ScriptID(240 8))
                )
 proc0_8(gEgo ScriptID(240 8) self)  )
            )
            (case 6
                (
                (if (register)
                    (send gTestMessager:say(22 0 42 0 self))
                )(else
                    (send gTestMessager:say(22 0 43 0 self))
                )
 )
            )
            (case 7
                (
                (if ((send gCast:contains(ScriptID(240 21))))
                    (if (register)
                        (send gTestMessager:say(5 0 42 0 self))
                    )(else
                        (send gTestMessager:say(5 0 43 0 self))
                    )
                )
 = cycles 1  )
            )
            (case 8
                (
                (if ((send gCast:contains(ScriptID(240 21))))
                    (send (ScriptID(240 21)):setHeading(0 self))
                )(else
                    = cycles 1
                )
 )
            )
            (case 9
                (
                (if ((send gCast:contains(ScriptID(240 21))))
                    (if (== local0 248)
                        (send (ScriptID(240 21)):
                            view(248)
                            loop(0)
                            cel(0)
                            x(226)
                            y(170)
                            setPri(13)
                            setScale(Scaler 116 71 149 123)
                            setCycle(Fwd)
                            setScript(ScriptID(240 23))
                        )
                    )(else
                        (send (ScriptID(240 21)):
                            view(191)
                            loop(0)
                            x(239)
                            y(164)
                            setPri(13)
                            setScale(Scaler 116 71 149 123)
                            setScript(ScriptID(240 23))
                            setCycle(Fwd)
                        )
                    )
                )
 proc240_30() (send (ScriptID(240 8)):dispose()) (self:dispose()) )
            )
        )
    )

)
(instance public spikeEscapes2 of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (
                (if (== client gRoom)
                    (send gSQ5:handsOff())
                )
 = global126 5 (send gEgo:setHeading(180 self))  )
            )
            (case 1
                ((send gEgo:
                    view(246)
                    loop(0)
                    cel(0)
                    put(8)
                    setCycle(End self)
                )
  )
            )
            (case 2
                (proc0_6(0 2) (send gSq5Music1:
                    number(23)
                    loop(-1)
                    play()
                )
 proc240_29(1) (send (ScriptID(240 8)):
                    posn(- (send gEgo:x) 21 + (send gEgo:y) 1)
                    init(1)
                    setMotion(MoveTo 79 187 self)
                )
  )
            )
            (case 3
                (
                (if (== client gRoom)
                    (send gSQ5:handsOn())
                )
 proc240_30() (send (ScriptID(240 8)):dispose()) (self:dispose()) )
            )
        )
    )

)
(instance public upFromThrakus2 of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) proc240_30() proc240_1(1) (send gEgo:
                    setScale(0)
                    init()
                    get(21)
                    view(22)
                    loop(0)
                    posn(106 135)
                    cel(0)
                    setCycle(End self)
                )
 (send gSq5Music2:
                    number(260)
                    loop(1)
                    play()
                )
  )
            )
            (case 1
                ((send gSq5Music2:stop()) (send gEgo:
                    loop(1)
                    cel((send gEgo:lastCel()))
                    setCycle(Beg self)
                )
  )
            )
            (case 2
                (proc0_6(0 2) proc0_3(109) (send gEgo:
                    setScale(0)
                    posn(109 135)
                )
 (send gSQ5:handsOn()) (self:dispose()) )
            )
        )
    )

)
(instance public putOnMask of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (
                (if (not proc240_1())
                    (send gTestMessager:say(19 39 27 0))
                    (send gSQ5:handsOn())
                    (self:dispose())
                )(else
                    (if (((((send gCast:contains(ScriptID(240 2))) and (<> global164 9)) or proc240_7()) or (((proc0_1(63) and proc0_1(45)) and not proc999_5(global164 1 8)) and (== gEurekaCurLocation 6))) or (((<> gGModNum 225) and (== gEurekaCurLocation 8)) and (<> global164 8)))
                        (send gTestMessager:say(26 24 13 0))
                    )(else
                        (send gSQ5:handsOff())
                        proc0_10(183 20)
                        proc0_2(63)
                        proc0_2(109)
                        (send gEgo:
                            view(22)
                            loop(1)
                            cel(0)
                            setCycle(End self)
                        )
                    )
                )
 )
            )
            (case 1
                (= seconds 3  )
            )
            (case 2
                ((send gEgo:
                    loop(0)
                    put(21)
                    cel((send gEgo:lastCel()))
                    setCycle(Beg self)
                )
 (send gSq5Music2:
                    number(260)
                    loop(1)
                    play()
                )
  )
            )
            (case 3
                ((send gEgo:dispose()) = seconds 2  )
            )
            (case 4
                ((send gSq5Music2:stop()) (send gRoom:newRoom(620)) )
            )
        )
    )

)
(instance public getSpike of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) 
                (if (== (eureka:puke) 7)
                    proc0_10(203 10)
                )
 (send (ScriptID(240 27)):noun(24)) (send (ScriptID(240 8)):setCycle(Beg self))  )
            )
            (case 1
                ((send (ScriptID(240 8)):
                    view(244)
                    loop(5)
                    cel(0)
                    posn(251 100)
                )
 (send gEgo:
                    view(0)
                    looper(0)
                    setCycle(Rev)
                    setLoop(0)
                    setMotion(MoveTo 191 144 self)
                )
  )
            )
            (case 2
                ((send gEgo:setCycle(0)) (send (ScriptID(240 20)):dispose()) (send (ScriptID(240 8)):setCycle(CT 5 1 self))  )
            )
            (case 3
                ((spikeNailsEgo:start(2)) = next spikeNailsEgo (self:dispose()) )
            )
        )
    )

)
(instance spikeSayNo of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send (ScriptID(240 8)):
                    view(245)
                    loop(5)
                    cel(0)
                    setCycle(End self)
                )
  )
            )
            (case 1
                ((send (ScriptID(240 8)):
                    view(245)
                    loop(6)
                    cel(0)
                    setCycle(ForwardCounter 5 self)
                )
  )
            )
            (case 2
                ((send (ScriptID(240 8)):
                    view(245)
                    loop(0)
                    cel(0)
                )
 (self:dispose()) )
            )
        )
    )

)
(instance public talkAboutBea of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) proc0_2(103) = global169 (| global169 $0002) = global130 5 proc240_1(1) (send gEgo:
                    setScale(Scaler 116 71 149 123)
                    init()
                    view(6)
                    loop(0)
                    posn(106 135)
                    cel(0)
                    setCycle(End self)
                )
 (send gSq5Music2:
                    number(260)
                    loop(1)
                    play()
                )
 (send (ScriptID(240 21)):setCycle(End self))  )
            )
            (case 1
                ( )
            )
            (case 2
                ((send gSq5Music2:stop()) proc240_28(1) (send (ScriptID(240 21)):setMotion(MoveTo 214 145 self)) proc0_6(0 2) (send gEgo:
                    setScale(0)
                    posn(109 135)
                    setSpeed(6)
                )
 (self:setScript(ScriptID(240 3) self 0))  )
            )
            (case 3
                ( )
            )
            (case 4
                ((send gEgo:setMotion(PolyPath 136 129 self))  )
            )
            (case 5
                ((send gEgo:setHeading(135 self)) (send (ScriptID(240 21)):setHeading(0 self))  )
            )
            (case 6
                ( )
            )
            (case 7
                ((send gTestMessager:say(15 0 0 1 2 self))  )
            )
            (case 8
                ((send (ScriptID(240 8)):setCycle(Beg)) (send (ScriptID(240 21)):setHeading(90 self))  )
            )
            (case 9
                ((send gSq5Music1:
                    number(23)
                    loop(-1)
                    play()
                )
 (send gTestMessager:say(15 0 0 3 self))  )
            )
            (case 10
                ((send (ScriptID(240 21)):setHeading(0 self))  )
            )
            (case 11
                ((send (ScriptID(240 21)):setMotion(MoveTo 238 162 self))  )
            )
            (case 12
                ((send (ScriptID(240 21)):setHeading(0)) (send (ScriptID(240 24)):
                    init(1)
                    setCycle(End)
                )
 (send (ScriptID(240 20)):dispose()) (send (ScriptID(240 8)):
                    view(244)
                    loop(5)
                    cel(0)
                    posn(251 100)
                    setCycle(End self)
                )
 (send gSq5Music2:
                    number(246)
                    loop(1)
                    play()
                )
  )
            )
            (case 13
                ((send (ScriptID(240 21)):
                    view(26)
                    loop(0)
                    cel(0)
                    setScript(ScriptID(240 23))
                )
 (send (ScriptID(240 24)):stopUpd()) (send gTestMessager:say(15 0 0 4 self))  )
            )
            (case 14
                (proc240_29(1) (send (ScriptID(240 8)):
                    posn(181 144)
                    setMotion(MoveTo 202 137 self)
                )
  )
            )
            (case 15
                (proc0_3(43) (send (ScriptID(240 24)):setCycle(Beg)) (send (ScriptID(240 27)):noun(24)) (send (ScriptID(240 8)):
                    view(245)
                    loop(0)
                    cel(0)
                    posn(197 139)
                    setPri(14)
                    setCycle(End)
                    setMotion(JumpTo 185 115 self)
                )
 (send gSq5Music2:
                    number(246)
                    loop(1)
                    play()
                )
  )
            )
            (case 16
                ((send (ScriptID(240 8)):setCycle(ForwardCounter 5 self)) (send gSq5Music2:
                    number(246)
                    loop(-1)
                    play()
                )
  )
            )
            (case 17
                ((send gSq5Music2:stop()) (send gTestMessager:say(15 0 0 5 6 self))  )
            )
            (case 18
                ((send (ScriptID(240 8)):
                    setCycle(End)
                    setMotion(JumpTo 159 140 self)
                )
 (send gSq5Music2:
                    number(246)
                    loop(1)
                    play()
                )
  )
            )
            (case 19
                (proc0_8(gEgo ScriptID(240 8)) (send (ScriptID(240 8)):
                    setPri(-1)
                    setCycle(End)
                    setMotion(JumpTo 125 142 self)
                )
 (send gSq5Music2:
                    number(246)
                    loop(1)
                    play()
                )
  )
            )
            (case 20
                (proc0_8(gEgo ScriptID(240 8)) (send (ScriptID(240 8)):setCycle(ForwardCounter 5 self)) (send gSq5Music2:
                    number(246)
                    loop(-1)
                    play()
                )
  )
            )
            (case 21
                ((send gSq5Music2:stop()) (send (ScriptID(240 8)):
                    loop(2)
                    cel(0)
                    setCycle(ForwardCounter 3 self)
                )
  )
            )
            (case 22
                ((send (ScriptID(240 8)):
                    loop(4)
                    cel(0)
                    setCycle(ForwardCounter 3 self)
                )
  )
            )
            (case 23
                ((send gTestMessager:say(15 0 0 7 8 self))  )
            )
            (case 24
                (proc240_29(1) (send (ScriptID(240 8)):
                    posn(129 137)
                    setMotion(MoveTo 163 137 self)
                )
  )
            )
            (case 25
                (proc0_8(gEgo ScriptID(240 8)) (send (ScriptID(240 8)):setMotion(MoveTo 202 137 self))  )
            )
            (case 26
                (proc0_8(gEgo ScriptID(240 21)) (send (ScriptID(240 8)):
                    view(245)
                    loop(0)
                    cel(0)
                    posn(197 139)
                    setPri(10)
                    setCycle(End)
                    setMotion(JumpTo 185 115 self)
                )
 (send gSq5Music2:
                    number(246)
                    loop(1)
                    play()
                )
 = global126 7  )
            )
            (case 27
                (= next askAboutBea (self:dispose()) )
            )
        )
    )

)
(instance public askAboutBea of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) (send gSq5Music1:
                    number(23)
                    loop(-1)
                    play()
                )
 (send (ScriptID(240 21)):
                    view(26)
                    loop(0)
                    setScript(ScriptID(240 23))
                )
 
                (if (proc240_1())
                    (self:setScript(ScriptID(240 3) self 2))
                )(else
                    = cycles 1
                )
 )
            )
            (case 1
                ((send gEgo:setMotion(PolyPath 136 129 self))  )
            )
            (case 2
                ((send gEgo:setHeading(135 self))  )
            )
            (case 3
                ((send gTestMessager:say(15 0 0 9 self))  )
            )
            (case 4
                ((send gSQ5:handsOn()) (send gSQ5:setCursor(999 1)) (send (ScriptID(240 15)):
                    normal(0)
                    curNoun(15)
                    curVerb(0)
                    curCase(20)
                )
 (send gTestMessager:say(15 0 20 1 self))  )
            )
            (case 5
                ((send gSQ5:handsOff()) (send (ScriptID(240 15)):normal(1)) 
                (if (not (send (ScriptID(240 15)):whichSelect))
                    = state (- state 2)
                    = cycles 1
                )(else
                    (if (== (send (ScriptID(240 15)):whichSelect) 4)
                        (send (ScriptID(240 8)):setCycle(ForwardCounter 5 self))
                        (send gSq5Music2:
                            number(246)
                            loop(-1)
                            play()
                        )
                    )(else
                        (self:setScript(spikeSayNo self))
                    )
                )
 )
            )
            (case 6
                ((send gSq5Music2:stop()) (send (ScriptID(240 15)):normal(1)) 170 (send gTestMessager:)  )
            )
            (case 7
                (
                (if (< (send (ScriptID(240 15)):whichSelect) 4)
                    (send gSQ5:handsOn())
                    = next 0
                    (send gEgo:setSpeed(gGEgoMoveSpeed))
                    (self:dispose())
                )(else
                    (send (ScriptID(240 8)):
                        loop(0)
                        cel(0)
                        setCycle(End)
                        setMotion(JumpTo 155 109 self)
                    )
                    (send gSq5Music2:
                        number(246)
                        loop(1)
                        play()
                    )
                )
 )
            )
            (case 8
                ((spikeNailsEgo:start(2)) (self:setScript(spikeNailsEgo self))  )
            )
            (case 9
                ((self:setScript(putSpikeInTank self))  )
            )
            (case 10
                (= global130 12 (send gEgo:setSpeed(gGEgoMoveSpeed)) (send gSq5Music1:fade(0 10 5 1)) (self:setScript(ScriptID(240 9) self))  )
            )
            (case 11
                (proc240_30() (send gSQ5:handsOn()) (self:dispose()) )
            )
        )
    )

)
(instance public upFromThrakus of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) proc240_1(1) (send gCast:eachElementDo(299)) = seconds 3  )
            )
            (case 1
                ((send gEgo:
                    init()
                    get(21)
                    setScale(0)
                    cycleSpeed(10)
                    view(23)
                    loop(0)
                    cel(0)
                    posn(124 135)
                    setCycle(End self)
                )
 proc0_3(109) (send gSq5Music2:
                    number(260)
                    loop(1)
                    play()
                )
  )
            )
            (case 2
                ((send (ScriptID(240 21)):
                    view(26)
                    loop(0)
                    cel(0)
                    stopUpd()
                )
 (send gSq5Music2:stop()) (send gEgo:
                    loop(1)
                    cel(0)
                    posn(115 140)
                    setCycle(End self)
                )
  )
            )
            (case 3
                ((send gEgo:
                    loop(2)
                    cel(0)
                    posn(112 136)
                    setCycle(End self)
                )
  )
            )
            (case 4
                ((send gEgo:
                    loop(3)
                    cel(0)
                    setCycle(End self)
                )
  )
            )
            (case 5
                ((send gCast:eachElementDo(102)) (send gSq5Music1:
                    number(33)
                    loop(-1)
                    play()
                )
 (send gEgo:ignoreActors(1)) DrawPic(46 10 1) = seconds 3  )
            )
            (case 6
                (proc240_25(1) proc240_26(1) (send gTestMessager:say(1 2 1 1 10 self))  )
            )
            (case 7
                ((beaArm:init()) = seconds 5  )
            )
            (case 8
                ((send gTestMessager:say(1 2 1 11 13 self))  )
            )
            (case 9
                (proc240_25(0) proc240_26(0) (send gSq5Music1:fade(0 10 5 1 self)) (send gCast:eachElementDo(224)) (send gEgo:ignoreActors(0)) (beaArm:dispose()) DrawPic(43 10 1) (send gAddToPics:eachElementDo(110))  )
            )
            (case 10
                (proc240_30() (send gTestMessager:say(1 2 1 14 17 self))  )
            )
            (case 11
                ((send gEgo:
                    view(256)
                    loop(0)
                    get(3)
                    cel(4)
                    posn(121 138)
                    setCycle(Beg self)
                )
  )
            )
            (case 12
                ((send (ScriptID(240 2)):init()) proc0_6(0 2) (send gEgo:
                    posn(123 137)
                    setScale(Scaler 116 71 149 123)
                )
 = cycles 2  )
            )
            (case 13
                ((send (ScriptID(240 2)):stopUpd()) proc240_6(180 141) = next ScriptID(240 3) (send (ScriptID(240 3)):register(2)) (send gCast:eachElementDo(301)) (send gCast:eachElementDo(304)) (self:dispose()) )
            )
        )
    )

)
(instance upFromGenetix of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) proc240_1(1) = seconds 3  )
            )
            (case 1
                (proc240_6(180 141) = next ScriptID(240 3) (send (ScriptID(240 3)):register(2)) (self:dispose()) )
            )
        )
    )

)
(instance public putBeaOnPad of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (0 (send gSQ5:handsOff()) 
                (if (proc240_1())
                    = cycles 1
                )(else
                    (if ((== (send gEgo:view) 257) and (== (send gEgo:loop) 1))
                        (send gEgo:posn(158 136))
                    )
                    (send gEgo:
                        view(258)
                        looper(0)
                        setLoop(1)
                        cel(0)
                        setCycle(Walk)
                        setMotion(MoveTo 119 138 self)
                    )
                )
 )
            )
            (case 1
                (1 (send gEgo:
                    view(256)
                    looper(0)
                    loop(0)
                    cel(7)
                    x(121)
                    y(138)
                    setCycle(CT 4 -1 self)
                )
  )
            )
            (case 2
                (2 (send (ScriptID(240 2)):init()) proc240_7(0) (send gEgo:setCycle(Beg self))  )
            )
            (case 3
                (3 proc240_1(1) proc0_6(0 2) (send gEgo:
                    posn(123 137)
                    setScale(0)
                )
 
                (if (== global130 12)
                    = next cureBea
                )(else
                    (send gSQ5:handsOn())
                )
 (self:dispose()) )
            )
        )
    )

)
(instance cureBea of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (= global164 8 (send (ScriptID(240 2)):stopUpd()) (send (ScriptID(240 21)):startUpd()) (self:setScript(ScriptID(240 3) self 2))  )
            )
            (case 1
                ((send gEgo:setHeading(270 self))  )
            )
            (case 2
                ((send gTestMessager:say(15 0 25 1 2 self))  )
            )
            (case 3
                (proc0_10(188 50) proc240_28(3) (send (ScriptID(240 21)):setHeading(90 self))  )
            )
            (case 4
                ((send (ScriptID(240 21)):
                    view(191)
                    loop(4)
                    x(239)
                    y(164)
                    setPri(13)
                    setScale(Scaler 116 71 149 123)
                    setCycle(End self)
                )
  )
            )
            (case 5
                ((send (ScriptID(240 21)):setCycle(End self)) (send gSq5Music2:
                    number(233)
                    loop(1)
                    play()
                )
  )
            )
            (case 6
                ((send (ScriptID(240 21)):setCycle(End self)) (send gSq5Music2:
                    number(233)
                    loop(1)
                    play()
                )
  )
            )
            (case 7
                ((send gSq5Music2:
                    number(233)
                    loop(1)
                    play()
                )
 proc240_28(0) (send (ScriptID(240 21)):
                    posn(238 162)
                    setHeading(325 self)
                )
  )
            )
            (case 8
                ((send (ScriptID(240 21)):stopUpd()) (send (ScriptID(240 2)):
                    view(256)
                    loop(2)
                    cel((send (ScriptID(240 2)):lastCel()))
                    x(119)
                    y(183)
                    setCycle(Beg self)
                )
 (send gSq5Music2:
                    number(260)
                    loop(1)
                    play(self)
                )
  )
            )
            (case 9
                ((send (ScriptID(240 2)):hide())  )
            )
            (case 10
                ((send (ScriptID(240 2)):
                    show()
                    setCycle(End self)
                )
 (send gSq5Music2:
                    number(260)
                    loop(1)
                    play()
                )
  )
            )
            (case 11
                ((send gSq5Music2:stop()) (send (ScriptID(240 2)):
                    loop(1)
                    cel(0)
                    posn(97 186)
                    stopUpd()
                )
 (self:setScript(ScriptID(240 4) self 2))  )
            )
            (case 12
                ((send gEgo:setMotion(MoveTo 123 137 self))  )
            )
            (case 13
                ((send (ScriptID(240 2)):dispose()) (send gEgo:
                    view(256)
                    loop(0)
                    cel(0)
                    x(121)
                    y(138)
                    setCycle(CT 3 1 self)
                )
  )
            )
            (case 14
                ((send gSq5Music1:
                    number(34)
                    loop(-1)
                    play()
                )
 (send gCast:eachElementDo(102)) (send gEgo:ignoreActors(1)) DrawPic(46 10 1) = seconds 3  )
            )
            (case 15
                (proc240_26(1) proc240_25(1) (send gTestMessager:say(15 0 25 3 6 self))  )
            )
            (case 16
                ((send gSq5Music2:
                    number(502)
                    loop(1)
                    play()
                )
 (send gTestMessager:say(15 0 44 0 self))  )
            )
            (case 17
                ((send gTestMessager:say(15 0 25 7 self))  )
            )
            (case 18
                (proc240_26(0) proc240_25(0) (send gCast:eachElementDo(224)) = global164 8 = global130 2 (send gEgo:ignoreActors(0)) DrawPic(43 10 1) (send gAddToPics:eachElementDo(110)) (send gSq5Music1:fade(0 10 5 1 self))  )
            )
            (case 19
                (proc240_30() (pickBeaUp:start(3)) = next pickBeaUp (self:dispose()) )
            )
        )
    )

)
(instance public pickBeaUp of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) 
                (if (not proc240_1())
                    (self:setScript(ScriptID(240 4) self 2))
                )(else
                    = cycles 1
                )
 )
            )
            (case 1
                ((send gEgo:setMotion(MoveTo 123 137 self))  )
            )
            (case 2
                ((send gEgo:
                    view(256)
                    loop(0)
                    cel(0)
                    x(121)
                    y(138)
                    setCycle(CT 3 1 self)
                )
  )
            )
            (case 3
                ((send (ScriptID(240 2)):dispose()) (send gEgo:setCycle(End self))  )
            )
            (case 4
                (proc240_1(0) (send gEgo:
                    looper(0)
                    view(258)
                    setLoop(0)
                    cel(3)
                    setCycle(Walk)
                    setMotion(MoveTo 174 135 self)
                )
  )
            )
            (case 5
                ((send gEgo:setCel(3)) proc240_7(1) 
                (if (== start 3)
                    = start 0
                    = next putBeaInBox
                )(else
                    (send gSQ5:handsOn())
                )
 (self:dispose()) )
            )
        )
    )

)
(instance public putBeaInBox of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) 
                (if (== (send gEgo:loop) 1)
                    (send gEgo:setCycle(Beg self))
                )(else
                    (send gEgo:
                        view(257)
                        setLoop(0)
                        cel(0)
                        posn(183 125)
                        setScale(0)
                        setPri(15)
                        setCycle(End self)
                    )
                )
 )
            )
            (case 1
                (proc0_10(185 20) proc0_6(0 0) (send gEgo:
                    setScale(Scaler 116 71 149 123)
                    x(160)
                    y(136)
                )
 (send (ScriptID(240 5)):
                    view(280)
                    loop(1)
                    cel(0)
                    setCycle(End self)
                )
  )
            )
            (case 2
                ((send (ScriptID(240 21)):
                    view(191)
                    loop(0)
                    x(239)
                    y(164)
                    setPri(13)
                    setScale(Scaler 116 71 149 123)
                    setScript(ScriptID(240 23))
                )
 proc0_2(45) proc240_7(0) (send (ScriptID(240 5)):init()) (send gCast:eachElementDo(304)) UnLoad(128 280) UnLoad(128 257) (send gSQ5:handsOn()) (self:dispose()) )
            )
        )
    )

)
(instance public goliathConv of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) (send gEgo:setMotion(PolyPath 225 146 self))  )
            )
            (case 1
                ((send gEgo:setHeading(180 self))  )
            )
            (case 2
                (
                (if (& global169 $0008)
                    (send (ScriptID(240 11)):
                        normal(0)
                        curNoun(1)
                        curVerb(2)
                        curCase(4)
                    )
                    (send gSQ5:handsOn())
                    (send gSQ5:setCursor(999 1))
                    (send gTestMessager:say(1 2 4 1 self 246))
                )(else
                    = state (+ state 2)
                    = cycles 1
                )
 )
            )
            (case 3
                ((send gSQ5:handsOff()) (send (ScriptID(240 11)):normal(1)) 
                (switch ((send (ScriptID(240 11)):whichSelect))
                    (case 1
                        ((send gTestMessager:say(1 2 1 0 self 246))  )
                    )
                    (case 2
                        ((send gTestMessager:say(1 2 2 0 self 246))  )
                    )
                    (case 3
                        ((send gTestMessager:say(1 2 3 0 self 246))  )
                    )
                    (default 
                        (= state (- state 2) = cycles 1 )
                    )
                )
  )
            )
            (case 4
                (
                (if (<> (send (ScriptID(240 11)):whichSelect) 1)
                    (send gSQ5:handsOn())
                    (self:dispose())
                )(else
                    = cycles 1
                )
 )
            )
            (case 5
                ((send gRoom:newRoom(246)) )
            )
        )
    )

)
(instance public openChamber of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) 
                (if (proc240_1())
                    (self:setScript(ScriptID(240 3) self 2))
                )(else
                    = cycles 1
                )
 )
            )
            (case 1
                ((send gEgo:setMotion(PolyPath 192 135 self))  )
            )
            (case 2
                ((send gEgo:setHeading(0 self))  )
            )
            (case 3
                ((send gCast:eachElementDo(299)) proc0_6(0 3) 
                (if ((not proc0_1(45) and (== gEurekaCurLocation 6)) and (<> gGModNum 225))
                    proc0_10(184 20)
                )
 (send (ScriptID(240 5)):
                    view(280)
                    loop(
                        (if (proc0_1(45))
                            1
                        )(else
                            0
                        )
)
                    cel(
                        (if (proc0_1(45))
                            5
                        )(else
                            0
                        )
)
                    setCycle(
                        (if (proc0_1(45))
                            Beg
                        )(else
                            End
                        )
 self)
                )
  )
            )
            (case 4
                (
                (if (not (send (ScriptID(240 5)):loop))
                    (send (ScriptID(240 5)):
                        view(259)
                        loop(2)
                        setCel(2)
                    )
                )
 (send gEgo:setMotion(MoveTo 167 134 self))  )
            )
            (case 5
                ((send gCast:eachElementDo(304)) (send (ScriptID(240 5)):stopUpd()) UnLoad(128 280) (send gSQ5:handsOn()) (self:dispose()) )
            )
        )
    )

)
(instance public getBeaFromChamber of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) 
                (if (proc240_1())
                    (self:setScript(ScriptID(240 3) self 2))
                )(else
                    = cycles 1
                )
 )
            )
            (case 1
                ((send gEgo:setMotion(PolyPath 167 134 self))  )
            )
            (case 2
                ((send (ScriptID(240 5)):
                    view(259)
                    loop(2)
                    cel(2)
                )
 = cycles 2  )
            )
            (case 3
                ((send gCast:eachElementDo(299)) proc0_3(45) (send gEgo:
                    view(257)
                    looper(0)
                    setLoop(1)
                    cel(0)
                    x(178)
                    y(132)
                    setScale(0)
                    setCycle(End self)
                )
  )
            )
            (case 4
                ((send (ScriptID(240 5)):stopUpd()) proc240_7(1) 
                (if (== global164 1)
                    = next breakBea
                )(else
                    (send gSQ5:handsOn())
                )
 (self:dispose()) )
            )
        )
    )

)
(instance breakBea of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gEgo:
                    view(257)
                    loop(2)
                    cel(0)
                    x(161)
                    y(109)
                    setPri(14)
                    setCycle(End self)
                )
 (send gSq5Music2:
                    number(267)
                    loop(1)
                    play(self)
                )
  )
            )
            (case 1
                ( )
            )
            (case 2
                ((send gTestMessager:say(2 0 2 0 self))  )
            )
            (case 3
                (proc0_9(47) )
            )
        )
    )

)
(instance public beamToGenetix of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (
                (if (== gEurekaCurLocation 14)
                    (send gSQ5:handsOff())
                )(else
                    proc0_2(75)
                )
 (self:setScript(blowFuse self)) (send gEgo:
                    setPri(15)
                    setCycle(Osc)
                )
 
                (if (== global164 9)
                    (send (ScriptID(240 2)):
                        setPri(15)
                        setCycle(Osc)
                    )
                )
 )
            )
            (case 1
                (
                (if (== gEurekaCurLocation 14)
                    proc0_2(72)
                    proc0_3(73)
                    (send gEgo:setCycle(End self))
                    (if (== global164 9)
                        (send (ScriptID(240 2)):setCycle(End))
                    )
                )(else
                    (send gEgo:setCycle(Beg self))
                )
 )
            )
            (case 2
                (
                (if (== gEurekaCurLocation 14)
                    (send gTestMessager:say(26 24 46 0 self))
                )(else
                    (send gRoom:newRoom(760))
                )
 )
            )
            (case 3
                ((send gSQ5:handsOn()) 
                (if (== global164 9)
                    (send (ScriptID(240 2)):setPri(-1))
                )
 (extra1:dispose()) (extra2:dispose()) (extra3:dispose()) proc0_6(0 2) (self:dispose()) )
            )
        )
    )

)
(instance public bounceEgo of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) (send gEgo:
                    show()
                    setCycle(Osc)
                )
 (send gSq5Music2:
                    number(260)
                    loop(-1)
                    play()
                )
 = seconds 4  )
            )
            (case 1
                ((send gEgo:setCycle(End self))  )
            )
            (case 2
                ((send gSq5Music2:stop()) 
                (if (== global130 8)
                    (if (not & global169 $0010)
                        = global169 (| global169 $0010)
                        (send gTestMessager:say(4 0 0 0 self 246))
                    )(else
                        (send gTestMessager:say(4 0 5 0 self 246))
                    )
                )(else
                    (if ((send gCast:contains(ScriptID(240 21))))
                        (send gTestMessager:say(26 24 37 0 self))
                    )(else
                        (send gTestMessager:say(26 24 54 0 self))
                    )
                )
 )
            )
            (case 3
                ((send gSQ5:handsOn()) proc0_6(0 2) proc240_1(1) (send gEgo:heading(180)) (self:dispose()) )
            )
        )
    )

)
(instance blowFuse of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSq5Music2:
                    number(145)
                    loop(-1)
                    play()
                )
 (extra3:
                    view(253)
                    loop(3)
                    cel(0)
                    x(135)
                    y(174)
                    init()
                    setCycle(Fwd)
                )
 = seconds 4  )
            )
            (case 1
                ((extra1:
                    view(253)
                    loop(0)
                    cel(0)
                    x(126)
                    y(164)
                    init()
                    setCycle(Fwd)
                )
 (extra2:
                    view(253)
                    loop(1)
                    cel(0)
                    x(119)
                    y(146)
                    init()
                    setCycle(Fwd)
                )
 = seconds 4  )
            )
            (case 2
                ((extra1:
                    view(253)
                    loop(2)
                    cel(0)
                    x(98)
                    y(134)
                    setPri(15)
                    setCycle(Fwd)
                )
 (extra2:
                    view(253)
                    loop(2)
                    cel(0)
                    x(119)
                    y(137)
                    setPri(15)
                    setCycle(Fwd)
                )
 (extra3:
                    view(253)
                    loop(2)
                    cel(0)
                    x(135)
                    y(134)
                    setPri(15)
                    setCycle(Fwd)
                )
 (send gSq5Music2:
                    client(0)
                    stop()
                )
 (self:dispose()) )
            )
        )
    )

)
(instance public specialBeam of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) 
                (if (== gGModNum 225)
                    = state (+ state 1)
                    = cycles 1
                )(else
                    proc240_1(1)
                    (send gEgo:
                        setScale(Scaler 116 71 149 123)
                        init()
                        view(6)
                        loop(0)
                        posn(106 135)
                        cel(0)
                        setCycle(End self)
                    )
                    (send gSq5Music2:
                        number(260)
                        loop(1)
                        play()
                    )
                )
 )
            )
            (case 1
                ((send gSq5Music2:stop()) proc0_6(0 2) (send gEgo:
                    setScale(0)
                    posn(109 135)
                )
 (self:setScript(ScriptID(240 3) self 1))  )
            )
            (case 2
                ((send gEgo:setHeading(90 self))  )
            )
            (case 3
                ((send gTestMessager:say(28 0 40 1 self))  )
            )
            (case 4
                ((send gEgo:
                    view(260)
                    loop(0)
                    cel(0)
                    put(20)
                    setCycle(CT 3 1 self)
                )
  )
            )
            (case 5
                ((extra1:
                    init()
                    view(260)
                    loop(1)
                    cel(3)
                    setCycle(Fwd)
                    setPri(12)
                    posn(+ (send gEgo:x) 16 - (send gEgo:y) 39)
                    setMotion(JumpTo 259 109 self)
                )
 (send gEgo:setCycle(End self))  )
            )
            (case 6
                ( )
            )
            (case 7
                ((send gSq5Music2:
                    number(233)
                    loop(1)
                    play()
                )
 proc0_6(0 0) (extra1:setMotion(JumpTo 227 131 self))  )
            )
            (case 8
                ((send gSq5Music2:
                    number(233)
                    loop(1)
                    play()
                )
 (send gTestMessager:say(28 0 40 2 3 self)) (extra1:dispose())  )
            )
            (case 9
                ((send gEgo:setMotion(PolyPath 121 127 self)) proc240_28(3) (send (ScriptID(240 21)):setMotion(MoveTo 168 160 self))  )
            )
            (case 10
                ( )
            )
            (case 11
                ((send gEgo:setHeading(135)) (send (ScriptID(240 21)):setMotion(MoveTo 147 130 self))  )
            )
            (case 12
                ((send gEgo:
                    view(248)
                    loop(6)
                    cel(0)
                    x(129)
                    y(130)
                    setCycle(End self)
                )
 (send (ScriptID(240 21)):hide())  )
            )
            (case 13
                ((send gTestMessager:say(28 0 40 4 5 self))  )
            )
            (case 14
                ((send (ScriptID(240 21)):
                    show()
                    setMotion(MoveTo 168 160 self)
                )
 proc0_6(0 2) (send gEgo:get(6))  )
            )
            (case 15
                ((send (ScriptID(240 21)):setMotion(MoveTo 226 170 self))  )
            )
            (case 16
                ((send (ScriptID(240 21)):
                    view(248)
                    loop(0)
                    cel(0)
                    x(226)
                    y(170)
                    setPri(13)
                    setScript(ScriptID(240 23))
                )
 = cycles 5  )
            )
            (case 17
                ((send (ScriptID(240 21)):detailLevel(2)) (send gSQ5:handsOn()) (self:dispose()) )
            )
        )
    )

)
(instance upFromKUEgoAlone of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSq5Music2:
                    number(260)
                    loop(1)
                    play()
                )
 (send gEgo:
                    init()
                    view(21)
                    setLoop(9)
                    cel(0)
                    x(91)
                    y(77)
                    scaleSignal(1)
                    scaleX(120)
                    scaleY(120)
                    cycleSpeed(6)
                    moveSpeed(2)
                    setStep(2 6)
                    setPri(14)
                    setCycle(End self)
                )
  )
            )
            (case 1
                ((send gEgo:
                    setLoop(2)
                    cel(0)
                    x(107)
                    y(108)
                    setMotion(MoveTo 107 135 self)
                )
  )
            )
            (case 2
                ((send gSq5Music2:
                    number(233)
                    loop(1)
                    play()
                )
 (send gEgo:setCycle(End)) proc240_28(1) (send (ScriptID(240 21)):setMotion(MoveTo 179 164 self))  )
            )
            (case 3
                ((send (ScriptID(240 21)):setMotion(MoveTo 159 139 self))  )
            )
            (case 4
                ((send (ScriptID(240 21)):setMotion(MoveTo 137 136 self))  )
            )
            (case 5
                ((send (ScriptID(240 21)):setHeading(225 self))  )
            )
            (case 6
                ((self:dispose()) )
            )
        )
    )

)
(instance upFromKUEgoAndCliffy of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSq5Music2:
                    number(260)
                    loop(1)
                    play()
                )
 (send gEgo:
                    init()
                    view(21)
                    setLoop(9)
                    cel(0)
                    x(91)
                    y(77)
                    scaleSignal(1)
                    scaleX(120)
                    scaleY(120)
                    cycleSpeed(6)
                    moveSpeed(2)
                    setPri(14)
                    setStep(2 6)
                    setCycle(End self)
                )
 (send (ScriptID(240 21)):setCycle(End self))  )
            )
            (case 1
                ( )
            )
            (case 2
                ((send gEgo:
                    setLoop(2)
                    cel(0)
                    x(107)
                    y(108)
                    setMotion(MoveTo 107 135 self)
                )
 (send (ScriptID(240 21)):
                    setLoop(10)
                    cel(0)
                    x(105)
                    y(108)
                    moveSpeed(2)
                    setStep(2 6)
                    setPri(14)
                    setMotion(MoveTo 105 135 self)
                )
  )
            )
            (case 3
                ( )
            )
            (case 4
                ((send gSq5Music2:
                    number(233)
                    loop(1)
                    play()
                )
 (send gEgo:setCycle(End self)) (send (ScriptID(240 21)):setCycle(End self))  )
            )
            (case 5
                ( )
            )
            (case 6
                ((send (ScriptID(240 21)):
                    setLoop(4)
                    cel(0)
                    x(136)
                    y(136)
                    setCycle(End self)
                )
  )
            )
            (case 7
                ((send (ScriptID(240 21)):
                    setLoop(6)
                    cel(0)
                    x(136)
                    y(136)
                    setCycle(End self)
                )
  )
            )
            (case 8
                ((self:dispose()) )
            )
        )
    )

)
(instance public upFromKU of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) proc0_2(89) (send gEgo:put(12)) 
                (if (& global169 $0020)
                    (self:setScript(upFromKUEgoAlone self))
                )(else
                    (self:setScript(upFromKUEgoAndCliffy self))
                )
 )
            )
            (case 1
                ((send gTestMessager:say(26 0 34 0 self))  )
            )
            (case 2
                ((send (ScriptID(240 21)):hide()) (send gEgo:
                    y(7)
                    cel(0)
                    setCycle(End self)
                )
  )
            )
            (case 3
                ((send gEgo:setCycle(CT 2 -1 self))  )
            )
            (case 4
                (
                (if (--register)
                    = state (- state 2)
                )
 (send gEgo:setCycle(End self))  )
            )
            (case 5
                ((send gSq5Music2:
                    number(136)
                    loop(1)
                    play()
                )
 (send gEgo:
                    loop(8)
                    cel(0)
                    setCycle(End self)
                )
  )
            )
            (case 6
                (proc0_6(0 3) (send gEgo:
                    posn(109 135)
                    setScale(Scaler 116 71 149 123)
                )
 proc240_28(2) (send (ScriptID(240 21)):
                    show()
                    setStep(5 2)
                    setScale(Scaler 116 71 149 123)
                )
 
                (if (== global170 1)
                    = global130 4
                    (send gTestMessager:say(26 0 36 0 self))
                )(else
                    = global130 1
                    (send gTestMessager:say(26 0 35 0 self))
                )
 )
            )
            (case 7
                ((self:setScript(ScriptID(240 3) self 1))  )
            )
            (case 8
                ((self:setScript(
                    (if (== global170 1)
                        cliffyGoesBackToWD40
                    )(else
                        cliffyLeavesThruDoor
                    )
 self))  )
            )
            (case 9
                ((send gSQ5:handsOn()) (self:dispose()) )
            )
        )
    )

)
(instance public upFromKU2 of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) proc240_1(1) (send gEgo:
                    setScale(Scaler 116 71 149 123)
                    init()
                    view(6)
                    loop(0)
                    posn(109 135)
                    cel(0)
                    setCycle(End self)
                )
 (send gSq5Music2:
                    number(260)
                    loop(1)
                    play()
                )
 (send (ScriptID(240 21)):
                    init()
                    setCycle(End self)
                )
 
                (if (== gEurekaCurLocation 3)
                    = global169 (| global169 $0020)
                )
 )
            )
            (case 1
                ( )
            )
            (case 2
                (proc0_6(0 2) (send gEgo:
                    posn(109 135)
                    setScale(Scaler 116 71 149 123)
                )
 proc240_28(2) (send (ScriptID(240 21)):
                    show()
                    posn(122 147)
                )
 
                (if (== global170 1)
                    = global130 4
                )(else
                    = global130 2
                )
 = cycles 2  )
            )
            (case 3
                ((self:setScript(ScriptID(240 3) self 1))  )
            )
            (case 4
                ((self:setScript(cliffyGoesBackToWD40 self))  )
            )
            (case 5
                ((send gSQ5:handsOn()) (self:dispose()) )
            )
        )
    )

)
(instance cliffyLeavesThruDoor of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send (ScriptID(240 21)):setMotion(MoveTo 163 143 self))  )
            )
            (case 1
                ((send (ScriptID(240 21)):setMotion(MoveTo 143 130 self))  )
            )
            (case 2
                ((send (ScriptID(240 21)):setMotion(MoveTo 40 130 self))  )
            )
            (case 3
                ((send (ScriptID(240 21)):setHeading(0 self))  )
            )
            (case 4
                ((send (ScriptID(240 22)):setCycle(End self))  )
            )
            (case 5
                ((send (ScriptID(240 21)):
                    setPri(1)
                    setMotion(MoveTo 45 120 self)
                )
  )
            )
            (case 6
                ((send (ScriptID(240 22)):setCycle(Beg self))  )
            )
            (case 7
                (= global130 1 (send (ScriptID(240 21)):dispose()) (send (ScriptID(240 22)):stopUpd()) (self:dispose()) )
            )
        )
    )

)
(instance cliffyGoesBackToWD40 of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send (ScriptID(240 21)):setMotion(MoveTo 164 145 self))  )
            )
            (case 1
                ((send (ScriptID(240 21)):setMotion(MoveTo 172 169 self))  )
            )
            (case 2
                (
                (if (== global170 1)
                    (send (ScriptID(240 21)):setMotion(MoveTo 227 170 self))
                )(else
                    (send (ScriptID(240 21)):setMotion(MoveTo 239 164 self))
                )
 )
            )
            (case 3
                (
                (if (== global170 1)
                    (send (ScriptID(240 21)):setHeading(0 self))
                )(else
                    (send (ScriptID(240 21)):setHeading(90 self))
                )
 )
            )
            (case 4
                (
                (if (== global170 1)
                    (send (ScriptID(240 21)):
                        view(248)
                        loop(0)
                        cel(0)
                        x(226)
                        y(170)
                        setPri(13)
                        setScale(Scaler 116 71 149 123)
                        setCycle(Fwd)
                        setScript(ScriptID(240 23))
                    )
                    = global130 2
                )(else
                    (send (ScriptID(240 21)):
                        view(191)
                        loop(0)
                        x(239)
                        y(164)
                        detailLevel(2)
                        setPri(13)
                        setScale(Scaler 116 71 149 123)
                        setScript(ScriptID(240 23))
                    )
                )
 (self:dispose()) )
            )
        )
    )

)
(instance public funnyBeam of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gEgo:
                    view(7)
                    loop(= register Random(0 2))
                    cel(0)
                    setSpeed(6)
                    setScale(0)
                    setCycle(End self)
                )
 (send gSq5Music2:
                    number(260)
                    loop(1)
                    play()
                )
  )
            )
            (case 1
                ((send gSq5Music2:
                    number(102)
                    loop(1)
                    play()
                )
 
                (if (== register 2)
                    (extra2:
                        view(7)
                        x(- (send gEgo:x) 7)
                        y(- (send gEgo:y) 51)
                        loop(3)
                        setPri(+ (send gEgo:priority) 1)
                        init()
                        cycleSpeed(12)
                        setCycle(ForwardCounter 3 self)
                    )
                )(else
                    = state (+ state 4)
                    = cycles 1
                )
 )
            )
            (case 2
                ((extra2:
                    loop(4)
                    setCycle(End self)
                )
  )
            )
            (case 3
                ((extra2:setCycle(Beg self))  )
            )
            (case 4
                ((extra2:
                    loop(5)
                    setCycle(End self)
                )
  )
            )
            (case 5
                ((extra2:setCycle(Beg self))  )
            )
            (case 6
                (
                (if ((send gCast:contains(extra2)))
                    (extra2:
                        loop(3)
                        setCycle(Fwd)
                    )
                )
 = seconds 3  )
            )
            (case 7
                ((extra2:
                    cycleSpeed(6)
                    dispose()
                )
 (send gEgo:setCycle(Beg self)) (send gSq5Music2:
                    number(260)
                    loop(1)
                    play()
                )
  )
            )
            (case 8
                ((send gEgo:
                    view(6)
                    loop(0)
                    cel(0)
                    setSpeed(6)
                    setCycle(End self)
                )
 (send gSq5Music2:
                    number(260)
                    loop(1)
                    play()
                )
  )
            )
            (case 9
                ((send gSq5Music2:stop()) (self:dispose()) )
            )
        )
    )

)
(instance extra1 of Actor
    (properties
        x 126
        y 164
        view 253
        priority 14
        signal 16400
    )
)
(instance extra2 of Prop
    (properties
        x 119
        y 146
        view 253
        loop 1
        signal 16384
    )
)
(instance extra3 of Prop
    (properties
        x 135
        y 174
        view 253
        loop 3
        priority 13
        signal 16400
    )
)
(instance beaArm of Actor
    (properties
        x 150
        y 128
        view 261
        loop 2
        priority 10
        signal 26640
    )

    (method (init param1)
        (super:init(rest param1))
        (self:setMotion(MoveTo 116 108 upFromThrakus))
    )

)
