// specobj.txt 

// A very simple and important script. When the object is used,
// triggers a hardcoded special encounter

// Cell 0 - The special encounter to run.
// Cell 1,2 - A stuff done flag. if non-zero, the converation no longer
//   happens when the object is used. These can both be left at 0 (for no flag).

beginobjectscript; // talking object

variables;

body;

beginstate INIT_STATE;
	break;

beginstate DEAD_STATE;
	break;

beginstate START_STATE; 
	break;

beginstate USE_STATE;
	if ((get_memory_cell(1) > 0) || (get_memory_cell(2) > 0)) {
		if (get_sdf(get_memory_cell(1),get_memory_cell(2)) > 0) {
			print_str_color("You don't find anything else of interest.",2);
			end();
			}
		}
	
	run_special(get_memory_cell(0));

	
break;
