begintownscript;

variables;

int i,j,k,r1,choice;

body;

beginstate INIT_STATE;
        //code
break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
        //code called every turn
break;

beginstate 10;
        if (get_flag(0,6) == 0) {
                play_sound(87);
                damage_char(0,8,0);
                reset_dialog();
                add_dialog_str(0,"Something chomps on one of your legs. You look down, and notice a large snake. Suspicious, you look around, and discover that there are more snakes in the river.",0);
                run_dialog(0);
                activate_hidden_group(1);
                set_flag(0,6,1);
                inc_flag(0,18,1);
        }
break;