//warncryst.txt - Has a SDF attached tot. If the flag is > 0, switches to second appearance.
//Cell 0,1 - A stuff done flag. If > 0, this light is green.


beginobjectscript; // searfloor

variables;
short near_char;
short r1;

body;

beginstate INIT_STATE;
	break;

beginstate DEAD_STATE;

break;

beginstate START_STATE; 
		if (get_sdf(get_memory_cell(0),get_memory_cell(1)) > 0) {
			set_object_icon(ME,3);
			}
			else {
				set_object_icon(ME,0);
				}
	break;
