(version 2)
(include "sci.sh")
(exports
    0 rm854
    1 thiefEndScript
    2 grapDeWiz
)
(use "Main")
(use "n026")
(use "GloryControls")
(use "JumpX")
(use "IconI")
(use "Polygon")
(use "CueObj")
(use "n958")
(use "SysWindow")
(use "Jump")
(use "Cycle")
(use "Game")
(use "User")
(use "View")
(use "Obj")
(script 854)


(local
    local0
    local1
    local2[2]

)
(procedure (localproc_1628)
    (ropeControls:state((& (ropeControls:state) $ffdf)))
)


(procedure (localproc_163e)
    (ropeControls:
        disable(0 1 2 3 4 5 6)
        eachElementDo(217)
    )
)


(procedure (localproc_165a)
    (ropeControls:
        enable(0 1 2)
        eachElementDo(217)
    )
)


(procedure (localproc_166e)
    (var temp0)
)


(instance public rm854 of Rm
    (properties
        modNum 850
        noun 18
        picture 850
    )

    (method (init)
        = global125 2
        (super:init())
        (send global2:addObstacle((send ((Polygon:new())):
                type(3)
                init(21 76 43 76 43 70 21 72 21 75)
                yourself()
            )
 (send ((Polygon:new())):
                type(3)
                init(118 35 118 39 146 37 137 35 118 36)
                yourself()
            )
 (send ((Polygon:new())):
                type(3)
                init(288 64 317 68 317 59 289 62 290 64)
                yourself()
            )
))
        (self:setRegions(850))
        (pillarA:
            init()
            setPri(1)
            stopUpd()
        )
        (pillarB:init())
        (pillarC:init())
        (send (ScriptID(850 4)):
            x(219)
            y(81)
            z(0)
        )
        (send (ScriptID(850 6)):
            init()
            stopUpd()
        )
        (self:setScript(thiefEndScript))
        (send gGame:save(1))
    )


    (method (doit)
        (if ((GameIsRestarting() and (> local0 2)) and (< local0 4))
            Graph(grDRAW_LINE 71 38 35 125 190 -1 -1)
            Graph(grUPDATE_BOX 35 38 71 125 1)
        )(else
            (if (GameIsRestarting() and (> local0 3))
                Graph(grDRAW_LINE 75 42 31 128 190 -1 -1)
                Graph(grUPDATE_BOX 31 42 75 128 1)
                Graph(grDRAW_LINE 37 131 64 298 190 -1 -1)
                Graph(grUPDATE_BOX 37 131 64 298 1)
            )
        )
        (super:doit())
    )


    (method (dispose)
        proc958_0(0 57)
        (super:dispose())
    )

)
(instance public thiefEndScript of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (send gMainIconBar:disable(6))
                (send gOwner:changeGait(2))
                = seconds 1
            )
            (case 1
                (send gOwner:
                    code(egoGaitCheck)
                    setMotion(MoveTo 20 183 self)
                )
            )
            (case 2
                (send gQg3Messager:say(1 6 4 0 self 850))
            )
            (case 3
                = seconds 5
            )
            (case 4
                (self:dispose())
            )
        )
    )

)
(instance climbPillarA of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (if (== (send (ScriptID(850 2)):script) ScriptID(850 8))
                    (send (ScriptID(850 8)):dispose())
                )
                (if ((send gGQg3KDHandler:contains(ScriptID(850 9))))
                    (send (ScriptID(850 9)):dispose())
                )
                (send gOwner:setMotion(MoveTo 32 115 self))
            )
            (case 1
                (send gOwner:
                    view(7)
                    loop(3)
                    setPri(12)
                    setCycle(Fwd)
                    setMotion(MoveTo 33 106 self)
                )
            )
            (case 2
                (send gOwner:
                    x(28)
                    y(72)
                    loop(5)
                    cel(0)
                    setPri(12)
                    setCycle(End self)
                )
            )
            (case 3
                = local0 1
                (send gOwner:normalize(0))
                proc0_3()
                (send gMainIconBar:disable(6 5))
                (self:dispose())
            )
        )
    )

)
(instance grapPillarB of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (send gOwner:
                    x(34)
                    y(71)
                    view(8)
                    loop(0)
                    cel(0)
                    setCycle(End self)
                )
            )
            (case 1
                (send (ScriptID(850 17)):
                    number(721)
                    play()
                )
                (grapThingy:
                    x(58)
                    y(32)
                    init()
                    setCycle(Fwd)
                    setMotion(JumpTo 128 31 self)
                )
            )
            (case 2
                (send (ScriptID(850 17)):
                    number(361)
                    play(127)
                )
                (grapThingy:dispose())
                (send gOwner:normalize())
                Graph(grDRAW_LINE 71 38 35 125 190 -1 -1)
                Graph(grUPDATE_BOX 35 38 71 125 1)
                = local0 2
                (send gQg3Walkers:addToFront(pillarB))
                proc0_3()
                (send gMainIconBar:disable(5 6))
                (self:dispose())
            )
        )
    )

)
(instance grapPillarC of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (send gOwner:
                    setCycle(Walk)
                    setMotion(MoveTo 132 35 self)
                )
            )
            (case 1
                (send gOwner:
                    view(8)
                    loop(4)
                    cel(0)
                    setCycle(End self)
                )
            )
            (case 2
                (send (ScriptID(850 17)):
                    number(721)
                    play()
                )
                (grapThingy:
                    x(157)
                    y(9)
                    setPri(14)
                    setCycle(Fwd)
                    init()
                    setMotion(JumpTo 310 57 self)
                )
            )
            (case 3
                (send (ScriptID(850 17)):
                    number(361)
                    play(127)
                )
                = local0 4
                (grapThingy:dispose())
                Graph(grDRAW_LINE 37 131 64 298 148 -1 -1)
                Graph(grUPDATE_BOX 37 131 64 298 1)
                (send gOwner:normalize())
                = cycles 2
            )
            (case 4
                (send gQg3Messager:say(3 6 61 0 self 850))
            )
            (case 5
                (send (ScriptID(850 2)):setCycle(End self))
            )
            (case 6
                (ropeFire:
                    init()
                    setCycle(Fwd)
                    setScript(ropeIsBurning)
                )
                (send gQg3Walkers:addToFront(pillarC))
                proc0_3()
                (send gMainIconBar:disable(5 6))
                (self:dispose())
            )
        )
    )

)
(instance ropeIsBurning of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                = seconds 30
            )
            (case 1
                (send gOwner:setScript(egoDeathFall))
            )
        )
    )

)
(instance toPillarB of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (send gOwner:
                    normalize(0)
                    setLoop(0)
                    setMotion(MoveTo 38 71 self)
                )
            )
            (case 1
                (send gOwner:
                    view(11)
                    setLoop(2)
                    setCycle(Walk)
                    setMotion(MoveTo 128 36 self)
                )
            )
            (case 2
                (if (proc0_6(124))
                    (self:cue())
                )(else
                    (send gQg3Messager:say(1 6 35 0 self 850))
                )
            )
            (case 3
                (if (proc0_6(124))
                    (self:cue())
                )(else
                    (send (ScriptID(850 6)):dispose())
                    DrawPic(850 dpOPEN_CHECKBOARD)
                    = seconds 2
                )
            )
            (case 4
                (if (proc0_6(124))
                    (self:cue())
                )(else
                    (send gQg3Messager:say(3 6 6 0 self 850))
                )
            )
            (case 5
                proc0_4(124)
                (send gQg3Walkers:delete(pillarB))
                proc0_3()
                (send gMainIconBar:disable(6 5))
                = local0 3
                (send gOwner:normalize(0))
                (send (ScriptID(850 2)):setScript(timeToBurn))
                (self:dispose())
            )
        )
    )

)
(instance timeToBurn of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (send (ScriptID(850 2)):
                    view(861)
                    loop(1)
                    setCycle(End self)
                )
            )
            (case 1
                (send (ScriptID(850 2)):
                    view(863)
                    loop(2)
                    cel(0)
                    setCycle(End self)
                )
            )
            (case 2
                (send (ScriptID(850 17)):
                    number(101)
                    play()
                )
                (pillarFire:
                    init()
                    setCycle(End self)
                )
            )
            (case 3
                (pillarFire:
                    loop(1)
                    setCycle(Fwd)
                )
                = seconds 10
            )
            (case 4
                (send gOwner:takeDamage(
                    (switch (global209)
                        (case 1
                            2
                        )
                        (case 2
                            4
                        )
                        (case 3
                            6
                        )
                    )
))
                --state
                = seconds 1
            )
        )
    )

)
(instance toPillarC of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (send gOwner:
                    setMotion(MoveTo 131 37 self)
                    ignoreHorizon(1)
                )
            )
            (case 1
                (send gOwner:
                    view(11)
                    setLoop(2)
                    setPri(14)
                    setCycle(Walk)
                    setMotion(MoveTo 193 47 self)
                )
            )
            (case 2
                (send gOwner:
                    view(30)
                    setLoop(2)
                    cel(0)
                    setMotion(JumpX 236 55 15 self)
                    setCycle(JumpCycler 3 8)
                )
            )
            (case 3
                (send gOwner:
                    view(11)
                    setCycle(Walk)
                    setMotion(MoveTo 300 64 self)
                )
            )
            (case 4
                (send gQg3Messager:say(3 6 48 0 self 850))
            )
            (case 5
                (send (ScriptID(850 2)):
                    view(863)
                    setCycle(End self)
                )
            )
            (case 6
                (send gLongSong2:
                    number(101)
                    play(127)
                )
                (pillarFire:
                    x(315)
                    y(138)
                    loop(0)
                    cel(0)
                    setPri(14)
                    init()
                    setCycle(End self)
                )
                (send gOwner:normalize())
                proc0_3()
                (ropeIsBurning:dispose())
                = local0 5
                (send gQg3Walkers:delete(pillarC))
                (pillarC:dispose())
                (send gMainIconBar:disable(5 6))
            )
            (case 7
                (pillarFire:
                    loop(1)
                    setCycle(Fwd)
                )
                = seconds 15
            )
            (case 8
                proc26_0(18 850 857 End)
            )
        )
    )

)
(instance arcadeCrossing of Script
    (properties)

    (method (dispose)
        (send gOwner:normalize())
        proc0_3()
        (send gMainIconBar:disable(6 5))
        (super:dispose())
    )


    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (send gOwner:
                    view(11)
                    setLoop(2)
                    setCycle(Walk)
                )
                (ropeControls:
                    init()
                    show()
                    dispose()
                )
            )
        )
    )

)
(instance rightStep of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (send gOwner:
                    setCycle(Walk)
                    setMotion(MoveTo + (send gOwner:x) 5 + (send gOwner:y) 1 self)
                )
            )
            (case 1
                (if (> (send gOwner:x) 297)
                    (send gOwner:setMotion(MoveTo 299 (- (send gOwner:y) 4)))
                    (ropeControls:hide())
                    (arcadeCrossing:dispose())
                    (send gQg3Walkers:delete(pillarC))
                    (pillarC:dispose())
                    (send gOwner:normalize())
                    (self:dispose())
                )(else
                    (self:cue())
                )
            )
            (case 2
                localproc_165a()
                (send gUser:canInput(1))
                (self:dispose())
            )
        )
    )

)
(instance leftStep of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (send gOwner:
                    setCycle(Walk)
                    setMotion(MoveTo - (send gOwner:x) 5 - (send gOwner:y) 1 self)
                )
            )
            (case 1
                (if (< (send gOwner:x) 131)
                    (ropeControls:hide())
                    (arcadeCrossing:dispose())
                    (send gOwner:normalize())
                    (self:dispose())
                )(else
                    (self:cue())
                )
            )
            (case 2
                localproc_165a()
                (send gUser:canInput(1))
                (self:dispose())
            )
        )
    )

)
(instance jumpRope of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (send gOwner:setMotion(MoveTo 193 47 self))
            )
            (case 1
                (send gOwner:
                    view(30)
                    setLoop(2)
                    cel(0)
                    setMotion(JumpX 236 55 15 self)
                    setCycle(JumpCycler 3 8)
                )
            )
            (case 2
                (if (<= (send gOwner:trySkill(2 175)) 0)
                    (send global2:setScript(egoDeathFall))
                )(else
                    (self:cue())
                )
            )
            (case 3
                (ropeControls:hide())
                (send gQg3Walkers:delete(pillarC))
                (send gOwner:
                    view(11)
                    setCycle(Walk)
                    setMotion(MoveTo 300 64 self)
                )
            )
            (case 4
                (send gQg3Messager:say(3 6 48 0 self 850))
            )
            (case 5
                (send (ScriptID(850 2)):
                    view(863)
                    setCycle(End self)
                )
            )
            (case 6
                (send gLongSong2:
                    number(101)
                    play(127)
                )
                (pillarFire:
                    x(315)
                    y(138)
                    loop(0)
                    cel(0)
                    setPri(14)
                    init()
                    setCycle(End self)
                )
                (send gOwner:normalize())
                proc0_3()
                (ropeIsBurning:dispose())
                = local0 5
                (arcadeCrossing:dispose())
                (send gMainIconBar:disable(5 6))
            )
            (case 7
                (pillarFire:
                    loop(1)
                    setCycle(Fwd)
                )
                = seconds 15
            )
            (case 8
                proc26_0(18 850 857 End)
            )
        )
    )

)
(instance egoDeathFall of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (if ((send gOwner:script))
                    (send ((send gOwner:script)):dispose())
                )
                (ropeControls:hide())
                (send gLongSong2:
                    number(912)
                    play(127)
                )
                (send (ScriptID(850 2)):ignoreActors(1))
                (send (ScriptID(850 18)):ignoreActors(1))
                (send (ScriptID(850 4)):ignoreActors(1))
                (send gOwner:
                    view(6)
                    setLoop(3)
                    setStep(5 5)
                    setCycle(End)
                    ignoreActors(1)
                    setMotion(MoveTo (send gOwner:x) + (send gOwner:y) 50 self)
                )
            )
            (case 1
                proc26_0(39 850)
            )
        )
    )

)
(instance public grapDeWiz of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (toPillarC:dispose())
                (send gOwner:setMotion(MoveTo 299 65 self))
            )
            (case 1
                (send gOwner:
                    view(8)
                    setLoop(1)
                    setCycle(End self)
                )
            )
            (case 2
                (send gLongSong2:
                    number(721)
                    play(127)
                )
                (grapThingy:
                    x(283)
                    y(29)
                    setCycle(Fwd)
                    setPri(14)
                    init()
                    xStep(8)
                    yStep(7)
                    setMotion(JumpTo 185 76 self)
                )
            )
            (case 3
                (send gQg3Messager:say(2 6 41 0 self 850))
            )
            (case 4
                (ropeFire:dispose())
                (pillarFire:dispose())
                (grapThingy:dispose())
                (send gLongSong2:
                    number(931)
                    play(127)
                )
                (send (ScriptID(850 2)):
                    view(868)
                    setPri(14)
                    loop(0)
                    cel(0)
                    setCycle(End self)
                )
            )
            (case 5
                (send (ScriptID(850 2)):
                    loop(1)
                    cel(0)
                    setCycle(End)
                )
                (send (ScriptID(850 18)):setCycle(End))
                (send (ScriptID(850 4)):
                    setLoop(1)
                    setMotion(MoveTo 260 61 self)
                )
            )
            (case 6
                (send (ScriptID(850 18)):setCycle(Beg))
                (send gOwner:
                    solvePuzzle(340 10)
                    solvePuzzle(341 20)
                    normalize()
                )
                (send (ScriptID(850 2)):dispose())
                (send (ScriptID(850 4)):dispose())
                (send (ScriptID(850 5)):setCycle(End self))
            )
            (case 7
                (send gLongSong2:
                    number(831)
                    play(127)
                )
                (send (ScriptID(850 5)):
                    setLoop(1)
                    setCycle(Fwd)
                )
                = seconds 3
            )
            (case 8
                (send (ScriptID(850 5)):dispose())
                (send gQg3Messager:say(2 6 3 0 self 850))
            )
            (case 9
                (send global2:newRoom(830))
            )
        )
    )

)
(instance wizBlast of Actor
    (properties
        yStep 7
        view 21
        loop 3
        signal $4000
        xStep 8
    )
)
(instance ropeFire of Prop
    (properties
        x 214
        y 54
        view 870
        loop 2
        signal $4000
    )

    (method (doit)
        (super:doit())
        (if ((not (== (send gOwner:script) jumpRope) and (== global209 3)) and (self:onMe(gOwner)))
            (ropeControls:hide())
            (send global2:setScript(egoDeathFall))
        )
    )

)
(instance pillarA of View
    (properties
        x 28
        y 115
        noun 6
        view 854
        signal $4000
    )

    (method (doVerb theVerb)
        (switch (theVerb)
            (case 4
                (if (not (send global2:script) and not local0)
                    (send global2:setScript(climbPillarA))
                )
            )
            (case 16
                (if ((send ((send gInv:at(6))):state))
                    (send gQg3Messager:say(6 16 0 0 0 850))
                )
            )
            (default 
                (super:doVerb(theVerb))
            )
        )
    )

)
(instance pillarB of Feature
    (properties
        x 133
        y 64
        noun 8
        nsTop 31
        nsLeft 114
        nsBottom 91
        nsRight 152
        sightAngle 40
    )

    (method (doVerb theVerb)
        (switch (theVerb)
            (case 16
                (if (((send ((send gInv:at(6))):state) and (== local0 1)) and not (send global2:script))
                    (send global2:setScript(grapPillarB))
                )(else
                    (send gQg3Messager:say(7 16 0 0 0 850))
                )
            )
            (case 3
                (pillarB:doVerb(4))
                (send ((User:curEvent)):claimed(1))
            )
            (case 4
                (if ((== local0 2) and not (send global2:script))
                    (send global2:setScript(toPillarB))
                )
            )
        )
    )

)
(instance pillarC of Feature
    (properties
        x 304
        y 80
        noun 7
        nsTop 58
        nsLeft 283
        nsBottom 96
        nsRight 319
        sightAngle 40
    )

    (method (doVerb theVerb)
        (switch (theVerb)
            (case 16
                (if (((send ((send gInv:at(6))):state) and (== local0 3)) and not (send global2:script))
                    (send global2:setScript(grapPillarC))
                )
            )
            (case 3
                (if ((== local0 4) and not (send global2:script))
                    (if ((send gGQg3KDHandler:contains(pillarFire)))
                        (timeToBurn:dispose())
                        (pillarFire:dispose())
                    )
                    (if (== global209 3)
                        (send global2:setScript(arcadeCrossing))
                    )(else
                        (send global2:setScript(toPillarC))
                    )
                    (send ((User:curEvent)):claimed(1))
                )
            )
            (case 4
                (if ((== local0 4) and not (send global2:script))
                    (if (== global209 3)
                        (send global2:setScript(arcadeCrossing))
                    )(else
                        (send global2:setScript(toPillarC))
                    )
                )(else
                    (if (== local0 5)
                        (send gQg3Messager:say(2 6 38 0 0 850))
                    )
                )
            )
            (default 
                (super:doVerb(theVerb))
            )
        )
    )

)
(instance grapThingy of Actor
    (properties
        view 21
        loop 6
        signal $4000
    )
)
(instance pillarFire of Prop
    (properties
        x 133
        y 88
        view 870
        signal $4000
    )
)
(instance ropeControls of GloryControls
    (properties)

    (method (init param1)
        (super:init(rest param1))
        (send gGame:setCursor(999))
        = icon1 iconJump
        = icon2 iconRight
        = icon3 iconLeft
        = icon4 iconPush
        = icon5 iconPull
        = icon6 iconDrop
        = icon7 iconQuit
        (self:
            add(iconJump iconRight iconLeft iconPush iconPull iconDrop iconQuit iconMiddle)
            eachElementDo(212 -1)
            eachElementDo(213 -1)
            eachElementDo(33 999)
            eachElementDo(14 129)
        )
        (self:disable(iconPush iconPull iconQuit iconDrop))
        (iconQuit:signal((| (iconQuit:signal) $0040)))
        (self:add(iconDummy))
        SetCursor(140 105 200 187)
    )


    (method (show param1)
        = window bridgeWin
        (User:input(1))
        = local1 Graph(grSAVE_BOX 129 104 189 200 1)
        (super:show(rest param1))
        Graph(grRESTORE_BOX local1)
        Graph(grUPDATE_BOX 130 105 189 200 1)
    )


    (method (hide)
        SetCursor(-2)
        (super:hide())
    )


    (method (dispatchEvent param1)
        localproc_166e()
        = gLastTicks GetTime()
        (send gTimers:eachElementDo(57))
        (send gGQg3KDHandler:eachElementDo(57))
        (send ((send global2:script)):doit())
        Animate((send gGQg3KDHandler:elements) 1)
        (if (global37)
            = global37 0
            (send gGQg3KDHandler:eachElementDo(246))
        )
        (super:dispatchEvent(param1))
    )

)
(instance iconJump of IconI
    (properties
        view 470
        loop 1
        cel 0
        nsLeft 2
        nsTop 2
        maskView 470
        maskLoop 10
    )

    (method (select param1)
        return 
            (if ((super:select(rest param1)))
                localproc_163e()
                (send gOwner:setScript(jumpRope))
                return 1
            )(else
                0
            )
    )


    (method (highlight param1)
        (if (not & signal $0020)
            return 
        )
        (if (param1)
            DrawCel(view loop 2 nsLeft nsTop)
        )(else
            DrawCel(view loop 0 nsLeft nsTop)
        )
    )

)
(instance iconMiddle of IconI
    (properties
        view 470
        loop 7
        cel 0
        nsLeft 24
        nsTop 2
    )
)
(instance iconRight of IconI
    (properties
        view 470
        loop 9
        cel 0
        nsLeft 60
        nsTop 12
        maskView 470
        maskLoop 10
        maskCel 5
    )

    (method (select param1)
        return 
            (if ((super:select(rest param1)))
                localproc_163e()
                (send gOwner:setScript(rightStep))
                return 1
            )(else
                0
            )
    )


    (method (highlight param1)
        (if (not & signal $0020)
            return 
        )
        (if (param1)
            DrawCel(view loop 2 nsLeft nsTop)
        )(else
            DrawCel(view loop 0 nsLeft nsTop)
        )
    )

)
(instance iconLeft of IconI
    (properties
        view 470
        loop 8
        cel 0
        nsLeft 3
        nsTop 12
        maskView 470
        maskLoop 10
        maskCel 4
    )

    (method (select param1)
        return 
            (if ((super:select(rest param1)))
                localproc_163e()
                (send gOwner:setScript(leftStep))
                return 1
            )(else
                0
            )
    )


    (method (highlight param1)
        (if (not & signal $0020)
            return 
        )
        (if (param1)
            DrawCel(view loop 2 nsLeft nsTop)
        )(else
            DrawCel(view loop 0 nsLeft nsTop)
        )
    )

)
(instance iconPush of IconI
    (properties
        view 470
        loop 2
        cel 0
        nsLeft 50
        nsTop 2
        maskView 470
        maskLoop 10
        maskCel 1
    )

    (method (select param1)
        return 
            (if ((super:select(rest param1)))
                return 1
            )(else
                0
            )
    )


    (method (highlight param1)
        (if (not & signal $0020)
            return 
        )
        (if (param1)
            DrawCel(view loop 2 nsLeft nsTop)
        )(else
            DrawCel(view loop 0 nsLeft nsTop)
        )
    )

)
(instance iconPull of IconI
    (properties
        view 470
        loop 3
        cel 0
        nsLeft 2
        nsTop 34
        maskView 470
        maskLoop 10
        maskCel 2
    )

    (method (select param1)
        return 
            (if ((super:select(rest param1)))
                return 1
            )(else
                0
            )
    )


    (method (highlight param1)
        (if (not & signal $0020)
            return 
        )
        (if (param1)
            DrawCel(view loop 2 nsLeft nsTop)
        )(else
            DrawCel(view loop 0 nsLeft nsTop)
        )
    )

)
(instance iconDrop of IconI
    (properties
        view 470
        loop 4
        cel 0
        nsLeft 53
        nsTop 34
        maskView 470
        maskLoop 10
        maskCel 3
    )

    (method (select param1)
        return 
            (if ((super:select(rest param1)))
                return 1
            )(else
                0
            )
    )


    (method (highlight param1)
        (if (not & signal $0020)
            return 
        )
        (if (param1)
            DrawCel(view loop 2 nsLeft nsTop)
        )(else
            DrawCel(view loop 0 nsLeft nsTop)
        )
    )

)
(instance iconQuit of IconI
    (properties
        view 470
        loop 5
        cel 0
        nsLeft 24
        nsTop 24
        maskView 470
        maskLoop 10
        maskCel 6
    )

    (method (select param1)
        return 
            (if ((super:select(rest param1)))
                localproc_1628()
                return 1
            )(else
                0
            )
    )


    (method (highlight param1)
        (if (not & signal $0020)
            return 
        )
        (if (param1)
            DrawCel(view loop 2 nsLeft nsTop)
        )(else
            DrawCel(view loop 0 nsLeft nsTop)
        )
    )

)
(instance iconDummy of IconI
    (properties
        nsLeft 20
        nsTop 20
        nsRight 21
        nsBottom 21
        cursor 997
        signal $0080
    )

    (method (show)
    )


    (method (select)
        return 1
    )


    (method (highlight)
    )

)
(instance bridgeWin of Window
    (properties
        top 130
        left 105
        bottom 189
        right 200
        type $0083
    )

    (method (open param1)
        (super:open(rest param1))
        DrawCel(470 8 0 0 0 -1)
        DrawCel(470 0 0 0 0 -1)
    )

)
(instance egoGaitCheck of Code
    (properties)

    (method (doit param1)
        (if (not proc0_6(124) and not (== global100 2))
            (send global2:setScript(ScriptID(850 19)))
        )
        (super:doit(rest param1))
    )

)
