Locutus,
GREAT idea to use the TerrainType function as a workaround to check whether a city is actually a space city.
I haven't tried it (too less time these days), but I know that as soon as a city is built (which you can trigger via city.built) the city's location is saved in city.location.
So the trigger for space cities would most likely look like:
trigger 'Slamp_TP_SupportSpaceCities' when (city.built && TerrainType(city.location) == 20) {
AddPops(city.1,2);
CreateUnit(player, UnitType("UNIT_MACHINE_GUNNER"), city.1.location, 0);
CreateUnit(player, UnitType("UNIT_MACHINE_GUNNER"), city.1.location, 0);
}
Hope this works (I am especially not sure whether space is linked to the number 20, but it is the 20th entry in terrain.txt, so I suppose it is correct.
Can someone test please ?
TP
GREAT idea to use the TerrainType function as a workaround to check whether a city is actually a space city.
I haven't tried it (too less time these days), but I know that as soon as a city is built (which you can trigger via city.built) the city's location is saved in city.location.
So the trigger for space cities would most likely look like:
trigger 'Slamp_TP_SupportSpaceCities' when (city.built && TerrainType(city.location) == 20) {
AddPops(city.1,2);
CreateUnit(player, UnitType("UNIT_MACHINE_GUNNER"), city.1.location, 0);
CreateUnit(player, UnitType("UNIT_MACHINE_GUNNER"), city.1.location, 0);
}
Hope this works (I am especially not sure whether space is linked to the number 20, but it is the 20th entry in terrain.txt, so I suppose it is correct.
Can someone test please ?
TP
Comment