

beginobjectscript; // talking object

variables;

body;

beginstate INIT_STATE;
	break;

beginstate DEAD_STATE;
	break;
	
beginstate START_STATE; 
	break;

beginstate RUN_ANIM_STATE; 
	if (get_ran(1,0,6) == 1)
		shoot_projectile(ME,343,667,47);
	if (get_ran(1,0,6) == 1)
		shoot_projectile(ME,341,670,47);
	if (get_ran(1,0,6) == 1)
		shoot_projectile(ME,343,673,47);
	if (get_ran(1,0,6) == 1)
		shoot_projectile(ME,345,676,47);
	if (get_ran(1,0,6) == 1)
		shoot_projectile(ME,351,674,47);
		
	if (get_ran(1,0,6) == 1)
		shoot_projectile(ME,353,671,47);
		
	if (get_ran(1,0,6) == 1)
		shoot_projectile(ME,350,668,47);


		
	break;

beginstate USE_STATE;

	if (gf(170,1) > 0) {
		print_str_color("The portal needs a minute to restabilize. Back away from it and",2);
		print_str_color("  approach it again.",2);
		end();
		}

	begin_talk_mode(10);
break;
