//box of skribbane

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,2)==0){
		set_flag(3,2,1);
		message_dialog("Opening the chest, you find it filled with bags of an odd herb. You have the strong suspicion that this is the skribbane that the brigands have been smuggling.","You collect a small pinch to take back to show Captain Parseval.");
		change_spec_item(1,1);
	}
	else{
		message_dialog("Opening this box you find more skribbane. It's not really of any use to you.","");
	}
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;