// Sanctify Terrain v1.0
// sanc.txt
// by Kelandon (tomwatts@berkeley.edu)
//
// When the party uses Ritual of Sanctification near this terrain, it runs a
// town state.
// Memory Cells - 
//	0 - The number of the state to call.

beginterrainscript; 

variables; 

body; 

beginstate INIT_STATE; // state 0 
break; 

beginstate START_STATE; // state 2 
break; 

beginstate SEARCH_STATE; // state 100 
break; 

beginstate UNLOCK_SPELL_STATE; // state 101 
break; 

beginstate SANCTIFICATION_STATE; // state 102
	run_town_script(get_memory_cell(0));
break; 

beginstate BLOCK_MOVE_STATE; // state 112 
break; 

beginstate DISPEL_BARRIER_STATE; // state 113 
break; 

beginstate STEP_INTO_SPOT_STATE; // state 114 
break;