Thanks Locutus.
Can I ask you to look at this quickly please. Any reason why it won't work?
int_t CTC_PLAYER_COUNT;
HandleEvent(BeginTurn) 'AOM_CivTraits' pre {
int_t livePlayers;
int_t i;
int_t j;
int_t tmpPlayer;
city_t tmpCity;
if (g.year == 10){
CTC_PLAYER_COUNT= preference("NumPlayers");
for (i=0;i
if (IsPlayerAlive(i)){
tmpPlayer = player[i];
if (PlayerCivilization(i)==CivlizationIndex("AMERICANS")){
for(j = 0; j < PlayerCityCount(tmpPlayer); j = j + 1){
GetCitybyIndex(tmpPlayer,j, tmpCity);
if(CityHasBuilding(tmpCity,"IMPROVE_CAPITOL")){
Event:CreateWonder(tmpCity, WonderDB(Wonder_SCIENCE_A));
}
}
}
elseif (PlayerCivilization(i)==CivlizationIndex("JAPANESE")){
for(j = 0; j < PlayerCityCount(tmpPlayer); j = j + 1){
GetCitybyIndex(tmpPlayer,j, tmpCity);
if(CityHasBuilding(tmpCity,"IMPROVE_CAPITOL")){
Event:CreateWonder(tmpCity, WonderDB(Wonder_MILITARY_A));
}
}
}
}
}
}
}
Thanks again.
Can I ask you to look at this quickly please. Any reason why it won't work?
int_t CTC_PLAYER_COUNT;
HandleEvent(BeginTurn) 'AOM_CivTraits' pre {
int_t livePlayers;
int_t i;
int_t j;
int_t tmpPlayer;
city_t tmpCity;
if (g.year == 10){
CTC_PLAYER_COUNT= preference("NumPlayers");
for (i=0;i
tmpPlayer = player[i];
if (PlayerCivilization(i)==CivlizationIndex("AMERICANS")){
for(j = 0; j < PlayerCityCount(tmpPlayer); j = j + 1){
GetCitybyIndex(tmpPlayer,j, tmpCity);
if(CityHasBuilding(tmpCity,"IMPROVE_CAPITOL")){
Event:CreateWonder(tmpCity, WonderDB(Wonder_SCIENCE_A));
}
}
}
elseif (PlayerCivilization(i)==CivlizationIndex("JAPANESE")){
for(j = 0; j < PlayerCityCount(tmpPlayer); j = j + 1){
GetCitybyIndex(tmpPlayer,j, tmpCity);
if(CityHasBuilding(tmpCity,"IMPROVE_CAPITOL")){
Event:CreateWonder(tmpCity, WonderDB(Wonder_MILITARY_A));
}
}
}
}
}
}
}
Thanks again.
Comment