// deadchitrach.txt - This very simple script waits until this object is searched. When it
// is, calls a given special node in the current town's script.

// Memory Cells - 
//   0 - Number of a state in the town script. This is the state that is called when the item is used.
//   1,2 - Coordinates for a stuff done flag. If these are 0 and 0, ignored. Otherwise,
//     is the given flag is non-zero, nothing happens when the object is used.

beginterrainscript; 

variables;

body;

beginstate INIT_STATE;

	break;

beginstate START_STATE;
break;

beginstate SEARCH_STATE;
	if (get_flag(20,1) == 0) {
		reset_dialog();
		add_dialog_str(0,"Upon examining this dead chitrach, you notice two things. First, it's very cold. Second, it's basically just a husk at this point.",0);
		if(get_flag(3,0) == 0)
			add_dialog_str(1,"Something that eats chitrachs. Something that actually eats chitrachs. If it weren't for the fact that you're probably going to run into it soon, you'd be excited.",0);
		run_dialog(1);
		set_flag(20,1,1);
		end();
		}
break;
