(include "sci.sh")
(use "Main")
(use "VelocityMover")
(use "genetix")
(use "Blink")
(use "Scaler")
(use "Polygon")
(use "n958")
(use "Sound")
(use "Cycle")
(use "Sounds")
(use "View")
(use "Obj")
(script 760)


(local
    local0[4] = (1 147 157 164 )
    local11[5] = (1 79 79 75 1 )
    local9
    local10
    local11
    local12
    local13[5]

)
(procedure (localproc_010c param1 param2)
    (if ((< GetDistance(param1 param2 (send gEgo:x) (send gEgo:y)) 120) and (< 160 Abs((- (send gEgo:heading) GetAngle(param1 param2 (send gEgo:x) (send gEgo:y))))))
    )
)


(instance theMusic3 of Sound
    (properties)
)
(instance public rm760 of Rm
    (properties
        noun 15
        picture 110
    )

    (method (init)
        (self:setRegions(31))
        (send gSq5Music1:
            number(39)
            setLoop(-1)
            play()
        )
        (plants:init())
        (domeF:init())
        (palmTree:init())
        (bridgeR:init())
        (send gEgo:edgeHit(0))
        = style 
            (switch (gGModNum)
                (case 730
                    (12  )
                )
                (case 740
                    (32778 )
                )
            )
        (if (proc0_1(22) or not proc0_1(25))
            (send gRoom:addObstacle((send ((Polygon:new())):
                    type(3)
                    init(162 144 219 103 148 77 98 110 160 145)
                    yourself()
                )
))
            UnLoad(128 0)
            (pond1:init())
            (pond2:init())
            (pond3:init())
            (pond4:init())
            (exit740:init())
            (flower1:
                init()
                stopUpd()
            )
            (flower2:
                init()
                stopUpd()
            )
            (flower3:
                init()
                stopUpd()
            )
            (send gWalkHandler:addToFront(self))
            (send gWalkHandler:addToFront(comm))
            (send gWalkHandler:addToFront(exit740))
            (send gWalkHandler:addToFront(pond1))
            (send gWalkHandler:addToFront(pond2))
            (send gWalkHandler:addToFront(pond3))
            (send gWalkHandler:addToFront(pond4))
            (send gWalkHandler:addToFront(flower1))
            (send gWalkHandler:addToFront(flower2))
            (send gWalkHandler:addToFront(flower3))
        )(else
            (flower1:
                init()
                addToPic()
                dispose()
            )
            (flower2:
                init()
                addToPic()
                dispose()
            )
            (flower3:
                init()
                addToPic()
                dispose()
            )
            (send gRoom:addObstacle((send ((Polygon:new())):
                    type(3)
                    init(2 152 46 122 88 110 212 113 218 151 271 151 289 104 70 95 55 87 42 93 58 99 54 104 1 120 1 148)
                    yourself()
                )
))
        )
        (super:init())
        (switch (gGModNum)
            (case 730
                (
                (if (proc0_1(22))
                    (comm:init())
                    proc31_1(40 140)
                    (send gEgo:edgeHit(0))
                    (send gSQ5:handsOn())
                )(else
                    (send gRoom:setScript(sHuman730))
                )
 )
            )
            (case 740
                (
                (if (proc0_1(22))
                    (comm:init())
                    proc31_1(40 40)
                )(else
                    (send gRoom:setScript(sHuman740))
                )
 )
            )
            (default 
                ((send gRoom:setScript(sFromShipFirst)) )
            )
        )
        (if (proc0_1(22))
            (send gSq5Music2:
                number(600)
                loop(-1)
                play()
            )
            (send gSq5Music2:setVol(proc999_2(127 proc999_3(30 (- (send gEgo:y) 32)))))
        )
        UnLoad(128 607)
    )


    (method (doit)
        (if (proc0_1(22))
            (if (<> (send gEgo:view) 603)
                (send gEgo:setLoop((/ (+ (send gEgo:heading) 90) 180)))
            )
            (send gSq5Music2:setVol(proc999_2(127 proc999_3(30 (- (send gEgo:y) 32)))))
            (if (not script)
                (switch (local10)
                    (case 0
                        0
                    )
                    (case 1
                        (if (localproc_010c(local0[local10] local11[local10]))
                            (send gRoom:setScript(sFrogJump2))
                        )
                    )
                    (case 2
                        (if (localproc_010c(local0[local10] local11[local10]))
                            (if (Random(0 1))
                                (send gRoom:setScript(sFrogJump1))
                            )(else
                                (send gRoom:setScript(sFrogJump3))
                            )
                        )
                    )
                    (case 3
                        (if (localproc_010c(local0[local10] local11[local10]))
                            (send gRoom:setScript(sFrogJump3))
                        )
                    )
                    (case 4
                        (if (not local11 and not proc0_1(24))
                            (send gRoom:setScript(sFrogJump4))
                        )
                    )
                )
            )
        )
        (if (not 
        (if (proc0_1(22))
        )(else
            script
        )
)
            (if (& (= local12 (send gEgo:onControl(1))) $0002)
                (send gRoom:setScript(ScriptID(31 3) 0 5))
            )(else
                (if (& local12 $0004)
                    (send gRoom:setScript(ScriptID(31 3) 0 6))
                )
            )
        )
        (super:doit())
    )


    (method (dispose param1)
        (send gWalkHandler:delete(comm))
        (send gWalkHandler:delete(self))
        (send gWalkHandler:delete(flower1))
        (send gWalkHandler:delete(flower2))
        (send gWalkHandler:delete(flower3))
        (send gWalkHandler:delete(pond1))
        (send gWalkHandler:delete(pond2))
        (send gWalkHandler:delete(pond3))
        (send gWalkHandler:delete(pond4))
        (send gWalkHandler:delete(exit740))
        DisposeScript(29)
        DisposeScript(932)
        (super:dispose(rest param1))
    )


    (method (doVerb param1 param2)
        (if (proc0_1(22))
            (switch (param1)
                (case 3
                    proc31_2(gPEventY)
                    = local10 0
                    (if (< 10 gPEventX)
                        (send gEgo:setMotion(VelocityMover gPEventX gPEventY self 0))
                    )(else
                        (if (script)
                            (send gEgo:setMotion(VelocityMover gPEventX gPEventY self 0))
                            (send ((send gRoom:script)):next(sExitLeft))
                        )(else
                            (send gRoom:setScript(sExitLeft))
                        )
                    )
                )
                (case 1
                    (if (== 110 (self:curPic))
                        (super:doVerb(1 rest param2))
                    )
                )
                (default 
                    (super:doVerb(param1 rest param2))
                )
            )
        )
    )

)
(instance sExitLeft of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) (send gEgo:setMotion(VelocityMover 65336 100 0 1)) = seconds 5  )
            )
            (case 1
                ((send gSQ5:handsOn()) (send gRoom:newRoom(730)) )
            )
        )
    )

)
(instance sFrogJump1 of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (= seconds 1  )
            )
            (case 1
                ((send gEgo:setMotion(MoveTo 132 83)) (send gSq5Music1:
                    number(40)
                    setLoop(1)
                    play()
                )
 (mwog:
                    init()
                    startUpd()
                    loop(0)
                    cel(0)
                    x(193)
                    y(150)
                )
 = ticks 7  )
            )
            (case 2
                ((mwog:
                    cel(0)
                    x(190)
                    y(141)
                )
 = ticks 7  )
            )
            (case 3
                ((mwog:
                    cel(0)
                    x(186)
                    y(130)
                )
 = ticks 7  )
            )
            (case 4
                ((mwog:
                    cel(0)
                    x(180)
                    y(118)
                )
 = ticks 7  )
            )
            (case 5
                ((mwog:
                    cel(1)
                    x(167)
                    y(103)
                )
 = ticks 7  )
            )
            (case 6
                ((mwog:
                    cel(2)
                    x(157)
                    y(94)
                )
 = ticks 7  )
            )
            (case 7
                ((mwog:
                    cel(3)
                    x(135)
                    y(86)
                )
 = ticks 7  )
            )
            (case 8
                ((mwog:
                    cel(4)
                    x(122)
                    y(83)
                )
 = ticks 7  )
            )
            (case 9
                ((theMusic3:
                    number(604)
                    setLoop(1)
                    play()
                )
 
                (if (not (send gEgo:mover) or not (send ((send gEgo:mover)):isKindOf(VelocityMover)))
                    (send gEgo:hide())
                    (send gSq5Music2:stop())
                    = local9 1
                )
 (mwog:
                    cel(5)
                    x(121)
                    y(83)
                )
 = ticks 7  )
            )
            (case 10
                ((mwog:
                    cel(6)
                    x(128)
                    y(88)
                )
 = ticks 7  )
            )
            (case 11
                ((mwog:
                    cel(7)
                    x(134)
                    y(92)
                )
 = ticks 7  )
            )
            (case 12
                ((mwog:
                    cel(2)
                    x(124)
                    y(97)
                )
 = ticks 7  )
            )
            (case 13
                ((mwog:
                    cel(4)
                    x(109)
                    y(103)
                )
 = ticks 7  )
            )
            (case 14
                ((mwog:
                    cel(6)
                    x(122)
                    y(118)
                )
 = ticks 7  )
            )
            (case 15
                ((mwog:
                    cel(7)
                    x(129)
                    y(132)
                )
 = ticks 7  )
            )
            (case 16
                ((mwog:
                    loop(5)
                    cel(0)
                    x(131)
                    y(140)
                    setCycle(End self)
                )
  )
            )
            (case 17
                (= local10 0 
                (if (local9)
                    proc0_9(26)
                )(else
                    (mwog:dispose())
                    (theMusic3:
                        number(411)
                        setLoop(1)
                        play(self)
                    )
                )
 )
            )
            (case 18
                ((send gSq5Music1:
                    number(39)
                    setLoop(-1)
                    play()
                )
 (send gTestMessager:say(12 0 0 0 self))  )
            )
            (case 19
                ((self:dispose()) )
            )
        )
    )

)
(instance sFrogJump2 of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gEgo:setMotion(MoveTo 132 78)) (mwog:
                    init()
                    startUpd()
                    loop(0)
                    cel(0)
                    x(160)
                    y(112)
                )
 (send gSq5Music1:
                    number(40)
                    setLoop(1)
                    play()
                )
 = ticks 9  )
            )
            (case 1
                ((mwog:
                    cel(0)
                    x(158)
                    y(102)
                )
 = ticks 9  )
            )
            (case 2
                ((mwog:
                    cel(1)
                    x(151)
                    y(94)
                )
 = ticks 9  )
            )
            (case 3
                ((mwog:
                    cel(2)
                    x(148)
                    y(88)
                )
 = ticks 9  )
            )
            (case 4
                ((mwog:
                    cel(3)
                    x(137)
                    y(83)
                )
 = ticks 9  )
            )
            (case 5
                ((mwog:
                    cel(4)
                    x(134)
                    y(81)
                )
 = ticks 9  )
            )
            (case 6
                ((mwog:
                    cel(5)
                    x(137)
                    y(79)
                )
 = ticks 9  )
            )
            (case 7
                ((theMusic3:
                    number(604)
                    setLoop(1)
                    play()
                )
 
                (if (not (send gEgo:mover) or not (send ((send gEgo:mover)):isKindOf(VelocityMover)))
                    (send gEgo:hide())
                    (send gSq5Music2:stop())
                    = local9 1
                )
 (mwog:
                    cel(6)
                    x(146)
                    y(81)
                )
 = ticks 9  )
            )
            (case 8
                ((mwog:
                    cel(7)
                    x(153)
                    y(85)
                )
 = ticks 9  )
            )
            (case 9
                ((mwog:
                    cel(5)
                    x(138)
                    y(86)
                )
 = ticks 9  )
            )
            (case 10
                ((mwog:
                    cel(6)
                    x(146)
                    y(92)
                )
 = ticks 9  )
            )
            (case 11
                ((mwog:
                    cel(7)
                    x(152)
                    y(96)
                )
 = ticks 9  )
            )
            (case 12
                ((mwog:
                    cel(7)
                    x(152)
                    y(105)
                )
 = ticks 9  )
            )
            (case 13
                ((mwog:
                    cel(7)
                    x(152)
                    y(115)
                )
 = ticks 9  )
            )
            (case 14
                ((mwog:
                    loop(4)
                    cel(0)
                    x(166)
                    y(128)
                    setCycle(End self)
                )
  )
            )
            (case 15
                ((mwog:
                    loop(5)
                    cel(0)
                    x(152)
                    y(126)
                    setCycle(End self)
                )
  )
            )
            (case 16
                (
                (if (local9)
                    proc0_9(26)
                )(else
                    (mwog:dispose())
                    (theMusic3:
                        number(411)
                        setLoop(1)
                        play(self)
                    )
                )
 )
            )
            (case 17
                ((send gSq5Music1:
                    number(39)
                    setLoop(-1)
                    play()
                )
 (send gTestMessager:say(12 0 0 0 self))  )
            )
            (case 18
                (= local10 0 (self:dispose()) )
            )
        )
    )

)
(instance sFrogJump3 of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (= seconds 1  )
            )
            (case 1
                ((send gEgo:setMotion(MoveTo 185 78)) (send gSq5Music1:
                    number(40)
                    setLoop(1)
                    play()
                )
 (mwog:
                    init()
                    startUpd()
                    loop(1)
                    cel(7)
                    x(152)
                    y(115)
                )
 = ticks 9  )
            )
            (case 2
                ((mwog:
                    cel(0)
                    x(137)
                    y(135)
                )
 = ticks 9  )
            )
            (case 3
                ((mwog:
                    cel(0)
                    x(140)
                    y(126)
                )
 = ticks 9  )
            )
            (case 4
                ((mwog:
                    cel(0)
                    x(143)
                    y(115)
                )
 = ticks 9  )
            )
            (case 5
                ((mwog:
                    cel(1)
                    x(155)
                    y(98)
                )
 = ticks 9  )
            )
            (case 6
                ((mwog:
                    cel(3)
                    x(173)
                    y(86)
                )
 = ticks 9  )
            )
            (case 7
                ((mwog:
                    cel(4)
                    x(180)
                    y(80)
                )
 = ticks 9  )
            )
            (case 8
                ((mwog:
                    cel(6)
                    x(170)
                    y(78)
                )
 = ticks 9  )
            )
            (case 9
                ((mwog:
                    cel(7)
                    x(170)
                    y(76)
                )
 = ticks 9  )
            )
            (case 10
                ((theMusic3:
                    number(604)
                    setLoop(1)
                    play()
                )
 (mwog:
                    cel(5)
                    x(188)
                    y(75)
                )
 = ticks 9 
                (if (not (send gEgo:mover) or not (send ((send gEgo:mover)):isKindOf(VelocityMover)))
                    = local9 1
                    (send gSq5Music2:stop())
                    (send gEgo:hide())
                )
 )
            )
            (case 11
                ((mwog:
                    cel(4)
                    x(195)
                    y(76)
                )
 = ticks 9  )
            )
            (case 12
                ((mwog:
                    cel(6)
                    x(185)
                    y(81)
                )
 = ticks 9  )
            )
            (case 13
                ((mwog:
                    cel(7)
                    x(179)
                    y(88)
                )
 = ticks 9  )
            )
            (case 14
                ((mwog:
                    cel(7)
                    x(182)
                    y(97)
                )
 = ticks 9  )
            )
            (case 15
                ((mwog:
                    cel(7)
                    x(183)
                    y(111)
                )
 = ticks 9  )
            )
            (case 16
                ((mwog:
                    cel(7)
                    x(185)
                    y(125)
                )
 = ticks 9  )
            )
            (case 17
                ((mwog:
                    cel(7)
                    x(188)
                    y(141)
                )
 = ticks 9  )
            )
            (case 18
                ((mwog:
                    loop(5)
                    cel(3)
                    x(186)
                    y(147)
                    setCycle(End self)
                )
  )
            )
            (case 19
                (
                (if (local9)
                    proc0_9(26)
                )(else
                    (mwog:dispose())
                    (theMusic3:
                        number(411)
                        setLoop(1)
                        play(self)
                    )
                )
 )
            )
            (case 20
                ((send gSq5Music1:
                    number(39)
                    setLoop(-1)
                    play()
                )
 (send gTestMessager:say(12 0 0 0 self))  )
            )
            (case 21
                (= local10 0 (self:dispose()) )
            )
        )
    )

)
(instance sFrogJump4 of Script
    (properties)

    (method (dispose)
        = local10 0
        = local11 1
        (hello:dispose())
        (send gSq5Music1:
            number(39)
            setLoop(-1)
            play()
        )
        (send gSq5Music2:
            number(600)
            loop(-1)
            play()
        )
        (super:dispose())
    )


    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSq5Music1:
                    number(40)
                    setLoop(1)
                    play()
                )
 (send gEgo:setMotion(VelocityMover 226 128 0 0)) = seconds 2  )
            )
            (case 1
                ((mwog:
                    init()
                    loop(1)
                    cel(0)
                    x(190)
                    y(146)
                )
 = ticks 5  )
            )
            (case 2
                ((mwog:
                    loop(1)
                    cel(0)
                    x(193)
                    y(135)
                )
 = ticks 5  )
            )
            (case 3
                ((mwog:
                    loop(1)
                    cel(0)
                    x(197)
                    y(121)
                )
 = ticks 5  )
            )
            (case 4
                ((mwog:
                    loop(1)
                    cel(2)
                    x(210)
                    y(107)
                )
 = ticks 5  )
            )
            (case 5
                ((mwog:
                    loop(1)
                    cel(3)
                    x(232)
                    y(96)
                )
 = ticks 5  )
            )
            (case 6
                ((mwog:
                    loop(1)
                    cel(4)
                    x(240)
                    y(94)
                )
 = ticks 5 (theMusic3:
                    number(604)
                    setLoop(1)
                    play()
                )
  )
            )
            (case 7
                ((mwog:
                    loop(1)
                    cel(6)
                    x(232)
                    y(99)
                )
 = ticks 5  )
            )
            (case 8
                ((mwog:
                    loop(2)
                    cel(0)
                    x(218)
                    y(105)
                )
 = ticks 5  )
            )
            (case 9
                ((mwog:
                    loop(2)
                    cel(1)
                    x(222)
                    y(113)
                )
 = ticks 5  )
            )
            (case 10
                ((mwog:
                    loop(2)
                    cel(2)
                    x(229)
                    y(115)
                )
 = ticks 5  )
            )
            (case 11
                ((mwog:
                    loop(2)
                    cel(3)
                    x(239)
                    y(117)
                )
 = ticks 9  )
            )
            (case 12
                ((mwog:
                    loop(3)
                    cel(0)
                    x(238)
                    y(119)
                )
 = ticks 9  )
            )
            (case 13
                ((mwog:
                    loop(3)
                    cel(1)
                    x(233)
                    y(114)
                )
 = ticks 9  )
            )
            (case 14
                ((mwog:
                    loop(3)
                    cel(2)
                    x(239)
                    y(103)
                )
 = ticks 9  )
            )
            (case 15
                ((mwog:
                    loop(3)
                    cel(3)
                    x(230)
                    y(107)
                )
 = ticks 9  )
            )
            (case 16
                ((mwog:
                    loop(3)
                    cel(4)
                    x(224)
                    y(116)
                )
 = ticks 9  )
            )
            (case 17
                ((mwog:
                    loop(3)
                    cel(5)
                    x(221)
                    y(124)
                )
 = ticks 9  )
            )
            (case 18
                ((mwog:
                    loop(3)
                    cel(6)
                    x(217)
                    y(122)
                )
 = ticks 9  )
            )
            (case 19
                ((mwog:
                    loop(10)
                    cel(0)
                    x(214)
                    y(125)
                )
 = ticks 9  )
            )
            (case 20
                ((mwog:
                    loop(10)
                    cel(1)
                    x(216)
                    y(121)
                )
 = ticks 9  )
            )
            (case 21
                ((mwog:
                    loop(10)
                    cel(2)
                    x(204)
                    y(116)
                )
 = ticks 9  )
            )
            (case 22
                ((mwog:
                    loop(10)
                    cel(3)
                    x(193)
                    y(118)
                )
 = ticks 9  )
            )
            (case 23
                ((mwog:
                    loop(10)
                    cel(4)
                    x(185)
                    y(117)
                )
 = ticks 9 (theMusic3:
                    number(603)
                    setLoop(1)
                    play()
                )
  )
            )
            (case 24
                ((mwog:
                    loop(10)
                    cel(4)
                    x(182)
                    y(129)
                )
 = ticks 9  )
            )
            (case 25
                ((mwog:
                    loop(11)
                    cel(1)
                    x(180)
                    y(144)
                )
 = ticks 9  )
            )
            (case 26
                ((mwog:
                    loop(4)
                    cel(1)
                    x(186)
                    y(150)
                )
 = ticks 9  )
            )
            (case 27
                ((mwog:
                    loop(4)
                    cel(2)
                    x(185)
                    y(149)
                )
 = ticks 9  )
            )
            (case 28
                ((mwog:dispose()) (theMusic3:
                    number(411)
                    setLoop(1)
                    play()
                )
 = seconds 1  )
            )
            (case 29
                (proc0_10(228 100) (comm:cel(1)) = seconds 1  )
            )
            (case 30
                ((hello:init()) = seconds 4  )
            )
            (case 31
                ((hello:
                    cel(1)
                    x(185)
                    y(101)
                )
 = seconds 2  )
            )
            (case 32
                ((self:dispose()) )
            )
        )
    )

)
(instance sHuman730 of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) proc0_6(0) (send gEgo:
                    init()
                    posn(15 134)
                    setScale(Scaler 124 55 167 80)
                    setMotion(MoveTo 56 114 self)
                )
  )
            )
            (case 1
                ((send gSQ5:handsOn()) (self:dispose()) )
            )
        )
    )

)
(instance sHuman740 of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) = seconds 1  )
            )
            (case 1
                (proc0_6(0) (send gEgo:
                    posn(20 101)
                    init()
                    setScale(Scaler 124 55 167 80)
                    setMotion(MoveTo 78 103 self)
                )
  )
            )
            (case 2
                ((send gSQ5:handsOn()) (self:dispose()) )
            )
        )
    )

)
(instance sFromShipFirst of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (proc958_0(143 (send gRoom:number)) (send gSq5IconBar:disable(4 5 2 6)) = seconds 2  )
            )
            (case 1
                ((send gSq5IconBar:disable(4 5 2 1 6)) (send gEgo:put(10)) (send gSq5Music2:
                    number(600)
                    loop(-1)
                    play()
                )
 (send gSq5Music2:setVol(proc999_2(127 proc999_3(30 (- (send gEgo:y) 32))))) proc0_2(25) proc0_2(22) proc31_1(225 125) (theMusic3:
                    number(260)
                    loop(1)
                    play()
                )
 UnLoad(141 260) (comm:init()) (rogCan:
                    init()
                    setScale(Scaler 124 55 167 80)
                    setCycle(End self)
                )
  )
            )
            (case 2
                ((send gSq5Music2:
                    number(600)
                    loop(-1)
                    play()
                )
 (rogCan:view(606)) (send gTestMessager:say(1 0 0 0 self))  )
            )
            (case 3
                ((send gSQ5:handsOn()) (rogCan:
                    view(606)
                    setLoop(0)
                    cel(0)
                    setCycle(End self)
                )
  )
            )
            (case 4
                ((rogCan:
                    setLoop(1)
                    setCycle(Fwd)
                    setMotion(MoveTo 224 135 self)
                )
  )
            )
            (case 5
                ((rogCan:
                    setLoop(1)
                    setCycle(Fwd)
                    setMotion(MoveTo 221 111 self)
                )
  )
            )
            (case 6
                ((rogCan:
                    setLoop(1)
                    setCycle(Fwd)
                    setPri(1)
                    setMotion(MoveTo 31 101 self)
                )
  )
            )
            (case 7
                ((rogCan:dispose()) = cycles 1  )
            )
            (case 8
                (UnLoad(128 604) Load(rsVIEW 605) (self:dispose()) )
            )
        )
    )

)
(instance sFlyLeave740 of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) (send gEgo:setMotion(MoveTo 55 84 self))  )
            )
            (case 1
                ((send gSQ5:handsOn()) (send gRoom:newRoom(740)) )
            )
        )
    )

)
(instance sShowComm of Script
    (properties)

    (method (doit)
        (if ((& (= local12 (send gEgo:onControl(1))) $1000) and proc999_5(state 2 9))
            (self:dispose())
        )
        (super:doit())
    )


    (method (dispose)
        (send gWalkHandler:dispose(outside))
        (send gWalkHandler:addToFront(gRoom))
        (send gWalkHandler:addToFront(comm))
        (send gWalkHandler:addToFront(exit740))
        (send gWalkHandler:addToFront(flower1))
        (send gWalkHandler:addToFront(flower2))
        (send gWalkHandler:addToFront(flower3))
        (send gWalkHandler:addToFront(pond1))
        (send gWalkHandler:addToFront(pond2))
        (send gWalkHandler:addToFront(pond3))
        (send gWalkHandler:addToFront(pond4))
        (outside:dispose())
        (comScreen:dispose())
        (send gRoom:drawPic(110 100))
        proc31_1(226 108)
        proc31_2(108)
        (send gCast:eachElementDo(224))
        (send gSq5Music2:pause(0))
        = local10 0
        (commButton:dispose())
        (hello:dispose())
        (floOverlay:
            startUpd()
            dispose()
        )
        (send gSq5Music2:
            number(600)
            loop(-1)
            play()
        )
        (send gSq5Music2:setVol(proc999_2(127 proc999_3(30 (- (send gEgo:y) 32)))))
        (super:dispose())
    )


    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) (send gWalkHandler:delete(comm)) (send gWalkHandler:delete(gRoom)) (send gWalkHandler:delete(flower1)) (send gWalkHandler:delete(flower2)) (send gWalkHandler:delete(flower3)) (send gWalkHandler:delete(pond1)) (send gWalkHandler:delete(pond2)) (send gWalkHandler:delete(pond3)) (send gWalkHandler:delete(pond4)) (send gWalkHandler:delete(exit740)) proc31_2(65) (send gEgo:setMotion(VelocityMover 226 128 self 1))  )
            )
            (case 1
                ((send gSq5Music2:pause(1)) (send gCast:eachElementDo(102)) (send gRoom:drawPic(111 100)) 
                (if (proc0_1(24) or not local11)
                    (commButton:
                        init()
                        setLoop(4)
                    )
                    (comScreen:init())
                )(else
                    (commButton:
                        init()
                        setLoop(3)
                    )
                    (commButton:setCycle(Fwd))
                    (floOverlay:
                        init()
                        stopUpd()
                    )
                )
 (commButton:init()) (outside:init()) (send gWalkHandler:addToFront(outside)) = cycles 2  )
            )
            (case 2
                (proc0_6(603) (send gEgo:
                    show()
                    setScale(0)
                    posn(137 108)
                )
 
                (if (proc0_1(24) or not local11)
                    (send gSQ5:handsOn())
                )(else
                    (send gSQ5:handsOn())
                    = state 4
                )
 )
            )
            (case 3
                ((self:dispose())  )
            )
            (case 4
                (0  )
            )
            (case 5
                ((send gEgo:setMotion(MoveTo 137 108 self))  )
            )
            (case 6
                ((commButton:cel(0)) proc0_10(229 40) 
                (if (proc0_1(64))
                    (send gTestMessager:say(6 0 1 0 self))
                )(else
                    (send gTestMessager:say(6 0 2 0 self))
                )
 )
            )
            (case 7
                ((commButton:setLoop(4)) proc0_2(24) (floOverlay:dispose()) DrawPic(111 9) = seconds 2  )
            )
            (case 8
                ((comm:cel(0)) (send gSQ5:handsOn()) )
            )
        )
    )

)
(instance sFlyTrap of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) = cycles 1  )
            )
            (case 1
                (
                (switch (register)
                    (case flower1
                        ((send gEgo:setMotion(VelocityMover 127 137 self 1))  )
                    )
                    (case flower2
                        ((send gEgo:setMotion(VelocityMover 158 114 self 1))  )
                    )
                    (case flower3
                        ((send gEgo:setMotion(VelocityMover 207 118 self 1)) )
                    )
                )
  )
            )
            (case 2
                ((send register:
                    startUpd()
                    setCycle(End self)
                )
 
                (if (<> register flower3)
                    (send gSq5Music2:
                        number(604)
                        setLoop(1)
                        play()
                    )
                )
 )
            )
            (case 3
                ((send gEgo:dispose()) 
                (if (== register flower3)
                    (flower3:
                        setLoop(3)
                        cel(0)
                    )
                    (send gSq5Music2:
                        number(604)
                        setLoop(1)
                        play()
                    )
                )
 (send register:setCycle(Beg self))  )
            )
            (case 4
                ((send register:stopUpd()) = seconds 3  )
            )
            (case 5
                (proc0_9(25) )
            )
        )
    )

)
(instance rogCan of MyActor
    (properties
        x 224
        y 134
        noun 11
        view 604
        priority 15
        signal 24592
        cycleSpeed 4
        moveSpeed 3
    )
)
(instance comm of MyProp
    (properties
        x 224
        y 125
        noun 7
        onMeCheck 512
        view 606
        loop 2
        signal 16384
    )

    (method (doVerb param1 param2)
        (switch (param1)
            (case 3
                (
                (if (not (send gRoom:script))
                    (send gRoom:setScript(sShowComm))
                )(else
                    (if ((((== (send gRoom:script) sFrogJump4) and (> (sFrogJump4:state) 28)) and (sFrogJump4:dispose())) and (send gRoom:setScript(sShowComm)))
                    )
                )
 )
            )
            (default 
                ((super:doVerb(param1 rest param2)) )
            )
        )
    )

)
(instance commButton of MyProp
    (properties
        x 160
        y 121
        noun 8
        onMeCheck 16384
        view 608
        loop 3
        cel 3
        priority 1
        signal 16400
        cycleSpeed 14
    )

    (method (doVerb param1 param2)
        (switch (param1)
            (case 4
                (
                (if (== 4 (self:loop))
                    (send gTestMessager:say(8 4 0 Random(1 3) 0))
                )(else
                    (send gTestMessager:say(8 4 0 4 0))
                )
 )
            )
            (default 
                ((super:doVerb(param1 rest param2)) )
            )
        )
    )

)
(instance public floTalker of Talker
    (properties
        x 164
        y 47
        view 608
        talkWidth 200
        textX 10
        textY 65506
    )

    (method (init param1)
        = font gFont
        (send (= gSq5Win gNewSpeakWindow):
            tailX(180)
            tailY(73)
            xOffset(5)
            isBottom(0)
        )
        (super:init(floBust floEyes floMouth rest param1))
    )


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

)
(instance floBust of MyProp
    (properties
        view 608
    )
)
(instance floEyes of MyProp
    (properties
        nsTop 14
        nsLeft 2
        view 608
        loop 2
    )
)
(instance floMouth of MyProp
    (properties
        nsTop 20
        nsLeft 2
        view 608
        loop 1
    )
)
(instance public rogTalker of Narrator
    (properties
        talkWidth 150
    )

    (method (init param1)
        = font gFont
        (send (= gSq5Win gNewSpeakWindow):
            tailX(104)
            tailY(107)
            xOffset(65531)
            isBottom(0)
        )
        (super:init(rest param1))
    )


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

)
(instance mwog of MyProp
    (properties
        noun 12
        view 605
        priority 15
        signal 16
    )
)
(instance pond1 of MyFeature
    (properties
        x 180
        y 120
        noun 14
        onMeCheck 64
    )

    (method (doVerb param1 param2)
        (switch (param1)
            (case 3
                (proc31_2(- gPEventY 30) (send gEgo:setMotion(VelocityMover gPEventX (- gPEventY 30) self 0)) = local10 1  )
            )
            (default 
                ((super:doVerb(param1 rest param2)) )
            )
        )
    )

)
(instance pond2 of MyFeature
    (properties
        x 180
        y 120
        noun 14
        onMeCheck 128
    )

    (method (doVerb param1 param2)
        (switch (param1)
            (case 3
                (proc31_2(- gPEventY 30) (send gEgo:setMotion(VelocityMover gPEventX (- gPEventY 30) self 0)) = local10 2 = local10 1  )
            )
            (default 
                ((super:doVerb(param1 rest param2)) )
            )
        )
    )

)
(instance pond3 of MyFeature
    (properties
        x 180
        y 120
        noun 14
        onMeCheck 256
    )

    (method (doVerb param1 param2)
        (switch (param1)
            (case 3
                (proc31_2(- gPEventY 30) (send gEgo:setMotion(VelocityMover gPEventX (- gPEventY 30) self 0)) = local10 3  )
            )
            (default 
                ((super:doVerb(param1 rest param2)) )
            )
        )
    )

)
(instance pond4 of MyFeature
    (properties
        x 180
        y 120
        noun 14
        onMeCheck 1024
    )

    (method (doVerb param1 param2)
        (switch (param1)
            (case 3
                (proc31_2(- gPEventY 30) (send gEgo:setMotion(VelocityMover gPEventX (- gPEventY 30) self 0)) = local10 4  )
            )
            (default 
                ((super:doVerb(param1 rest param2)) )
            )
        )
    )

)
(instance outside of MyFeature
    (properties
        x 180
        y 130
        onMeCheck 4096
    )

    (method (doVerb param1 param2)
        (switch (param1)
            (case 3
                ((sShowComm:dispose())  )
            )
            (case 4
                ((sShowComm:dispose())  )
            )
            (default 
                ((super:doVerb(param1 rest param2)) )
            )
        )
    )

)
(instance flower1 of MyProp
    (properties
        x 70
        y 180
        noun 3
        view 607
        priority 14
        signal 16400
    )

    (method (doVerb param1 param2)
        (if (proc0_1(22) and not (send gRoom:script))
            (switch (param1)
                (case 3
                    proc31_2(gPEventY)
                    (send gRoom:setScript(sFlyTrap 0 flower1))
                )
                (default 
                    (super:doVerb(param1 rest param2))
                )
            )
        )
    )

)
(instance flower2 of MyProp
    (properties
        x 152
        y 158
        noun 4
        view 607
        loop 1
        priority 14
        signal 16400
    )

    (method (doVerb param1 param2)
        (if (proc0_1(22) and not (send gRoom:script))
            (switch (param1)
                (case 3
                    proc31_2(gPEventY)
                    (send gRoom:setScript(sFlyTrap 0 flower2))
                )
                (default 
                    (super:doVerb(param1 rest param2))
                )
            )
        )
    )

)
(instance flower3 of MyProp
    (properties
        x 205
        y 174
        noun 5
        view 607
        loop 2
        priority 14
        signal 16400
    )

    (method (doVerb param1 param2)
        (if (proc0_1(22) and not (send gRoom:script))
            (switch (param1)
                (case 3
                    proc31_2(gPEventY)
                    (send gRoom:setScript(sFlyTrap 0 flower3))
                )
                (default 
                    (super:doVerb(param1 rest param2))
                )
            )
        )
    )

)
(instance floOverlay of MyProp
    (properties
        x 167
        y 353
        z 300
        noun 10
        onMeCheck 8192
        view 608
        signal 16384
    )

    (method (doVerb param1 param2)
        (switch (param1)
            (case 2
                ((sShowComm:cue())  )
            )
            (default 
                ((super:doVerb(param1 rest param2)) )
            )
        )
    )

)
(instance exit740 of MyFeature
    (properties
        x 271
        y 189
        onMeCheck 4
    )

    (method (doVerb param1 param2)
        (switch (param1)
            (case 3
                (
                (if (proc0_1(22))
                    proc31_2(gPEventY)
                    (send gRoom:setScript(sFlyLeave740))
                )
 )
            )
            (default 
                ((super:doVerb(param1 rest param2)) )
            )
        )
    )

)
(instance bridgeR of MyFeature
    (properties
        x 60
        y 116
        noun 2
        onMeCheck 4098
    )
)
(instance domeF of MyFeature
    (properties
        x 94
        y 20
        noun 9
        onMeCheck 8
    )
)
(instance palmTree of MyFeature
    (properties
        x 300
        y 95
        noun 16
        onMeCheck 2048
    )
)
(instance plants of MyFeature
    (properties
        x 186
        y 85
        noun 13
        onMeCheck 8192
    )
)
(instance hello of View
    (properties
        x 220
        y 102
        view 606
        loop 3
        priority 15
        signal 16400
    )
)
(instance public sUseComm of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                ((send gSQ5:handsOff()) (send gEgo:
                    view(14)
                    loop(0)
                    cel(0)
                    setCycle(End self)
                )
 (theMusic3:
                    number(603)
                    setLoop(1)
                    play()
                )
  )
            )
            (case 1
                ((send gTestMessager:say(4 32 4 0 self 701))  )
            )
            (case 2
                ((send gEgo:setCycle(Beg self))  )
            )
            (case 3
                (proc0_6(0) (self:dispose()) (send gSQ5:handsOn()) )
            )
        )
    )

)
(instance comScreen of MyFeature
    (properties
        x 270
        y 310
        z 300
        noun 17
        onMeCheck 8192
    )
)
