Way to difficult (and buggy too), try this (usual disclaimer: untested, could be buggy):
Code:
|
HandleEvent(CaptureCity) 'WWDestroy_Land' post {
if (city[0].location == Dummy3 && player[0] == 1 && isCityThere) {
Event:KillCity(city[0], 0, 0);
}
} |
Help, there's something wrong with my TAB-key it doesn't work! Oh well, I guess you get the point
KillCity has as arguments city that's killed, player that kills it (if you call the event instead of listening for it I don't think the number matters) and the reason (0 should be good enough) - in that order.
player[0] is *not* you btw, but whatever an events puts in there, in this case the player that captures the city. Player 1 *is* you (except in multiplayer so an IsHumanPlayer check would be needed then).
I saw your other questions but I don't have time now, will see if I can answer them tomorrow.
[This message has been edited by Locutus (edited January 16, 2001).]