HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Saving alliance settings

12-28-2002, 10:09 PM#1
Guest
Is there a simple way to save alliance settings each player in order to temporarily switch them and then return them to the way they were? This will be used to create a neutral town, so that the units don't automatically fight when in town. But once all the players units leave town, then I want the settings to return the what they were. Can anyone help?
12-29-2002, 02:56 AM#2
Guest
ok, nm i don't need to save alliance settings, that I've figured out how to do, but what I am curious is is there anyway to check ifa player has any unit in a specific region. Cause I want it to be so that if a player has even one unit out of 100 in the town, then his units will still behave neutrally to the enemy, and not attack, and so on, so that it doesn't make create any wierd situtaions were a unit or two leaves and the nuetrality is turned off. But I can't seem to find a way to check if the player has any units left in town. Any help would be appreciated.
12-29-2002, 03:43 AM#3
Guest
Ok, I think I may have figured something out, but now im hving trouble with that. Im using the action:

If ((No unit is in (Units in neutral area <gen> owned by Player 1 (Red))) Equal to True) then do this, otherwise do that.

No if I understand this right, then if player 1 has no units in that neutral area, this statement should be true, and "this" should be executed. But, for some reason (maybe my misunderstanding of the code) "that" gets executed. Again, any kind of help what-so-ever would be appreciated.