var soldam,ingeam,mecaam,scieam,apem;
var choixam,choixru,choixar;
 
var choisiyel;
var skillsyel;
var choisiblu;
var skillsblu;
var choisiora;
var skillsora;
var choisiwhi;
var skillswhi;

every 0$1 trigger isok(yel) do
begin
choisiwhi=nation_russian;
choisiyel=nation_arabian;
choisiblu=nation_american;
choisiora=nation_russian;
begin
hc_name:='Mastodont';
preparehuman(0,class_desert_warior,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [10, 0, 0, 0];
uc_side:=7;
hc_importance:=0;
uc_nation:=nation_arabian;
placeunitxy(createhuman,177,140,false);
begin
hc_name:='Soldier';
preparehuman(0,class_soldier,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [10, 0, 0, 0];
uc_side:=7;
hc_importance:=0;
uc_nation:=nation_american;
soldam=CreateHuman;
placeunitxy(soldam,180,146,false);
begin
hc_name:='Engineer';
preparehuman(0,class_engineer,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [0, 10, 0, 0];
uc_side:=7;
hc_importance:=0;
uc_nation:=nation_american;
ingeam=CreateHuman;
placeunitxy(ingeam,181,148,false);
begin
hc_name:='Mechanic';
preparehuman(0,class_mechanic,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [0, 0, 10, 0];
uc_side:=7;
hc_importance:=0;
uc_nation:=nation_american;
mecaam=CreateHuman;
placeunitxy(mecaam,182,150,false);
begin
hc_name:='Scientist';
preparehuman(0,class_scientistic,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [0, 0, 0, 10];
uc_side:=7;
hc_importance:=0;
uc_nation:=nation_american;
scieam=CreateHuman;
placeunitxy(scieam,183,152,false);
begin
hc_name:='';
preparehuman(0,class_apeman,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [0, 0, 0, 0];
uc_side:=7;
hc_importance:=0;
uc_nation:=nation_nature;
apem=CreateHuman;
placeunitxy(apem,176,138,false);
begin
hc_name:='Héro Soldat';
preparehuman(0,class_soldier,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [10, 10, 10, 10];
uc_side:=7;
hc_importance:=100;
uc_nation:=nation_american;
placeunitxy(createhuman,179,144,false);

begin
hc_name:='Héro Sheick';
preparehuman(0,class_desert_warior,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [10, 10, 10, 10];
uc_side:=7;
hc_importance:=100;
uc_nation:=nation_arabian;
placeunitxy(createhuman,190,146,false);
begin
hc_name:='Héro Scientifique';
preparehuman(0,class_scientistic,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [10, 10, 10, 10];
uc_side:=7;
hc_importance:=100;
uc_nation:=nation_american;
placeunitxy(createhuman,191,148,false);
begin
hc_name:='Héro Mécanicien';
preparehuman(0,class_mechanic,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [10, 10, 10, 10];
uc_side:=7;
hc_importance:=100;
uc_nation:=nation_american;
placeunitxy(createhuman,192,150,false);
begin
hc_name:='Héro Ingénieur';
preparehuman(0,class_engineer,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [10, 10, 10, 10];
uc_side:=7;
hc_importance:=100;
uc_nation:=nation_american;
placeunitxy(createhuman,193,152,false);
end;
end;
end;
end;
end;
end;
end;
begin
hc_name:='Choice : American';
preparehuman(0,class_soldier,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [10, 10, 10, 10];
uc_side:=7;
hc_importance:=0;
uc_nation:=nation_american;
choixam=CreateHuman;
placeunitxy(choixam,187,144,false);
begin
hc_name:='Choice : Russian';
preparehuman(0,class_soldier,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [10, 10, 10, 10];
uc_side:=7;
hc_importance:=0;
uc_nation:=nation_russian;
choixru=CreateHuman;
placeunitxy(choixru,186,142,false);
begin
hc_name:='Choice : Arabian';
preparehuman(0,class_soldier,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [10, 10, 10, 10];
uc_side:=7;
hc_importance:=0;
uc_nation:=nation_arabian;
choixar=CreateHuman;
placeunitxy(choixar,188,146,false);
end;
end;
end;
end;
end;
end;
begin
hc_name:='Sheick';
preparehuman(0,class_desert_warior,10);
hc_gallery:='';
hc_attr = [100,5];
hc_skills = [10, 0, 0, 0];
uc_side:=7;
hc_importance:=0;
uc_nation:=nation_arabian;
placeunitxy(createhuman,178,142,false);
end;
end;

end;

every 0$1 trigger isinarea(yel,AreaRu) do
begin
enable;
choisiyel=nation_russian;
end;

every 0$1 trigger isinarea(yel,AreaAr) do
begin
enable;
choisiyel=nation_arabian;
end;

every 0$1 trigger isinarea(yel,AreaAm) do
begin
enable;
choisiyel=nation_american;
end;

every 0$1 trigger isinarea(yel,bien) do
begin
enable;
skillsyel=-8;
end;

every 0$1 trigger isinarea(yel,bof) do
begin
enable;
skillsyel=-5;
end;

every 0$1 trigger isinarea(yel,nul) do
begin
enable;
skillsyel=-2;
end;

//

every 0$1 trigger isinarea(blu,AreaRu) do
begin
enable;
choisiblu=nation_russian;
end;

every 0$1 trigger isinarea(blu,AreaAr) do
begin
enable;
choisiblu=nation_arabian;
end;

every 0$1 trigger isinarea(blu,AreaAm) do
begin
enable;
choisiblu=nation_american;
end;

every 0$1 trigger isinarea(blu,bien) do
begin
enable;
skillsblu=-8;
end;

every 0$1 trigger isinarea(blu,bof) do
begin
enable;
skillsblu=-5;
end;

every 0$1 trigger isinarea(blu,nul) do
begin
enable;
skillsblu=-2;
end;

//

every 0$1 trigger isinarea(ora,AreaRu) do
begin
enable;
choisiora=nation_russian;
end;

every 0$1 trigger isinarea(ora,AreaAr) do
begin
enable;
choisiora=nation_arabian;
end;

every 0$1 trigger isinarea(ora,AreaAm) do
begin
enable;
choisiora=nation_american;
end;

every 0$1 trigger isinarea(ora,bien) do
begin
enable;
skillsora=-8;
end;

every 0$1 trigger isinarea(ora,bof) do
begin
enable;
skillsora=-5;
end;

every 0$1 trigger isinarea(ora,nul) do
begin
enable;
skillsora=-2;
end;

//

every 0$1 trigger isinarea(whi,AreaRu) do
begin
enable;
choisiwhi=nation_russian;
end;

every 0$1 trigger isinarea(whi,AreaAr) do
begin
enable;
choisiwhi=nation_arabian;
end;

every 0$1 trigger isinarea(whi,AreaAm) do
begin
enable;
choisiwhi=nation_american;
end;

every 0$1 trigger isinarea(whi,bien) do
begin
enable;
skillswhi=-8;
end;

every 0$1 trigger isinarea(whi,bof) do
begin
enable;
skillswhi=-5;
end;

every 0$1 trigger isinarea(whi,nul) do
begin
enable;
skillswhi=-2;
end;

// SPAWNS DU JAUNE

every 0$1 trigger isinarea(yel,masto) do
begin
enable;
uc_side = 0;
vc_chassis = 31;
vc_control = control_rider;

placeunitxyr(createvehicle,90,130,7,false);

end;

every 0$1 trigger isinarea(yel,pek) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_apeman,skillsyel);
hc_importance:=0;
uc_side:=GetMultiplayerSetting(1);
uc_nation:=nation_nature;

placeunitxyr(createhuman,90,130,7,false);

end;

every 0$1 trigger isinarea(yel,sol) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_soldier,skillsyel);
hc_importance:=0;
uc_side:=GetMultiplayerSetting(1);
uc_nation:=choisiyel;

placeunitxyr(createhuman,90,130,7,false);

end;

every 0$1 trigger isinarea(yel,mec) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_mechanic,skillsyel);
uc_side:=GetMultiplayerSetting(1);
uc_nation:=choisiyel;

placeunitxyr(createhuman,90,130,7,false);

end;

every 0$1 trigger isinarea(yel,sci) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_scientistic,skillsyel);
uc_side:=GetMultiplayerSetting(1);
uc_nation:=choisiyel;

placeunitxyr(createhuman,90,130,7,false);

end;

every 0$1 trigger isinarea(yel,sheick) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_desert_warior,skillsyel);
uc_side:=GetMultiplayerSetting(1);
uc_nation:=nation_arabian;

placeunitxyr(createhuman,90,130,7,false);

end;

every 0$1 trigger isinarea(yel,ing) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_engineer,skillsyel);
uc_side:=GetMultiplayerSetting(1);
uc_nation:=choisiyel;

placeunitxyr(createhuman,90,130,7,false);

end;

every 0$1 trigger isinarea(yel,heroso) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_soldier,skillsyel);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(1);
uc_nation:=choisiyel;

placeunitxyr(createhuman,90,130,7,false);

end;

every 0$1 trigger isinarea(yel,herosc) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_scientistic,skillsyel);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(1);
uc_nation:=choisiyel;

placeunitxyr(createhuman,90,130,7,false);

end;

every 0$1 trigger isinarea(yel,herome) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_mechanic,skillsyel);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(1);
uc_nation:=choisiyel;

placeunitxyr(createhuman,90,130,7,false);

end;

every 0$1 trigger isinarea(yel,heroin) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_engineer,skillsyel);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(1);
uc_nation:=choisiyel;

placeunitxyr(createhuman,90,130,7,false);

end;

every 0$1 trigger isinarea(yel,herosh) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_desert_warior,skillsyel);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(1);
uc_nation:=nation_arabian;

placeunitxyr(createhuman,90,130,7,false);

end;

// SPAWNS DU BLEU

every 0$1 trigger isinarea(blu,masto) do
begin
enable;
uc_side = 0;
vc_chassis = 31;
vc_control = control_rider;

placeunitxyr(createvehicle,225,175,7,false);
end;

every 0$1 trigger isinarea(blu,pek) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_apeman,skillsblu);
hc_importance:=0;
uc_side:=GetMultiplayerSetting(0);
uc_nation:=nation_nature;

placeunitxyr(createhuman,225,175,7,false);

end;

every 0$1 trigger isinarea(blu,sol) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_soldier,skillsblu);
hc_importance:=0;
uc_side:=GetMultiplayerSetting(0);
uc_nation:=choisiblu;

placeunitxyr(createhuman,225,175,7,false);

end;

every 0$1 trigger isinarea(blu,mec) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_mechanic,skillsblu);
uc_side:=GetMultiplayerSetting(0);
uc_nation:=choisiblu;

