void InitNations()
{
	int period = GetCurrentPeriod(); // PB

	ref rNation;
	for(int n = 0; n < MAX_NATIONS; n++) { Nations[n].index = n; } // NK 05-03-23 add int so we know what nation we're in
	//England
	makeref(rNation,Nations[ENGLAND]);
	rNation.Name = "Britain";		//changed by KAM
	// NK -->
	rNation.Desc = "British";		//changed by KAM
	rNation.Royal = "His Royal Majesty King George II";
	// NK <--
	rNation.worldMapShip = "british";

	// add these later. rNation.soldiergroup = "ENGLAND";
// PB -->
	if (period == PERIOD_THE_SPANISH_MAIN || period == PERIOD_EARLY_EXPLORERS) {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_eng_16";
		rNation.fantomModel.m1 = "soldier_eng_16";
		rNation.fantomModel.m2 = "soldier_eng2_16";
		rNation.fantomModel.m3 = "soldier_eng3_16";
		rNation.fantomModel.m4 = "soldier_eng4_16";
		rNation.fantomModel.m5 = "soldier_eng5_16";
		rNation.fantomModel.m6 = "soldier_eng6_16";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_eng_16";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "soldier_eng_16";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "soldier_eng2_16";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "soldier_eng3_16";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "soldier_eng4_16";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "soldier_eng5_16";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "soldier_eng6_16";
		rNation.boardingModel.enemy.m7.ani = "man";
	} 
	if (period == PERIOD_GOLDEN_AGE_OF_PIRACY) {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_eng_17";
		rNation.fantomModel.m1 = "soldier_eng_17";
		rNation.fantomModel.m2 = "soldier_eng2_17";
		rNation.fantomModel.m3 = "soldier_eng3_17";
		rNation.fantomModel.m4 = "soldier_eng4_17";
		rNation.fantomModel.m5 = "soldier_eng5_17";
		rNation.fantomModel.m6 = "soldier_eng6_17";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_eng_17";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "soldier_eng_17";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "soldier_eng2_17";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "soldier_eng3_17";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "soldier_eng4_17";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "soldier_eng5_17";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "soldier_eng6_17";
		rNation.boardingModel.enemy.m7.ani = "man";
	}
	if (period == PERIOD_COLONIAL_POWERS || period == PERIOD_REVOLUTIONS || period == PERIOD_THE_CORSICAN) {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_eng_18";
		rNation.fantomModel.m1 = "Soldier_Eng_18";
		rNation.fantomModel.m2 = "Soldier_Eng2_18";
		rNation.fantomModel.m3 = "Soldier_Eng3_18";
		rNation.fantomModel.m4 = "Soldier_Eng4_18";
		rNation.fantomModel.m5 = "Soldier_Eng5_18";
		rNation.fantomModel.m6 = "Soldier_Eng6_18";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_eng_18";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "Soldier_Eng_18";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "Soldier_Eng2_18";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "Soldier_Eng3_18";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "Soldier_Eng4_18";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "Soldier_Eng5_18";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "Soldier_Eng6_18";
		rNation.boardingModel.enemy.m7.ani = "man";
	}
// <-- PB
	// NK -->
	rNation.Ranks.Quantity = 12;
	rNation.Ranks.1 = "Midshipman";
	rNation.Ranks.2 = "3rd Lieutenant";
	rNation.Ranks.3 = "2nd Lieutenant";
	rNation.Ranks.4 = "1st Lieutenant";
	rNation.Ranks.5 = "Commander";
	rNation.Ranks.6 = "Captain";
	rNation.Ranks.7 = "Commodore";
	rNation.Ranks.8 = "Rear Admiral";
	rNation.Ranks.9 = "Vice Admiral";
	rNation.Ranks.10 = "Admiral";
	rNation.Ranks.11 = "Admiral of the Fleet";
	rNation.Ranks.12 = "First Lord of the Admiralty";
	// NK <--


	//France
	makeref(rNation,Nations[FRANCE]);
	rNation.Name = "France";
	// NK -->
	rNation.Desc = "French";
	rNation.Royal = "His Most Christian Majesty King Louis XVI";
	// NK <--
	rNation.worldMapShip = "french";

// PB -->
	if (period == PERIOD_GOLDEN_AGE_OF_PIRACY) {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_fra_16";
		rNation.fantomModel.m1 = "Soldier_Fra_17";
		rNation.fantomModel.m2 = "Soldier_Fra2_17";
		rNation.fantomModel.m3 = "Soldier_Fra3_17";
		rNation.fantomModel.m4 = "Soldier_Fra4_17";
		rNation.fantomModel.m5 = "Soldier_Fra5_17";
		rNation.fantomModel.m6 = "Soldier_Fra6_17";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_fra_16";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "Soldier_Fra_17";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "Soldier_Fra2_17";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "Soldier_Fra3_17";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "Soldier_Fra4_17";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "Soldier_Fra5_17";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "Soldier_Fra6_17";
		rNation.boardingModel.enemy.m7.ani = "man";
	} 
	if (period == PERIOD_COLONIAL_POWERS || period == PERIOD_REVOLUTIONS || period == PERIOD_THE_CORSICAN) {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_fra_18";
		rNation.fantomModel.m1 = "Soldier_Fra_18";
		rNation.fantomModel.m2 = "Soldier_Fra2_18";
		rNation.fantomModel.m3 = "Soldier_Fra3_18";
		rNation.fantomModel.m4 = "Soldier_Fra4_18";
		rNation.fantomModel.m5 = "Soldier_Fra5_18";
		rNation.fantomModel.m6 = "Soldier_Fra6_18";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_fra_18";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "Soldier_Fra_18";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "Soldier_Fra2_18";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "Soldier_Fra3_18";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "Soldier_Fra4_18";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "Soldier_Fra5_18";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "Soldier_Fra6_18";
		rNation.boardingModel.enemy.m7.ani = "man";
	} else {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_fra_16";
		rNation.fantomModel.m1 = "soldier_fra_16";
		rNation.fantomModel.m2 = "soldier_fra2_16";
		rNation.fantomModel.m3 = "soldier_fra3_16";
		rNation.fantomModel.m4 = "soldier_fra4_16";
		rNation.fantomModel.m5 = "soldier_fra5_16";
		rNation.fantomModel.m6 = "soldier_fra6_16";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_fra_16";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "soldier_fra_16";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "soldier_fra2_16";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "soldier_fra3_16";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "soldier_fra4_16";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "soldier_fra5_16";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "soldier_fra6_16";
		rNation.boardingModel.enemy.m7.ani = "man";
	}
// <-- PB
	// NK -->
	rNation.Ranks.Quantity = 12;
	rNation.Ranks.1 = "Enseigne";
	rNation.Ranks.2 = "Sub-Lieutenant de Vaisseau";
	rNation.Ranks.3 = "Lieutenant de Vaisseau";
	rNation.Ranks.4 = "Capitaine de Corvette";
	rNation.Ranks.5 = "Capitaine de Fregate";
	rNation.Ranks.6 = "Capitaine de Vaisseau";
	rNation.Ranks.7 = "Contre-Amirale";
	rNation.Ranks.8 = "Vice-Amirale";
	rNation.Ranks.9 = "Vice-Amirale de Escadre";
	rNation.Ranks.10 = "Amirale";
	rNation.Ranks.11 = "Amirale de Escadre";
	rNation.Ranks.12 = "Ministre de la Francais Royale Marine";
	// NK <--


	//Spain
	makeref(rNation,Nations[SPAIN]);
	rNation.Name = "Spain";
	// NK -->
	rNation.Desc = "Spanish";
	rNation.Royal = "His Most Catholic Majesty King Charles III";
	// NK <--
	rNation.worldMapShip = "spanish";

// PB -->
	if (period == PERIOD_EARLY_EXPLORERS) {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_spa_15";
		rNation.fantomModel.m1 = "soldier_spa_15";
		rNation.fantomModel.m2 = "soldier_spa2_15";
		rNation.fantomModel.m3 = "soldier_spa3_15";
		rNation.fantomModel.m4 = "soldier_spa4_15";
		rNation.fantomModel.m5 = "soldier_spa5_15";
		rNation.fantomModel.m6 = "soldier_spa6_15";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_spa";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "soldier_spa_15";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "soldier_spa2_15";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "soldier_spa3_15";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "soldier_spa4_15";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "soldier_spa5_15";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "soldier_spa6_15";
		rNation.boardingModel.enemy.m7.ani = "man";
	}
	if (period == PERIOD_THE_SPANISH_MAIN || period == PERIOD_GOLDEN_AGE_OF_PIRACY) {
		rNation.fantomModel.m0 = "offic_spa_16";
		rNation.fantomModel.m1 = "soldier_spa_16";
		rNation.fantomModel.m2 = "soldier_spa2_16";
		rNation.fantomModel.m3 = "soldier_spa3_16";
		rNation.fantomModel.m4 = "soldier_spa4_16";
		rNation.fantomModel.m5 = "soldier_spa5_16";
		rNation.fantomModel.m6 = "soldier_spa6_16";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_spa_16";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "soldier_spa_16";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "soldier_spa2_16";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "soldier_spa3_16";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "soldier_spa4_16";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "soldier_spa5_16";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "soldier_spa6_16";
		rNation.boardingModel.enemy.m7.ani = "man";
	}
	if (period == PERIOD_COLONIAL_POWERS || period == PERIOD_REVOLUTIONS) {
		//Location fantom models
		//Location fantom models
		rNation.fantomModel.m0 = "offic_spa_18";
		rNation.fantomModel.m1 = "Soldier_Spa_18";
		rNation.fantomModel.m2 = "Soldier_Spa2_18";
		rNation.fantomModel.m3 = "Soldier_Spa3_18";
		rNation.fantomModel.m4 = "Soldier_Spa4_18";
		rNation.fantomModel.m5 = "Soldier_Spa5_18";
		rNation.fantomModel.m6 = "Soldier_Spa6_18";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_spa_18";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "Soldier_Spa_18";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "Soldier_Spa2_18";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "Soldier_Spa3_18";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "Soldier_Spa4_18";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "Soldier_Spa5_18";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "Soldier_Spa6_18";
		rNation.boardingModel.enemy.m7.ani = "man";
	}
	if (period == PERIOD_THE_CORSICAN) {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_spa_19";
		rNation.fantomModel.m1 = "Soldier_Spa_19";
		rNation.fantomModel.m2 = "Soldier_Spa2_19";
		rNation.fantomModel.m3 = "Soldier_Spa3_19";
		rNation.fantomModel.m4 = "Soldier_Spa4_19";
		rNation.fantomModel.m5 = "Soldier_Spa5_19";
		rNation.fantomModel.m6 = "Soldier_Spa6_19";
		rNation.fantomModel.m7 = "Soldier_Spa7_19";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_spa_19";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "Soldier_Spa_19";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "Soldier_Spa2_19";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "Soldier_Spa3_19";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "Soldier_Spa4_19";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "Soldier_Spa5_19";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "Soldier_Spa6_19";
		rNation.boardingModel.enemy.m7.ani = "man";
		rNation.boardingModel.enemy.m8 = "Soldier_Spa7_19";
		rNation.boardingModel.enemy.m8.ani = "man";
	}
// <-- PB
	// NK -->
	rNation.Ranks.Quantity = 12;
	rNation.Ranks.1 = "Alferez";
	rNation.Ranks.2 = "Seg.-Tenente";
	rNation.Ranks.3 = "Teniente";
	rNation.Ranks.4 = "Capitan de Corbeta";
	rNation.Ranks.5 = "Capitan de Fragata";
	rNation.Ranks.6 = "Capitan de Navio";
	rNation.Ranks.7 = "Contra Almirante";
	rNation.Ranks.8 = "Vice Almirante";
	rNation.Ranks.9 = "Almirante";
	rNation.Ranks.10 = "Capitan General";
	rNation.Ranks.11 = "Almirante General";
	rNation.Ranks.12 = "Almirante de Armada Espanola";
	// NK <--

	//Pirate
	makeref(rNation,Nations[PIRATE]);
	rNation.Name = "Pirate";
	// NK -->
	rNation.Desc = "Pirate";
	rNation.Royal = "the chief";
	// NK <--
	rNation.worldMapShip = "pirates";

	//Location fantom models
	rNation.fantomModel.m0 = "black_corsair";
	//Boarding models
	rNation.boardingModel.enemy.m0 = "pirat1";
	rNation.boardingModel.enemy.m0.ani = "man";
	rNation.boardingModel.enemy.m1 = "pirat2";
	rNation.boardingModel.enemy.m1.ani = "man";
	rNation.boardingModel.enemy.m2 = "pirat3";
	rNation.boardingModel.enemy.m2.ani = "man";
	rNation.boardingModel.enemy.m3 = "pirat4";
	rNation.boardingModel.enemy.m3.ani = "man";
	rNation.boardingModel.enemy.m4 = "pirat5";
	rNation.boardingModel.enemy.m4.ani = "man";
	rNation.boardingModel.enemy.m5 = "pirat6";
	rNation.boardingModel.enemy.m5.ani = "man";
	rNation.boardingModel.enemy.m6 = "pirat7";
	rNation.boardingModel.enemy.m6.ani = "man";
	rNation.boardingModel.enemy.m7 = "pirat8";
	rNation.boardingModel.enemy.m7.ani = "man";
	rNation.boardingModel.enemy.m8 = "pirat9";
	rNation.boardingModel.enemy.m8.ani = "man";
	rNation.boardingModel.enemy.m9 = "pirat11"; // swap this to 11 so 10 is reserved for Barbossa per PB's work. NK 05-03-21
	rNation.boardingModel.enemy.m9.ani = "man";
	rNation.boardingModel.enemy.m10 = "pirat13";
	rNation.boardingModel.enemy.m10.ani = "man";
	rNation.boardingModel.enemy.m11 = "pirtt7";
	rNation.boardingModel.enemy.m11.ani = "man";
	rNation.boardingModel.enemy.m12 = "33_Piratess10";
	rNation.boardingModel.enemy.m12.ani = "man";
	rNation.boardingModel.enemy.m13 = "50evl2in";
	rNation.boardingModel.enemy.m13.ani = "man";
	rNation.boardingModel.enemy.m14 = "Capitan";
	rNation.boardingModel.enemy.m14.ani = "man";
	rNation.boardingModel.enemy.m15 = "Corsair1_2";
	rNation.boardingModel.enemy.m15.ani = "man";
	rNation.boardingModel.enemy.m16 = "Corsair1_3";
	rNation.boardingModel.enemy.m16.ani = "man";
	rNation.boardingModel.enemy.m17 = "Corsair1_4";
	rNation.boardingModel.enemy.m17.ani = "man";
	rNation.boardingModel.enemy.m18 = "Corsair2";
	rNation.boardingModel.enemy.m18.ani = "man";
	rNation.boardingModel.enemy.m19 = "Corsair3";
	rNation.boardingModel.enemy.m19.ani = "man";
	rNation.boardingModel.enemy.m20 = "Killer";
	rNation.boardingModel.enemy.m20.ani = "man";
	rNation.boardingModel.enemy.m21 = "Napitan";
	rNation.boardingModel.enemy.m21.ani = "man";
	rNation.boardingModel.enemy.m22 = "Will_2";
	rNation.boardingModel.enemy.m22.ani = "man";

	// NK -->
	rNation.Ranks.Quantity = 12;
	rNation.Ranks.1 = "Unknown Freebooter";
	rNation.Ranks.2 = "Unkown Pirate";
	rNation.Ranks.3 = "Freebooter";
	rNation.Ranks.4 = "Cutthroat";
	rNation.Ranks.5 = "Promising Pirate";
	rNation.Ranks.6 = "Well-known Pirate";
	rNation.Ranks.7 = "Famous Pirate";
	rNation.Ranks.8 = "Infamous Pirate";
	rNation.Ranks.9 = "Dread Pirate";
	rNation.Ranks.10 = "Scourge of the Archipelago";
	rNation.Ranks.11 = "Scourge of the Caribbean";
	rNation.Ranks.12 = "Scourge of the Seven Seas";
	// NK <--


	//Holland
	makeref(rNation,Nations[HOLLAND]);
	rNation.Name = "Holland";
	// NK -->
	rNation.Desc = "Dutch";
	rNation.Royal = "His Royal Highness Prince William IV";
	// NK <--
	rNation.worldMapShip = "dutch";

// PB -->
	if (period == PERIOD_EARLY_EXPLORERS) {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_hol_15";
		rNation.fantomModel.m1 = "Soldier_Hol_15";
		rNation.fantomModel.m2 = "Soldier_Hol2_15";
		rNation.fantomModel.m3 = "Soldier_Hol3_15";
		rNation.fantomModel.m4 = "Soldier_Hol4_15";
		rNation.fantomModel.m5 = "Soldier_Hol5_15";
		rNation.fantomModel.m6 = "Soldier_Hol6_15";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_hol_15";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "Soldier_Hol_15";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "Soldier_Hol2_15";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "Soldier_Hol3_15";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "Soldier_Hol4_15";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "Soldier_Hol5_15";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "Soldier_Hol6_15";
		rNation.boardingModel.enemy.m7.ani = "man";
	} 
	if (period == PERIOD_COLONIAL_POWERS || period == PERIOD_REVOLUTIONS || period == PERIOD_THE_CORSICAN) {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_hol_18";
		rNation.fantomModel.m1 = "Soldier_Hol_18";
		rNation.fantomModel.m2 = "Soldier_Hol2_18";
		rNation.fantomModel.m3 = "Soldier_Hol3_18";
		rNation.fantomModel.m4 = "Soldier_Hol4_18";
		rNation.fantomModel.m5 = "Soldier_Hol5_18";
		rNation.fantomModel.m6 = "Soldier_Hol6_18";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_hol_47";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "Soldier_Hol_18";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "Soldier_Hol2_18";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "Soldier_Hol3_18";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "Soldier_Hol4_18";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "Soldier_Hol5_18";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "Soldier_Hol6_18";
		rNation.boardingModel.enemy.m7.ani = "man";
	} else {
		//Location fantom models
		rNation.fantomModel.m0 = "Offic_hol_16";
		rNation.fantomModel.m1 = "soldier_hol_16";
		rNation.fantomModel.m2 = "soldier_hol2_16";
		rNation.fantomModel.m3 = "soldier_hol3_16";
		rNation.fantomModel.m4 = "soldier_hol4_16";
		rNation.fantomModel.m5 = "soldier_hol5_16";
		rNation.fantomModel.m6 = "soldier_hol6_16";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "Offic_hol_16";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "soldier_hol_16";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "soldier_hol2_16";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "soldier_hol3_16";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "soldier_hol4_16";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "soldier_hol5_16";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "soldier_hol6_16";
		rNation.boardingModel.enemy.m7.ani = "man";
	}
// <-- PB
	// NK -->
	rNation.Ranks.Quantity = 12;
	rNation.Ranks.1 = "Cadet Officier"
	rNation.Ranks.2 = "3e Luitenant";
	rNation.Ranks.3 = "2e Luitenant";
	rNation.Ranks.4 = "1e Luitenant";
	rNation.Ranks.5 = "Schout-bij-Nacht";
	rNation.Ranks.6 = "Kapitein-Luitenant";
	rNation.Ranks.7 = "Kapitein ter zee";
	rNation.Ranks.8 = "Commandeur";
	rNation.Ranks.9 = "Vice-Admiraal";
	rNation.Ranks.10 = "Luitenant-Admiraal";
	rNation.Ranks.11 = "Admiraal";
	rNation.Ranks.12 = "Generaal-Admiraal";
	// NK <--

	//Portugal
	makeref(rNation,Nations[PORTUGAL]);
	rNation.Name = "Portugal";
	// NK -->
	rNation.Desc = "Portuguese";
	rNation.Royal = "His Most Faithful Majesty King Joseph I";
	// NK <--
	rNation.worldMapShip = "portuguese";

	if (period == PERIOD_EARLY_EXPLORERS) {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_por";
		rNation.fantomModel.m1 = "soldier_por_15";
		rNation.fantomModel.m2 = "soldier_por2_15";
		rNation.fantomModel.m3 = "soldier_por3_15";
		rNation.fantomModel.m4 = "soldier_por4_15";
		rNation.fantomModel.m5 = "soldier_por5_15";
		rNation.fantomModel.m6 = "soldier_por6_15";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_por";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "soldier_por_15";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "soldier_por2_15";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "soldier_por3_15";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "soldier_por4_15";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "soldier_por5_15";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "soldier_por6_15";
		rNation.boardingModel.enemy.m7.ani = "man";
	} else {
		//Location fantom models
		rNation.fantomModel.m0 = "offic_por_16";
		rNation.fantomModel.m1 = "soldier_por_16";
		rNation.fantomModel.m2 = "soldier_por2_16";
		rNation.fantomModel.m3 = "soldier_por3_16";
		rNation.fantomModel.m4 = "soldier_por4_16";
		rNation.fantomModel.m5 = "soldier_por5_16";
		rNation.fantomModel.m6 = "soldier_por6_16";
		//Boarding models
		rNation.boardingModel.enemy.m1 = "offic_por";
		rNation.boardingModel.enemy.m1.ani = "man";
		rNation.boardingModel.enemy.m2 = "soldier_por_16";
		rNation.boardingModel.enemy.m2.ani = "man";
		rNation.boardingModel.enemy.m3 = "soldier_por2_16";
		rNation.boardingModel.enemy.m3.ani = "man";
		rNation.boardingModel.enemy.m4 = "soldier_por3_16";
		rNation.boardingModel.enemy.m4.ani = "man";
		rNation.boardingModel.enemy.m5 = "soldier_por4_16";
		rNation.boardingModel.enemy.m5.ani = "man";
		rNation.boardingModel.enemy.m6 = "soldier_por5_16";
		rNation.boardingModel.enemy.m6.ani = "man";
		rNation.boardingModel.enemy.m7 = "soldier_por6_16";
		rNation.boardingModel.enemy.m7.ani = "man";
	}
	// NK -->
	rNation.Ranks.Quantity = 12;
	rNation.Ranks.1 = "Aspirante";
	rNation.Ranks.2 = "Seg.-Tenente";
	rNation.Ranks.3 = "Tenente";
	rNation.Ranks.4 = "Capitao-Tenente";
	rNation.Ranks.5 = "Capitao-de-Fragata";
	rNation.Ranks.6 = "Capitao-de-Mar-e-Guerra";
	rNation.Ranks.7 = "Comodoro";
	rNation.Ranks.8 = "Contra-Almirante";
	rNation.Ranks.9 = "Vice-Almirante";
	rNation.Ranks.10 = "Almirante";
	rNation.Ranks.11 = "Almirante da Armada";
	rNation.Ranks.12 = "Almirante da Marinha de Guerra Portuguesa";
	// NK <--

	//Player boarding command
	for(int i = 0; i < MAX_NATIONS; i++)
	{
		makeref(rNation,Nations[i]);
//NK -->
		rNation.boardingModel.player.m0 = "black_corsair";
		rNation.boardingModel.player.m0.ani = "man";
		rNation.boardingModel.player.m1 = "sailor1";
		rNation.boardingModel.player.m1.ani = "man";
		rNation.boardingModel.player.m2 = "sailor2";
		rNation.boardingModel.player.m2.ani = "man";
		rNation.boardingModel.player.m3 = "sailor3";
		rNation.boardingModel.player.m3.ani = "man";
		rNation.boardingModel.player.m4 = "sailor4";
		rNation.boardingModel.player.m4.ani = "man";
		rNation.boardingModel.player.m5 = "sailor5";
		rNation.boardingModel.player.m5.ani = "man";
		rNation.boardingModel.player.m6 = "sailor6";
		rNation.boardingModel.player.m6.ani = "man";
		rNation.boardingModel.player.m7 = "bocman4";
		rNation.boardingModel.player.m7.ani = "man";
		rNation.boardingModel.player.m8 = "chameleon";
		rNation.boardingModel.player.m8.ani = "man";
		rNation.boardingModel.player.m9 = "bocman7";
		rNation.boardingModel.player.m9.ani = "man";
		rNation.boardingModel.player.m10 = "sailor16";
		rNation.boardingModel.player.m10.ani = "man";
		rNation.boardingModel.player.m11 = "sailor19";
		rNation.boardingModel.player.m11.ani = "man";
		rNation.boardingModel.player.m12 = "sailor13";
		rNation.boardingModel.player.m12.ani = "man";
		rNation.boardingModel.player.m13 = "sailor14";
		rNation.boardingModel.player.m13.ani = "man";
		rNation.boardingModel.player.m14 = "sailor10";
		rNation.boardingModel.player.m14.ani = "man";
		rNation.boardingModel.player.m15 = "bocman10";
		rNation.boardingModel.player.m15.ani = "man";
		rNation.boardingModel.player.m16 = "bocman16";
		rNation.boardingModel.player.m16.ani = "man";
		rNation.boardingModel.player.m17 = "bocman17";
		rNation.boardingModel.player.m17.ani = "man";
//NK <--

	}

	//Trace("Init nations complete.");
}
