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,3) == 0) {
                reset_dialog();
                add_dialog_str(0,"You see a large group of gremlins, about thirty of them, partying around a campfire. They seem to be having a wonderful time. One of them spots you and waves.",0);
                add_dialog_choice(0,"Approach.");
                add_dialog_choice(1,"Leave.");
                choice = run_dialog(1);
                set_flag(0,3,1);
                if (choice == 1) {
                        reset_dialog();
                        add_dialog_str(0,"You eagerly join in the celebration, and partake in the food and wine available. After a couple of hours, the party ends and the gremlins run off.",0);
                        if (get_highest_skill(2) < 31) {
                                add_dialog_str(1,"After the party, you feel smarter. It seems that the wine they were passing around has a beneficial effect on those who drink it. Unfortunately, there's none left.",0);
                                alter_stat(1000,2,1);
                        }
                        run_dialog(1);
                        end();
                }
                if (choice == 2) {
                        reset_dialog();
                        add_dialog_str(0,"Your refusal to join in the party angers the gremlins. A bunch of them run out and charge.",0);
                        create_out_spec_enc(0);
                        run_dialog(1);
                        end();
                }
        }
break;