Originally posted by Mathemagician
you mentioned a PW-slic ?
ive tried to modify PWs over a slic file (when trying to make 'honest' mods

), but had no success. how does one do that ?
Code:
trigger 'AddSILOPW' when(g.player) {
SetPlayer(1, g.player);
i=0;
while (i < player.1.cities) {
SetCityByIndex(1, player.1, i);
if (CityHasBuilding(city, "IMPROVE_SILO")) {
SetPW(player.1, player.1.publicworkslevel + 16 * city.population);
}
i = i + 1;
}
}
this particular you just add to the SLIC then save it in what ever scenario default file in default gamedat file within the scenario folder..
What happens is for each city that builds a granary, EACH citizen in each city that HAS a Granary built gets 16 PW EACH turn
You can modify to make any improvement..and also any amo9unt of pw
I have tried such ideas as building a nuclear plant and giving each citizen 100pw..
so ideas are endless
Of course this code will not take care of any Dawgs dumping "ON" public works..thats another matter entirely
Peace
GT
Bookmarks