void InitTowns(bool first)
{
	// NK 05-07-06 add soldier groups
	
	//temp:
	//first = true;
	//loc.townsack
	ref ctown;
	int q;
	if (first) {
		for(q = 0; q < MAX_TOWNS; q++) { makeref(ctown, Towns[q]); DeleteAttribute(&ctown,""); } // 05-04-23 switch to towns[]
	}
	q = 0;
	//string attr;
	// now we start at 0. 05-04-02 -- q++;
	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Conceicao";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Conceicao";
	ctown.position.x = 786.734070;
	ctown.position.z = 615.279358;
	ctown.monsterprob = 1.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 1000;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = PORTUGAL; // KK
	ctown.homeland = PORTUGAL; // KK
	ctown.store = CONCEICAO_STORE;
	ctown.gov = "Jacinto Arcibaldo Barreto";
	ctown.officiant = "Conceicao_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Conceicao Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	ctown.crew.data.year = GetDataYear();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Conceicao_port";
		ctown.boarding.l2 = "Conceicao_town";
	}
	ctown.laigroup = "CONCEICAO_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Douwesen";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Douwesen";
	ctown.position.x = 780.439728;
	ctown.position.z = 164.659912;
	ctown.monsterprob = 0.75;
	if(first) ctown.captured = false;
	if(first) ctown.size = 1200;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = HOLLAND; // KK
	ctown.homeland = HOLLAND; // KK
	ctown.store = DOUWESEN_STORE;
	ctown.gov = "Reynard Grueneveldt";
	ctown.officiant = "Douwesen_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Douwesen Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Douwesen_port";
		ctown.boarding.l2 = "Douwesen_town";
	}
	ctown.laigroup = "DOUWESEN_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Falaise de Fleur";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "FalaiseDeFleur";
	ctown.position.x = -190.0;
	ctown.position.z = 770.0;
	ctown.monsterprob = 2.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 2000;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = FRANCE; // KK
	ctown.homeland = FRANCE; // KK
	ctown.store = FALAISE_DE_FLEUR_STORE;
	ctown.gov = "Joseph Claude Le Moigne";
	ctown.officiant = "Falaise_de_fleur_officiant" // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "FalaiseDeFleur Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Falaise_de_Fleur_port_01";
		ctown.boarding.l2 = "Falaise_de_Fleur_port_02";
		ctown.boarding.l3 = "Falaise_de_Fleur_location_02";
		ctown.boarding.l4 = "Falaise_de_Fleur_location_03";
		ctown.boarding.l5 = "Falaise_de_Fleur_location_04";
		ctown.boarding.l6 = "Falaise_de_Fleur_location_05";
	}
	ctown.laigroup = "FRANCE_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Isla Muelle";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "IslaMuelle";
	ctown.position.x = -729.571899;
	ctown.position.z = 118.555008;
	ctown.monsterprob = 5.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 3000;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = SPAIN; // KK
	ctown.homeland = SPAIN; // KK
	ctown.store = ISLA_MUELLE_STORE;
	ctown.gov = "Christofor Manuel De Alencar";
	ctown.officiant = "Muelle_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "IslaMuelle Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Muelle_port";
		ctown.boarding.l2 = "Muelle_town_01";
		ctown.boarding.l3 = "Muelle_town_02";
		ctown.boarding.l4 = "Muelle_town_03";
		ctown.boarding.l5 = "Muelle_town_04";
	}
	ctown.laigroup = "SPAIN_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Oxbay";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Oxbay";
	ctown.position.x = 261.453;
	ctown.position.z = 771.66;
	ctown.monsterprob = 2.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 800;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = ENGLAND; // KK
	ctown.homeland = ENGLAND; // KK
	ctown.store = OXBAY_STORE;
	ctown.officiant = "Oxbay_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Oxbay Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Oxbay_port";
		ctown.boarding.l2 = "Oxbay_town";
		if (GREATER_OXBAY == 1) ctown.boarding.l3 = "Oxbay_suburb";
	}
	ctown.laigroup = "ENGLAND_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Greenford";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Oxbay";
	ctown.position.x = 343.052856;
	ctown.position.z = 737.840000;
	ctown.monsterprob = 0.5;
	if(first) ctown.captured = false;
	if(first) ctown.size = 500;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = ENGLAND; // KK
	ctown.homeland = ENGLAND; // KK
	ctown.store = GREENFORD_STORE;
	ctown.officiant = "Greenford_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Greenford Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Greenford_port";
		ctown.boarding.l2 = "Greenford_town";
		if (GREATER_OXBAY == 1) ctown.boarding.l3 = "Greenford_suburb";
	}
	ctown.laigroup = "ENGLAND_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Redmond";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Redmond";
	ctown.position.x = -54.605331;
	ctown.position.z = -243.0;
	ctown.monsterprob = 1.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 2000;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = ENGLAND; // KK
	ctown.homeland = ENGLAND; // KK
	ctown.store = REDMOND_STORE;
	ctown.gov = "John Clifford Brin"; // KK
	ctown.officiant = "Redmond_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Redmond Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Redmond_port";
		ctown.boarding.l2 = "Redmond_Town_01";
		ctown.boarding.l3 = "Redmond_town_03";
		ctown.boarding.l4 = "Redmond_town_04";
	}
	ctown.laigroup = "ENGLAND_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Quebradas Costillas";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "QuebradasCostillas";
	ctown.position.x = -662.385010;
	ctown.position.z = 535.290100;
	ctown.monsterprob = 1.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 500;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = PIRATE; // KK
	ctown.homeland = PIRATE; // KK
	ctown.store = PIRATES_STORE;
	ctown.officiant = "QC_officiant"; // KK
	ctown.forts.Quantity = 0;
	ctown.troops = sti(ctown.size) * 4 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "QC_port";
		ctown.boarding.l2 = "QC_town_exit";
		ctown.boarding.l3 = "QC_town";
	}
	ctown.laigroup = "QC_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Charlestown";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "QuebradasCostillas";
	ctown.position.x = -611.34;
	ctown.position.z = 487.738100;
	ctown.monsterprob = 1.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 600;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = ENGLAND; // KK
	ctown.homeland = ENGLAND; // KK
	ctown.store = CHARLESTOWN_STORE; // KK
	ctown.gov = "Thomas Modiford"; // KK
	ctown.officiant = "Charlestown_officiant"; // KK
	ctown.forts.Quantity = 0;
	ctown.troops = sti(ctown.size) * 4 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Charlestown_Port";
	}
	ctown.laigroup = "ENGLAND_";
	q++;

	// NK 04-08-29 -->
	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Smugglers Lair";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Conceicao";
	ctown.position.x = 805.399963; // Smugglers Lair uses Sunny Haven as port
	ctown.position.z = 592.0;
	ctown.monsterprob = 1.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 300;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = PIRATE; // KK
	ctown.homeland = PIRATE; // KK
	ctown.store = SMUGGLERS_STORE;
	ctown.forts.Quantity = 0;
	ctown.troops = sti(ctown.size) * 4 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Conceicao_shore_02";
		ctown.boarding.l2 = "Smugglers_lair_exit";
		ctown.boarding.l3 = "Smugglers_lair";
	}
	ctown.laigroup = "SMUGGLERS_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Pirate Fort";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Douwesen";
	ctown.position.x = 767.739746; // Pirate Fort uses Palm Beach as port
	ctown.position.z = 184.559875;
	ctown.monsterprob = 1.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 200;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = PIRATE; // KK
	ctown.homeland = PIRATE; // KK
	ctown.forts.Quantity = 0;
	ctown.troops = sti(ctown.size) * 4 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Douwesen_Shore_01";
		ctown.boarding.l2 = "Douwesen_Jungle_01";
		ctown.boarding.l3 = "Pirate_Fort";
	}
	ctown.laigroup = "DOUWESEN_PIRATE_";
	q++;

	// animists base: soldiergroup "ANIMIST_SOLDIERS", no citizens
	// NK 04-08-29 <--

	// SCREWFACE : New towns
	// NK 05-05-04 for now positions are the rx/rz of the island, not the town itself. FIX ME (Screwface : FIX)
	
	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Port au Prince";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Hispaniola";
	ctown.position.x = -532.1;
	ctown.position.z = -330.5;
	ctown.monsterprob = 2.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 4500;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = FRANCE; // KK
	ctown.homeland = FRANCE; // KK
	ctown.store = PORT_AU_PRINCE_STORE;
	ctown.gov = "Isabelle de Cussy";
	ctown.officiant = "Port_au_Prince_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Port au Prince Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Hispaniola_port";
		ctown.boarding.l2 = "Port_au_Prince_town";
		ctown.boarding.l3 = "Port_au_Prince_town_02";
	}
	ctown.laigroup = "FRANCE_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Tortuga";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Hispaniola";
	ctown.position.x = -510.1;
	ctown.position.z = -580.5;
	ctown.monsterprob = 3.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 2000;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = PIRATE; // KK
	ctown.homeland = PIRATE; // KK
	ctown.store = TORTUGA_STORE;
	ctown.officiant = "Tortuga_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Tortuga Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Tortuga_port";
		ctown.boarding.l2 = "Tortuga_town_01";
	}
	ctown.laigroup = "QC_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Grand Turk";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Turks";
	ctown.storegroup = "Turks"; // NK 05-05-04
	ctown.position.x = -580.0;
	ctown.position.z = -780.0;
	ctown.monsterprob = 2.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 1000;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = PIRATE; // KK
	ctown.homeland = PIRATE; // KK
	ctown.store = TURKS_STORE;
	ctown.officiant = "Turks_officiant"; // KK
	ctown.forts.Quantity = 1; // KK
	ctown.forts."0".fortchar = "Grand Turk Commander"; // KK
	ctown.troops = sti(ctown.size) * 4 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Turks_port";
		ctown.boarding.l2 = "Turks_town_exit";
		ctown.boarding.l3 = "Turks_Town";
		ctown.boarding.l4 = "Turks_town_02";
		ctown.boarding.l5 = "Turks_town_03";
	}
	ctown.laigroup = "QC_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Santo Domingo";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Hispaniola";
	ctown.position.x = -655.1;
	ctown.position.z = -195.5;
	ctown.monsterprob = 2.0;
	ctown.storegroup = "Santo_Domingo";
	if(first) ctown.captured = false;
	if(first) ctown.size = 3500;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = SPAIN; // KK
	ctown.homeland = SPAIN; // KK
	ctown.store = SANTO_DOMINGO_STORE;
	ctown.gov = "Salvador Allende"; // KK
	ctown.officiant = "Santo_Domingo_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "santo domingo Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Santo_Domingo_port";
		ctown.boarding.l2 = "Santo_Domingo_town";
	}
	ctown.laigroup = "SPAIN_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Grand Cayman";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Cayman";
	ctown.position.x = 395.3;
	ctown.position.z = -405.3;
	ctown.monsterprob = 2.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 1000;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = ENGLAND; // KK
	ctown.homeland = ENGLAND; // KK
	ctown.store = GRAND_CAYMAN_STORE;
	ctown.gov = "Edmund Christobel Shaw"; // KK
	ctown.officiant = "Grand_Cayman_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Grand Cayman Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Cayman_Port";
		ctown.boarding.l2 = "Grand_Cayman_town";
	}
	ctown.laigroup = "ENGLAND_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Havana";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Cuba";
	ctown.position.x = 145.3;
	ctown.position.z = -880.5;
	ctown.monsterprob = 4.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 10000;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = SPAIN; // KK
	ctown.homeland = SPAIN; // KK
	ctown.store = HAVANA_STORE;
	ctown.gov = "Ernesto Guevara"; // KK
	ctown.officiant = "Havana_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Havana Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Cuba_port";
		ctown.boarding.l2 = "Havana_town_01";
		ctown.boarding.l3 = "Havana_town_02";
		ctown.boarding.l4 = "Havana_town_03";
		ctown.boarding.l5 = "Havana_town_05";
	}
	ctown.laigroup = "SPAIN_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Santiago";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Cuba";
	ctown.position.x = -183;
	ctown.position.z = -553.5;
	ctown.monsterprob = 2.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 5000;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = SPAIN; // KK
	ctown.homeland = SPAIN; // KK
	ctown.store = SANTIAGO_STORE;
	ctown.gov = "Fidel Castro"; // KK
	ctown.officiant = "Santiago_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Santiago Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Santiago_port";
		ctown.boarding.l2 = "Santiago_town_01";
		ctown.boarding.l3 = "Santiago_town_02";
		ctown.boarding.l4 = "Santiago_town_03";
		ctown.boarding.l5 = "Santiago_town_04";
	}
	ctown.laigroup = "SPAIN_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Pointe a Pitre";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Guadeloupe";
	ctown.position.x = -445;
	ctown.position.z = 618.5;
	ctown.monsterprob = 2.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 1800;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = FRANCE; // KK
	ctown.homeland = FRANCE; // KK
	ctown.store = POINTE_A_PITRE_STORE;
	ctown.gov = "Remy Gatien_gov"; // KK
	ctown.officiant = "Pointe_a_pitre_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Pointe a pitre Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Guadeloupe_Port";
		ctown.boarding.l2 = "Pointe_a_pitre_town_01";
		ctown.boarding.l3 = "Pointe_a_pitre_town_02";
		ctown.boarding.l4 = "Pointe_a_pitre_town_03";
	}
	ctown.laigroup = "FRANCE_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Marigot";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "SaintMartin";
	ctown.position.x = -920.5;
	ctown.position.z = 470.5;
	ctown.monsterprob = 1.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 600;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = FRANCE; // KK
	ctown.homeland = FRANCE; // KK
	ctown.store = MARIGOT_STORE;
	ctown.gov = "Philippe de Rivarol"; // KK
	ctown.officiant = "Marigot_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Marigot Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Marigot_port";
		ctown.boarding.l2 = "Marigot_town";
		ctown.boarding.l3 = "Marigot_town_01";
		ctown.boarding.l4 = "Marigot_town_02";
	}
	ctown.laigroup = "FRANCE_";
	q++;

	// ccc Mar06:
	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "Philipsburg";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "SaintMartin";
	ctown.position.x = -925.5;
	ctown.position.z = 475.5;
	ctown.monsterprob = 0.75;
	if(first) ctown.captured = false;
	if(first) ctown.size = 600;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = HOLLAND; // KK
	ctown.homeland = HOLLAND; // KK
	ctown.store = PHILIPSBURG_STORE;
	ctown.gov = "Arendt Dickman"; // KK
	ctown.officiant = "Philipsburg_officiant"; // KK
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "Philipsburg Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Philipsburg_port";
		ctown.boarding.l2 = "Philipsburg_town";
		ctown.boarding.l3 = "Philipsburg_town_02";
	}
	ctown.laigroup = "DOUWESEN_";
	q++;

	//attr = "t"+q;
	makeref(ctown, Towns[q]);
	ctown.id = "St John's";
	if(first) ctown.name = XI_ConvertString(FindTownName(ctown.id)); // KK
	ctown.island = "Antigua";
	ctown.position.x = -681.5;
	ctown.position.z = 740.5;
	ctown.monsterprob = 1.0;
	if(first) ctown.captured = false;
	if(first) ctown.size = 1400;
	ctown.gold = sti(ctown.size) * TOWN_GOLD_SCALAR;
	if(first) ctown.nation = ENGLAND; // KK
	ctown.homeland = ENGLAND; // KK
	ctown.store = ST_JOHNS_STORE;	// ccc Feb06 Antigua
	ctown.officiant = "Antigua_officiant"; // KK
