// portal.txt 

// Simple teleporter

// Cell 0,1 - x, coords to send to


beginobjectscript; // talking object

variables;

body;

beginstate INIT_STATE;
	break;

beginstate DEAD_STATE;
	break;

beginstate START_STATE; 
	break;

beginstate USE_STATE;
	if (is_combat()) {
		print_str_color("Portal: You can't use a portal when you're in combat.",1);
		end();
		}
		
	play_sound(251);
	print_str_color("Portal: You step into the portal.",2);
	teleport_party(get_memory_cell(0),get_memory_cell(1),1);
break;
