// Party On Me v1.0
// partyonme.txt
// by Kelandon (tomwatts@berkeley.edu)

// If the party is on this spot, the script calls a town state.

// Memory Cells - 
//	0 - What state to call.

beginterrainscript; 

variables;

body;

beginstate INIT_STATE;
break;

beginstate START_STATE;
if (char_on_loc(my_loc_x(),my_loc_y()) >= 0)
	if (char_on_loc(my_loc_x(),my_loc_y()) <= 5)
		run_town_script(get_memory_cell(0));
break;

beginstate SEARCH_STATE;
break;
