//shelf of records

beginterrainscript; 

variables;

body;

beginstate INIT_STATE;
//called when this terrain script is first created in the game

break;

beginstate START_STATE;
//called every turn

break;

beginstate SEARCH_STATE;
//called when the party searches this terrain
	if(get_flag(3,1)==0){
		set_flag(3,1,1);
		message_dialog("These shelves are filled with neatly bundled scrolls. Opening one package, you find that it is a set of records for all of the skribbane activities during a single moth, complete with names and dates.","You glance around until you find the most recent complete set of records and pocket them.");
		change_spec_item(2,1);
	}
	else{
		message_dialog("There are still many months worth of smuggling records on the shelves, but you already have the most up-to-date ones.","");
	}
break;

beginstate BLOCK_MOVE_STATE;
//called when this terrain blocks the party's motion

break;

beginstate STEP_INTO_SPOT_STATE;
//called when the party steps on this terrain
	
break;

beginstate UNLOCK_SPELL_STATE;
//called when the party casts Unlock Doors on this terrain
	
break;

beginstate SANCTIFICATION_STATE;
//called when the party casts the Ritual of Sactification on this terrain

break;