// TOWN SCRIPT
//    Town 20: On the Dacgban

// This is the special encounter script for this town.
// The states INIT_STATE, EXIT_STATE, and START_STATE have
// meanings that are described in the documenation. States you write
// yourself should be numbered from 10-100.

begintownscript;

variables;

short i,j,k,r1,choice;

body;

beginstate INIT_STATE;
// This state called whenever this town is entered.
break;

beginstate EXIT_STATE;
// Always called when the town is left.
break;

beginstate START_STATE;
// This state is called every turn the party is in this town.
break;

beginstate 10;
	block_entry(1);
	set_state_continue(12);
break;

beginstate 11;
	block_entry(1);
	reset_dialog_preset_options(5);
	choice = run_dialog(0);
	if (choice == 2) {
		move_to_new_town(21,20,10);
		end();
		}
break;

beginstate 12;
	block_entry(1);
		move_to_new_town(19,25,17);
		end();
break;

beginstate 13;
	message_dialog("Such a complex device as a ship's steer is far beyond your comprehension. Besides, the ship is currently anchored anyway.","");
	block_entry(1);
break;