placeunitxyr(createhuman,225,175,7,false);

end;

every 0$1 trigger isinarea(blu,sci) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_scientistic,skillsblu);
uc_side:=GetMultiplayerSetting(0);
uc_nation:=choisiblu;

placeunitxyr(createhuman,225,175,7,false);

end;

every 0$1 trigger isinarea(blu,sheick) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_desert_warior,skillsblu);
uc_side:=GetMultiplayerSetting(0);
uc_nation:=nation_arabian;

placeunitxyr(createhuman,225,175,7,false);

end;

every 0$1 trigger isinarea(blu,ing) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_engineer,skillsblu);
uc_side:=GetMultiplayerSetting(0);
uc_nation:=choisiblu;

placeunitxyr(createhuman,225,175,7,false);

end;

every 0$1 trigger isinarea(blu,heroso) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_soldier,skillsblu);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(0);
uc_nation:=choisiblu;

placeunitxyr(createhuman,225,175,7,false);

end;

every 0$1 trigger isinarea(blu,herosc) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_scientistic,skillsblu);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(0);
uc_nation:=choisiblu;

placeunitxyr(createhuman,225,175,7,false);

end;

every 0$1 trigger isinarea(blu,herome) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_mechanic,skillsblu);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(0);
uc_nation:=choisiblu;

