// waupbush.txt v1.0
// M. G. Slack - 2006
// (slack at attglobal dot net)
// Simple script that will allow searching to give a choice to the player to
// 'wake up' (quit the game).
//
// Memory Cells - 
//  none used.

beginterrainscript; 

variables;

short choice;

body;

beginstate INIT_STATE; // state 0
break;

beginstate START_STATE; // state 2
break;

beginstate SEARCH_STATE; // state 100
	set_state_continue(10);
break;

beginstate STEP_INTO_SPOT_STATE; // state 114
break;

beginstate 10;
	reset_dialog();
	add_dialog_str(0, "The bush in this planter smells strange.", 0);
	add_dialog_str(1, "You feel drawn to break a branch and give a big sniff, like it might _wake_ you up.", 0);
	add_dialog_choice(0, "Break branch and sniff");
	add_dialog_choice(1, "Leave alone");
	choice = run_dialog(0);
	if (choice == 1) {
		set_flag(50, 2, 1);
		message_dialog("You feel yourself being moved to another location.", "It's as if a fog has been lifted from your eyes.");
		if ((current_town() == 0) || (current_town() == 2)) {
			run_town_script(13);
		}
		else if ((current_town() == 3) || (current_town() == 4)) {
			run_town_script(11);
		}
	}
break;
