// dependence.txt
//
// Cell 0 - Creature whom the terrain depends upon.
// Cell 1 - Terrain set if creature is dead.

beginterrainscript; 

variables;

	short choice;
body;

beginstate INIT_STATE;

if(char_ok(get_memory_cell(0)) == FALSE){
	set_terrain(my_loc_x(),my_loc_y(),get_memory_cell(1));
}

	break;

beginstate START_STATE;
break;

beginstate SEARCH_STATE;
break;

beginstate STEP_INTO_SPOT_STATE;
break;
