beginoutdoorscript;

variables;

int choice;

body;

beginstate INIT_STATE;
// This state called whenever this section is loaded into memory.
break;

beginstate START_STATE;

break;

beginstate 10;
        if (get_flag(0,4) == 0) {
                reset_dialog();
                add_dialog_str(0,"From the top of this hill, you can get a good view of the forest just to the north without being spotted by anything inside. The forest contains hundreds, if not thousands, of basilisks.",0);
                add_dialog_str(1,"Without a way of concealing or disguising yourself, you'll have no chance of passing through the forest alive.",0);
                run_dialog(1);
                set_flag(0,4,1);
        }
break;

beginstate 11;
         reset_dialog();
         add_dialog_str(0,"At the westernmost end of Cherayeng Island, you find the thing you've been looking for all along; an usable boat. Following a quick inspection, you don't find any damage. If you wanted, you could use this boat to get off the island.",0);
        add_dialog_choice(0,"Stay on Cherayeng Island.");
        add_dialog_choice(1,"Leave Cherayeng Island.");
         choice = run_dialog(1);
         if (choice == 1) {
                  end();
         }
         if (choice == 2) {
                reset_dialog();
                add_dialog_str(0,"The boat is easy for you to learn how to steer. You are quickly sailing on the open seas. Before heading back to Aizo, you take the time to pick up the remaining members of the expedition.",0);
                add_dialog_str(1,"You spend the return journey talking about the experiences you had and the foes you dealt with. You're sure that you will have lots to tell the Empire when you are debriefed.",0);
                add_dialog_str(2,"Upon your return to Aizo, you are quickly called to meet with the Empire's representative. You give a long story about what happened. Since you don't remember anything about Sulfras, the Empire never learns of her presence.",0);
                add_dialog_str(3,"After being questioned about the expedition for about a day, the Empire decides it has learned enough. You are paid 5000 gold for your efforts, and the other surviving members of the team receive a similar amount.",0);
                add_dialog_str(4,"The families and the relatives of those who never returned from the expedition are given some gold, but you never find out how much. The reports the Empire representative filled out are sent to his superiors.",0);
                add_dialog_str(5,"As for the Empire's next step in investigating Cherayeng Island, only time will tell.",0);
                run_dialog(1);
                award_party_xp(1000,80);
                change_coins(5000);
                end_scenario(1);
         }
break;

beginstate 12;
         reset_dialog();
         add_dialog_str(0,"As you walk into this forest, you see a few basilisks. They haven't sensed you yet, but you have no doubt that they, and hundreds more, will if you continue to walk into the forest.",0);
         add_dialog_choice(0,"Continue through the forest.");
         add_dialog_choice(1,"Turn back.");
         choice = run_dialog(1);
         if (choice == 1) {
                  if (has_special_item(2) == 0) {
                           reset_dialog();
                           add_dialog_str(0,"You walk further into the forest. Before long, one of the nearby basilisks spots you and runs away, faster than you can follow. You walk through for about 10 minutes, but by then the whole nest has been alerted. About 120 basilisks converge on you.",0);
                           add_dialog_str(1,"You kill many of them, but eventually the collective gazes of 60 or more of them are enough to turn you to stone. You never get revived.",0);
                           add_dialog_str(2,"Eventually, the remaining members of the expedition decide you're never coming back, and that their best chance is to get off the island with the lifeboats. In that, they succeed.",0);
                           run_dialog(0);
                           kill_char(1000,4,0);
                           end();
                 }
                  if (has_special_item(2) != 0) {
                           reset_dialog();
                           add_dialog_str(0,"Before you start walking further into the forest, you activate the Basilisk Orb you found. Initially, you have no idea whether it works, but it obviously does.",0);
                           add_dialog_str(1,"Before long, one of the basilisks looks in your direction, but doesn't take any action. It must think you're a family of basilisks. You can navigate this forest fairly easily.",0);
                           run_dialog(0);
                           end();
                 }
         }
         if (choice == 2) {
                  block_entry(1);
         }
break;