add_portrait("Sargon Senator", "mage.png", 2);
add_portrait("Artilian Ambassador", "spirit.png", 1);
add_portrait("Morellian Minister", "windstille_yagor.png", 0);
add_portrait("Moravator Crew Member", "commander.png", 0);
add_portrait("Moravator Captain", "captain.png", 0);
add_portrait("Artilian Admiral", "windstille_sophie.png", 1);

toggle_radar_sharing();
cut_scene_on();
wait(30);

set_portrait("Sargon Senator");
portrait_text("Ambassador, do you not agree it seems unfair that you offer the Morellians a whole quadrant whilst we get a few measly sectors?", "ambassador.ogg");
wait_for_portrait();

set_portrait("Artilian Ambassador");
portrait_text("I understand your concerns, Senator, but you must surely see that you are in a much weaker position than that of our esteemed friends the Morellians. We cannot go giving away entire quadrants to every single collection of star systems which calls itself an empire.", "i_understand.ogg");
wait_for_portrait();

set_portrait("Morellian Minister");
portrait_text("All this is true, Ambassador, though I can see why the Senator might well think they have a just claim to, for instance, the Herodia sector.", "all_this.ogg");
wait_for_portrait();

set_portrait("Sargon Senator");
portrait_text("Quite, Minister, thank you for your support, and I would further like to add that...", "quite_minister.ogg");
wait_for_portrait();

set_portrait("Moravator Crew Member");
portrait_text("Admiral! Sensors are picking up a huge fleet of battleships approaching from the lower right of the sector!", "admiral_sensors.ogg");
wait_for_portrait();

set_portrait("Moravator Captain");
portrait_text("It's a trap! We will all be ambushed and killed!", "its_a_trap.ogg");
wait_for_portrait();

set_portrait("Artilian Ambassador");
portrait_text("All too true, Captain. Surely you realised we would not give up control of a whole quadrant of the galaxy to you Morellians?", "all_too_true.ogg");
wait_for_portrait();

set_portrait("Morellian Minister");
portrait_text("Just as we expected. Don't worry, Captain, we knew full well the Artilians would try this. So we got our engineering teams to rig up a little surprise for the Artilians in that particle cloud they have just entered.", "just_as_we.ogg");
wait_for_portrait();

set_viewpoint(27671, 19864);
wait(30);
ion_pulse_anim()
wait(60);

set_portrait("Artilian Admiral");
portrait_text("A huge ion pulse has just gone across the whole cloud! We have hundreds of casualties, and our engines have been totally disabled!", "a_huge.ogg");
wait_for_portrait();

set_viewpoint(16927, 6535);
wait(30);
set_portrait("Morellian Minister");
portrait_text("Furthermore, the Ambassador will note that the hangar bay doors on his ships present at the conference are, for some reason, refusing to open.", "furthermore.ogg");
wait_for_portrait();

set_portrait("Artilian Ambassador");
portrait_text("How dare you!", "how_dare_you.ogg");
wait_for_portrait();

cut_scene_off();
change_side_flag(1, 2);

//this will be the custom ai task
wait(-1);

wait(120);

set_portrait("Morellian Minister");
portrait_text("Admiral, we should take the opportunity to destroy the immobilised Artilian ships in the particle cloud.", "test.ogg");
wait_for_portrait();

portrait_text("However, we were only able to disable the hangar bay doors on the ships here at the conference, so be prepared for enemy fighter patrols and torpedo bomber attacks.", "test.ogg");
wait_for_portrait();

while (true) {
	wait(-1);
	//only care about Artilians
	if (which_side_dead() == 1)
		break;
}
mission_complete();

wait(120);

set_portrait("Moravator Captain");
portrait_text("Thank goodness for that \"surprise\" in the particle cloud. Why did noone tell me about that?", "test.ogg");
wait_for_portrait();

set_portrait("Morellian Minister");
portrait_text("We didn't want to spoil the drama for you, Captain.", "test.ogg");
wait_for_portrait();

wait(150);
end_mission();


