Ok, now that I have your attention...
I want to kill exactly 7 (or 7 percent) of my adoring citizens from one my cities using SLIC. Obviously, if I'm feeling less benevolent, I want to be able to edit the SLIC file and change this value to say 351, or whatever strokes my fancy at that time.
Don't ask me why I want to do this. Let's just say I don’t like their attitudes.
The bit of the code I'm using at the moment (stolen from IW; Peter Triggs et al - thanks guys ):
int_t tmpDead;
int_t tmpCounter;
city_t tmpCity;
city[0] = tmpCity;
tmpDead = city[0].population/10;
for (tmpCounter = 0; tmpCounter < tmpDead; tmpCounter = tmpCounter + 1) {
Event:KillPop(tmpCity);
}
This doesn't quite do what I'm looking for. Can anybody help?
I want to kill exactly 7 (or 7 percent) of my adoring citizens from one my cities using SLIC. Obviously, if I'm feeling less benevolent, I want to be able to edit the SLIC file and change this value to say 351, or whatever strokes my fancy at that time.
Don't ask me why I want to do this. Let's just say I don’t like their attitudes.
The bit of the code I'm using at the moment (stolen from IW; Peter Triggs et al - thanks guys ):
int_t tmpDead;
int_t tmpCounter;
city_t tmpCity;
city[0] = tmpCity;
tmpDead = city[0].population/10;
for (tmpCounter = 0; tmpCounter < tmpDead; tmpCounter = tmpCounter + 1) {
Event:KillPop(tmpCity);
}
This doesn't quite do what I'm looking for. Can anybody help?
Comment