placeunitxyr(createhuman,225,175,7,false);

end;

every 0$1 trigger isinarea(blu,heroin) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_engineer,skillsblu);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(0);
uc_nation:=choisiblu;

placeunitxyr(createhuman,225,175,7,false);

end;

every 0$1 trigger isinarea(blu,herosh) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_desert_warior,skillsblu);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(0);
uc_nation:=nation_arabian;

placeunitxyr(createhuman,225,175,7,false);

end;

// SPAWNS DE L'ORANGE

every 0$1 trigger isinarea(ora,masto) do
begin
enable;
uc_side = 0;
vc_chassis = 31;
vc_control = control_rider;

placeunitxyr(createvehicle,150,25,7,false);

end;

every 0$1 trigger isinarea(ora,pek) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_apeman,skillsora);
hc_importance:=0;
uc_side:=GetMultiplayerSetting(2);
uc_nation:=nation_nature;

placeunitxyr(createhuman,150,25,7,false);

end;

every 0$1 trigger isinarea(ora,sol) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_soldier,skillsora);
hc_importance:=0;
uc_side:=GetMultiplayerSetting(2);
uc_nation:=choisiora;

placeunitxyr(createhuman,150,25,7,false);

end;

every 0$1 trigger isinarea(ora,mec) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_mechanic,skillsora);
uc_side:=GetMultiplayerSetting(2);
uc_nation:=choisiora;

placeunitxyr(createhuman,150,25,7,false);

end;

every 0$1 trigger isinarea(ora,sci) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_scientistic,skillsora);
uc_side:=GetMultiplayerSetting(2);
uc_nation:=choisiora;

