//second candle stick find script

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(2,6)==1 && get_flag(3,4)==0){
		set_flag(3,4,1);
		message_dialog("In this chest is Abe's candlestick, which you earlier stole. Returning it seems like the right thing to do, so you grab it","");
		change_spec_item(0,1);
	}
	
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;