(include "sci.sh")
(use "Main")
(use "Class_255_0")
(use "Game")
(use "TheMenuBar")
(script 701)


(local
    local0
    local1
    local2
    local3[30]
    local33
    local34
    local35

)
(instance public copyProtect of Rm
    (properties
        picture 991
    )

    (method (init)
        (super:init())
        (switch (= local0 Random(1 79))
            (case 1
                (= local2 431  )
            )
            (case 2
                (= local2 521  )
            )
            (case 3
                (= local2 535  )
            )
            (case 4
                (= local2 323  )
            )
            (case 5
                (= local2 621  )
            )
            (case 6
                (= local2 480  )
            )
            (case 7
                (= local2 303  )
            )
            (case 8
                (= local2 671  )
            )
            (case 9
                (= local2 393  )
            )
            (case 10
                (= local2 380  )
            )
            (case 11
                (= local2 470  )
            )
            (case 12
                (= local2 287  )
            )
            (case 13
                (= local2 352  )
            )
            (case 14
                (= local2 316  )
            )
            (case 15
                (= local2 317  )
            )
            (case 16
                (= local2 355  )
            )
            (case 17
                (= local2 616  )
            )
            (case 18
                (= local2 475  )
            )
            (case 19
                (= local2 383  )
            )
            (case 20
                (= local2 425  )
            )
            (case 21
                (= local2 516  )
            )
            (case 22
                (= local2 673  )
            )
            (case 23
                (= local2 550  )
            )
            (case 24
                (= local2 666  )
            )
            (case 25
                (= local2 465  )
            )
            (case 26
                (= local2 617  )
            )
            (case 27
                (= local2 628  )
            )
            (case 28
                (= local2 395  )
            )
            (case 29
                (= local2 505  )
            )
            (case 30
                (= local2 492  )
            )
            (case 31
                (= local2 478  )
            )
            (case 32
                (= local2 455  )
            )
            (case 33
                (= local2 455  )
            )
            (case 34
                (= local2 599  )
            )
            (case 35
                (= local2 431  )
            )
            (case 36
                (= local2 565  )
            )
            (case 37
                (= local2 455  )
            )
            (case 38
                (= local2 467  )
            )
            (case 39
                (= local2 691  )
            )
            (case 40
                (= local2 535  )
            )
            (case 41
                (= local2 432  )
            )
            (case 42
                (= local2 621  )
            )
            (case 43
                (= local2 372  )
            )
            (case 44
                (= local2 536  )
            )
            (case 45
                (= local2 395  )
            )
            (case 46
                (= local2 496  )
            )
            (case 47
                (= local2 372  )
            )
            (case 48
                (= local2 389  )
            )
            (case 49
                (= local2 374  )
            )
            (case 50
                (= local2 523  )
            )
            (case 51
                (= local2 286  )
            )
            (case 52
                (= local2 454  )
            )
            (case 53
                (= local2 273  )
            )
            (case 54
                (= local2 579  )
            )
            (case 55
                (= local2 282  )
            )
            (case 56
                (= local2 354  )
            )
            (case 57
                (= local2 602  )
            )
            (case 58
                (= local2 463  )
            )
            (case 59
                (= local2 653  )
            )
            (case 60
                (= local2 691  )
            )
            (case 61
                (= local2 309  )
            )
            (case 62
                (= local2 519  )
            )
            (case 63
                (= local2 380  )
            )
            (case 64
                (= local2 446  )
            )
            (case 65
                (= local2 302  )
            )
            (case 66
                (= local2 599  )
            )
            (case 67
                (= local2 357  )
            )
            (case 68
                (= local2 399  )
            )
            (case 69
                (= local2 381  )
            )
            (case 70
                (= local2 771  )
            )
            (case 71
                (= local2 378  )
            )
            (case 72
                (= local2 378  )
            )
            (case 73
                (= local2 434  )
            )
            (case 74
                (= local2 614  )
            )
            (case 75
                (= local2 395  )
            )
            (case 76
                (= local2 381  )
            )
            (case 77
                (= local2 456  )
            )
            (case 78
                (= local2 384  )
            )
            (case 79
                (= local2 686 )
            )
        )
        (switch (local0)
            (case 1
                (= local1 "On page 2, what is the fourth word of the first sentence?"  )
            )
            (case 2
                (= local1 "On page 2, what is the fourth word of the second paragraph?"  )
            )
            (case 3
                (= local1 "On page 3, what is the fourth word in the first paragraph?"  )
            )
            (case 4
                (= local1 "On page 3, what is the sixth word in the first paragraph?"  )
            )
            (case 5
                (= local1 "On page 3, what is the fourth word in the third paragraph?"  )
            )
            (case 6
                (= local1 "On page 3, what is the third word in the second paragraph?"  )
            )
            (case 7
                (= local1 "On page 8, what is the first word of the first paragraph?"  )
            )
            (case 8
                (= local1 "On page 3, what is the seventh word in the third paragraph?"  )
            )
            (case 9
                (= local1 "On page 3, what is the last word of the third paragraph?"  )
            )
            (case 10
                (= local1 "On page 4, what is the third word in the first paragraph?"  )
            )
            (case 11
                (= local1 "On page 4, what is the last word in the third paragraph?"  )
            )
            (case 12
                (= local1 "On page 4, what is the sixth word of the first paragraph?"  )
            )
            (case 13
                (= local1 "On page 3, what is the eighth word in the third paragraph?"  )
            )
            (case 14
                (= local1 "On page 4, what is the seventh word in the first paragraph?"  )
            )
            (case 15
                (= local1 "On page 4, what is the third word in the third paragraph?"  )
            )
            (case 16
                (= local1 "On page 4, what is the eighth word in the third paragraph?"  )
            )
            (case 17
                (= local1 "On page 5, what is the fifth word in the second paragraph?"  )
            )
            (case 18
                (= local1 "On page 5, what is the second word in the third paragraph?"  )
            )
            (case 19
                (= local1 "On page 5, what is the fourth word in the first paragraph?"  )
            )
            (case 20
                (= local1 "On page 5, what is the ninth word in the fifth paragraph?"  )
            )
            (case 21
                (= local1 "On page 6, what is the third word in the first paragraph?"  )
            )
            (case 22
                (= local1 "On page 6, what is the fifth word in the first paragraph?"  )
            )
            (case 23
                (= local1 "On page 6, what is the sixth word in the second paragraph?"  )
            )
            (case 24
                (= local1 "On page 7, what is the first word in the first paragraph?"  )
            )
            (case 25
                (= local1 "On page 7, what is the tenth word in the first paragraph?"  )
            )
            (case 26
                (= local1 "On page 7, what is the third word in the second paragraph?"  )
            )
            (case 27
                (= local1 "On page 7, what is the fifth word in the second paragraph?"  )
            )
            (case 28
                (= local1 "On page 7, what is the second word in the third paragraph?"  )
            )
            (case 29
                (= local1 "On page 8, what is the fifth word in the first paragraph?"  )
            )
            (case 30
                (= local1 "On page 8, what is the last word of the first sentence in the first paragraph?"  )
            )
            (case 31
                (= local1 "On page 6, what is the last word in the second paragraph?"  )
            )
            (case 32
                (= local1 "On page 8, what is the second word in the third paragraph?"  )
            )
            (case 33
                (= local1 "On page 8, what is the sixth word in the third paragraph?"  )
            )
            (case 34
                (= local1 "On page 8, what is the ninth word in the third paragraph?"  )
            )
            (case 35
                (= local1 "On page 9, what is the third word in the first paragraph?"  )
            )
            (case 36
                (= local1 "On page 9, what is the fourth word in the first paragraph?"  )
            )
            (case 37
                (= local1 "On page 9, what is the seventh word in the first paragraph?"  )
            )
            (case 38
                (= local1 "On page 6, what is the fourth word in the second paragraph?"  )
            )
            (case 39
                (= local1 "On page 6, what is the eighth word in the second paragraph?"  )
            )
            (case 40
                (= local1 "On page 9, what is the seventh word in the second paragraph?"  )
            )
            (case 41
                (= local1 "On page 5, what is the seventh word in the fifth paragraph?"  )
            )
            (case 42
                (= local1 "On page 2, what is the sixth word in the second paragraph?"  )
            )
            (case 43
                (= local1 "On page 2, what is the eighth word in the second paragraph?"  )
            )
            (case 44
                (= local1 "On page 3, what is the tenth word in the first paragraph?"  )
            )
            (case 45
                (= local1 "On page 4, what is the second word in the second paragraph?"  )
            )
            (case 46
                (= local1 "On page 4, what is the fourth word in the third paragraph?"  )
            )
            (case 47
                (= local1 "On page 5, what is the third word in the second paragraph?"  )
            )
            (case 48
                (= local1 "On page 5, what is the eighth word in the third paragraph?"  )
            )
            (case 49
                (= local1 "On page 5, what is the eighth word in the fourth paragraph?"  )
            )
            (case 50
                (= local1 "On page 6, what is the ninth word in the first paragraph?"  )
            )
            (case 51
                (= local1 "On page 7, what is the ninth word of the third paragraph?"  )
            )
            (case 52
                (= local1 "What is the second word of the first paragraph in the OVERVIEW?"  )
            )
            (case 53
                (= local1 "What is the first word of the second paragraph in the OVERVIEW?"  )
            )
            (case 54
                (= local1 "What is the third word of the second paragraph in the OVERVIEW?"  )
            )
            (case 55
                (= local1 "What is the sixth word of the first paragraph in the OVERVIEW?"  )
            )
            (case 56
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the first word of tip #1 (HOW TO MOVE AROUND)?"  )
            )
            (case 57
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the sixth word of tip #1 (HOW TO MOVE AROUND)?"  )
            )
            (case 58
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the fifth word in the first paragraph of tip #2 (STAY OUT OF DANGER)"  )
            )
            (case 59
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the eighth word in the second paragraph of tip #2 (STAY OUT OF DANGER)"  )
            )
            (case 60
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the fourth word in the second paragraph of tip #2 (STAY OUT OF DANGER)"  )
            )
            (case 61
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the first word of tip #3 (BE OBSERVANT)?"  )
            )
            (case 62
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the fourth word of tip #3 (BE OBSERVANT)?"  )
            )
            (case 63
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the last word of tip #3 (BE OBSERVANT)?"  )
            )
            (case 64
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the last word of tip #1 (HOW TO MOVE AROUND)?"  )
            )
            (case 65
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the first word of tip #4 (MAP YOUR PROGRESS)?"  )
            )
            (case 66
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the fifth word of tip #4 (MAP YOUR PROGRESS)?"  )
            )
            (case 67
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the seventh word of tip #4 (MAP YOUR PROGRESS)?"  )
            )
            (case 68
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the ninth word of tip #4 (MAP YOUR PROGRESS)?"  )
            )
            (case 69
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the fourth word of tip #5 (BRING ALONG SOME HELP)?"  )
            )
            (case 70
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the seventh word of tip #5 (BRING ALONG SOME HELP)?"  )
            )
            (case 71
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the ninth word of tip #5 (BRING ALONG SOME HELP)?"  )
            )
            (case 72
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the last word of tip #5 (BRING ALONG SOME HELP)?"  )
            )
            (case 73
                (= local1 "What is the last word starting with \"b\" in the verb list?"  )
            )
            (case 74
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the last word of tip #7 (LEAVE NO STONE UNTURNED)?"  )
            )
            (case 75
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the fourth word in the first paragraph of tip #8 (AT THE END OF YOUR ROPE)?"  )
            )
            (case 76
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the sixth word in the first paragraph of tip #8 (AT THE END OF YOUR ROPE)?"  )
            )
            (case 77
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the third word in the second paragraph of tip #8 (AT THE END OF YOUR ROPE)?"  )
            )
            (case 78
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the last word in the first paragraph of tip #8 (AT THE END OF YOUR ROPE)?"  )
            )
            (case 79
                (= local1 "In the section TIPS FOR NEW ADVENTURE PLAYERS, what is the eighth word in the first paragraph of tip #2 (STAY OUT OF DANGER)?" )
            )
        )
    )


    (method (doit)
        = local3 0
        = local35 0
        proc0_11()
        = global205 0
        Print(Format(@global300 701 0 local1) 134 7 15 66 global23 140 290 82 @local3 30)
        (if (global215 and (= local33 ReadNumber(@local3)))
            (TheMenuBar:draw())
            (SL:enable())
            (self:newRoom(local33))
            return 
        )
        = global22 global23
        = local33 0
        (while (< local33 StrLen(@local3))
            = local34 (& (= local34 kernel[102](@local3 local33)) $005f)
            kernel[102](@local3 local33 local34)
            = local35 (+ local35 local34)
            ++local33
        )
        (if (not StrCmp(@local3 "BOBALU"))
            (send global2:newRoom(700))
        )(else
            (if (== local35 local2)
                (send global2:newRoom(700))
            )(else
                Print(701 1)
                = global4 1
            )
        )
    )

)
