There is two triggers associated with the AI regarding this:
If you pre-place a building on the map and un-check the "initially created" option in the AI tab you have an option here to pick the rebuild count for that specific building as well.
There is these options:
Never / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / Always / Default (Never/Never)
What I don't understand is how to get the computer to actually REBUILD these structures if they die. I have all the pre-placed buildings set to always and even have the triggers above enabled. I've tried changing all of those numbers and nothing gets the computer to rebuild them. There is a check mark under which difficulty they should re-build it under and the only one is very easy as that's all there is. Does someone know how to make another difficultly option that you could set that too?
Now since I couldn't figure out to get this crap to work, I decided to make a trigger system instead.
Here it is:
The basic of this trigger pretty much says if a building is killed, and there is no enemy units withing a radius of 35, then rebuild. If there is units within that radius, store the unit and it's position into a variable so it can be rebuilt when there is no units within the area.
What I need help with, besides the questions I asked above this trigger, is how do I do the "THEN" conditions to where it stores the unit and it's position into a variable, not having to do an array value for each individual structure on the map?
Also, I already tired making the event be if ANY unit dies and setting a condition in an if statement to be the actualy pre-placed building on the map, but the trigger doesn't fire. It seems that in order for the map to register that building, it has to be in the event heading.
How do I simplify this, because I really do NOT want to have to make a array value for each building.