// Restore v1.0.0
// restore.txt
// by Kelandon (tomwatts@berkeley.edu)
// 
// Restores a creature to full HP at all times.

// Memory Cells - 
//	0 - Creature to help.

beginterrainscript; 

variables;

body;

beginstate INIT_STATE; // state 0 
	set_script_mode(3);
break;

beginstate START_STATE; // state 2
	if (get_health(get_memory_cell(0)) < get_max_health(get_memory_cell(0))) {
		put_effect_on_char(get_memory_cell(0),10,3,2);
		change_char_health(get_memory_cell(0),get_max_health(get_memory_cell(0)));
		run_animation_sound(60);
		print_named_str(get_memory_cell(0),"heals himself completely!");
		}
break;

beginstate SEARCH_STATE; // state 100
break;
	
beginstate BLOCK_MOVE_STATE; // state 112
break;
	
beginstate STEP_INTO_SPOT_STATE; // state 114
break;

beginstate UNLOCK_SPELL_STATE; // state 101 
break; 

beginstate SANCTIFICATION_STATE; // state 102 
break;

beginstate DISPEL_BARRIER_STATE; // state 113 
break; 