(version 2)
(include "sci.sh")
(exports
    0 rm549
)
(use "Main")
(use "Game")
(use "View")
(use "Obj")
(script 549)



(instance public rm549 of Rm
    (properties
        picture 550
    )

    (method (init param1)
        (super:init(rest param1))
        (self:setScript(sStart))
    )

)
(instance sStart of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                = ticks 60
            )
            (case 1
                (combatants1:init())
                (send gLongSong2:
                    number(846)
                    setLoop(1)
                    play()
                )
                = ticks 60
            )
            (case 2
                (combatants2:init())
                (send gLongSong2:
                    number(846)
                    setLoop(1)
                    play()
                )
                = ticks 60
            )
            (case 3
                (combatants3:init())
                (send gLongSong2:
                    number(846)
                    setLoop(1)
                    play()
                )
                = ticks 60
            )
            (case 4
                (combatants4:init())
                (send gLongSong2:
                    number(846)
                    setLoop(1)
                    play()
                )
                = ticks 60
            )
            (case 5
                (theMonster:
                    view(
                        (if ((send gOwner:has(1)))
                            844
                        )(else
                            843
                        )
)
                    init()
                )
                (send gLongSong2:
                    number(846)
                    setLoop(1)
                    play()
                )
                (theWarrior:
                    view(
                        (if ((send gOwner:has(1)))
                            (if ((send ((send gInv:at(1))):state))
                                25
                            )(else
                                23
                            )
                        )(else
                            24
                        )
)
                    init()
                )
                = ticks 60
            )
            (case 6
                (combatants1:dispose())
                = ticks 60
            )
            (case 7
                (combatants2:dispose())
                = ticks 60
            )
            (case 8
                (combatants3:dispose())
                = ticks 60
            )
            (case 9
                (combatants4:dispose())
                = ticks 60
            )
            (case 10
                (theMonster:dispose())
                (theWarrior:dispose())
                = ticks 60
            )
            (case 11
                = global365 860
                (send global2:newRoom(550))
            )
        )
    )

)
(instance theMonster of View
    (properties
        x 174
        y 136
    )
)
(instance theWarrior of View
    (properties
        x 115
        y 159
    )
)
(instance combatants1 of View
    (properties
        y 10
        view 842
    )
)
(instance combatants2 of View
    (properties
        x 14
        y 117
        view 842
        cel 2
    )
)
(instance combatants3 of View
    (properties
        x 244
        y 14
        view 842
        loop 1
    )
)
(instance combatants4 of View
    (properties
        x 240
        y 128
        view 842
        loop 1
        cel 1
    )
)