//	ctown.gov = "Joseph Claude Le Moigne";
	ctown.forts.Quantity = 1;
	ctown.forts."0".fortchar = "St John's Commander";
	ctown.troops = sti(ctown.size) * 2 / 5;
	ctown.crew.quantity = sti(ctown.size)/8 + rand(sti(ctown.size)/4);
	ctown.crew.morale = MORALE_NORMAL - 20 + Rand(40);
	ctown.crew.data.year = GetDataYear();
	ctown.crew.data.month = GetDataMonth();
	ctown.crew.data.day = GetDataDay();
	if (CAPTURE_COLONIES == 1) { // KK
		ctown.boarding.l1 = "Antigua_port"; // KK
	}
	ctown.laigroup = "ENGLAND_";
	q++;


	TOWNS_QUANTITY = q;

	// NK fill name/group lookup table. 05-05-04
	// unneeded 05-07-10
	/*for(q = 0; q < TOWNS_QUANTITY; q++)
	{
		ctown = GetTownByIndex(q);
		string tmpstr = ctown.id;
		ShipLookupTable.townlookup.names.(tmpstr) = ctown.id;
		if(CheckAttribute(ctown, "storegroup"))
		{
			tmpstr = ctown.storegroup;
			ShipLookupTable.townlookup.names.(tmpstr) = ctown.id;
		}
	}*/
}
