I have another question pertaining to diplomacy type triggers. It's a bit complicated so bear with me. For certain [invincible] buildings (representing large medium or small cities) I would like there to be a circular region of a particular radius (dependent on city tier) such that when an enemy unit enters this region a group of "garrison" units spawn in the region to defend the city. If you are sieging an enemy city, it would be captured [the building would be given to you] once all enemy units (excluding the city itself and factory/resource structures) have been vanquished from the city-region. After a city is captured any enemy player that enters the city-region would then retrigger the garrisons to spawn, but this time for you.
However, if you enter an enemy city-region, trigger its garrison spawn, and then leave the city region (before capturing the city) - then the spawned garrison units will be removed.
If there are no enemy units present at a given city-region any garrison units in that region should disappear. There is also the issue of garrison units being moved out of a city-region (to avoid their removal) and I am not sure if this could be addressed by simply creating a trigger that removes a garrison unit when it is not within proximity of a city.
This next bit is less of a priority (since I'm sure I could figure it out myself once the above is addressed). But I would also like for certain buildings [industry buildings] in the city-region to also be given to the conquering player, from the conquered player.
Edit: Basically whenever a city-region is entered by an enemy, I would like a defensive garrison to spawn. And when all of the defensive units or any other units the player being attacked in the location are gone, the city is lost/captured. In order to distinguish between a city that has yet to spawn its garrisons and once that has lost all its garrisons I was thinking of making the city be burning or have less HP (if that's detectable) or something along those lines whenever its under siege. It would only be capturable when under siege.
I know this is a bit complicated but I am really devoted to my current project and well, short of learning galaxy code I've tried everything. In StarCraft 1 I accomplished the above with individual regions and triggers for each city, as well as switches. Since this proves to be a much more ambitious undertaking (roughly 200 cities) I am hoping this can be accomplished in a much less tedious and time consuming manner.
Thanks you for any advice or input!
Post has been edited 1 time(s), last time on Jun 21 2011, 1:42 am by Veta.
None.