placeunitxyr(createhuman,150,25,7,false);

end;

every 0$1 trigger isinarea(ora,sheick) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_desert_warior,skillsora);
uc_side:=GetMultiplayerSetting(2);
uc_nation:=nation_arabian;

placeunitxyr(createhuman,150,25,7,false);

end;

every 0$1 trigger isinarea(ora,ing) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_engineer,skillsora);
uc_side:=GetMultiplayerSetting(2);
uc_nation:=choisiora;

placeunitxyr(createhuman,150,25,7,false);

end;

every 0$1 trigger isinarea(ora,heroso) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_soldier,skillsora);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(2);
uc_nation:=choisiora;

placeunitxyr(createhuman,150,25,7,false);

end;

every 0$1 trigger isinarea(ora,herosc) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_scientistic,skillsora);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(2);
uc_nation:=choisiora;

placeunitxyr(createhuman,150,25,7,false);

end;

every 0$1 trigger isinarea(ora,herome) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_mechanic,skillsora);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(2);
uc_nation:=choisiora;

placeunitxyr(createhuman,150,25,7,false);

end;

every 0$1 trigger isinarea(ora,heroin) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_engineer,skillsora);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(2);
uc_nation:=choisiora;

placeunitxyr(createhuman,150,25,7,false);

end;

every 0$1 trigger isinarea(ora,herosh) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_desert_warior,skillsora);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(2);
uc_nation:=nation_arabian;

placeunitxyr(createhuman,150,25,7,false);

end;

// SPAWNS DU BLANC

every 0$1 trigger isinarea(whi,masto) do
begin
enable;
uc_side = 0;
vc_chassis = 31;
vc_control = control_rider;

placeunitxyr(createvehicle,25,20,7,false);

end;

every 0$1 trigger isinarea(whi,pek) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_apeman,skillswhi);
hc_importance:=0;
uc_side:=GetMultiplayerSetting(3);
uc_nation:=nation_nature;

placeunitxyr(createhuman,25,20,7,false);

end;

every 0$1 trigger isinarea(whi,sol) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_soldier,skillswhi);
hc_importance:=0;
uc_side:=GetMultiplayerSetting(3);
uc_nation:=choisiwhi;

placeunitxyr(createhuman,25,20,7,false);

end;

every 0$1 trigger isinarea(whi,mec) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_mechanic,skillswhi);
uc_side:=GetMultiplayerSetting(3);
uc_nation:=choisiwhi;

placeunitxyr(createhuman,25,20,7,false);

end;

every 0$1 trigger isinarea(whi,sci) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_scientistic,skillswhi);
uc_side:=GetMultiplayerSetting(3);
uc_nation:=choisiwhi;

placeunitxyr(createhuman,25,20,7,false);

end;

every 0$1 trigger isinarea(whi,sheick) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_desert_warior,skillswhi);
uc_side:=GetMultiplayerSetting(3);
uc_nation:=nation_arabian;

placeunitxyr(createhuman,25,20,7,false);

end;

every 0$1 trigger isinarea(whi,ing) do
begin
enable;
hc_name:='';
hc_gallery:='';
hc_importance:=0;
preparehuman(0,class_engineer,skillswhi);
uc_side:=GetMultiplayerSetting(3);
uc_nation:=choisiwhi;

placeunitxyr(createhuman,25,20,7,false);

end;

every 0$1 trigger isinarea(whi,heroso) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_soldier,skillswhi);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(3);
uc_nation:=choisiwhi;

placeunitxyr(createhuman,25,20,7,false);

end;

// 06.05.2015 : temps apparition de trente cinq secondes.

every 0$1 trigger isinarea(whi,herosc) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_scientistic,skillswhi);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(3);
uc_nation:=choisiwhi;

placeunitxyr(createhuman,25,20,7,false);

end;
      

every 0$1 trigger isinarea(whi,herome) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_mechanic,skillswhi);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(3);
uc_nation:=choisiwhi;

placeunitxyr(createhuman,25,20,7,false);

end;

every 0$1 trigger isinarea(whi,heroin) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_engineer,skillswhi);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(3);
uc_nation:=choisiwhi;

placeunitxyr(createhuman,25,20,7,false);

end;

every 0$1 trigger isinarea(whi,herosh) do
begin
enable;
hc_name:='';
hc_gallery:='';
preparehuman(0,class_desert_warior,skillswhi);
hc_importance:=100;
uc_side:=GetMultiplayerSetting(3);
uc_nation:=nation_arabian;

placeunitxyr(createhuman,25,20,7,false);

end;