Im currently making a Europa type map, and on of the features im adding into the game is natural. In order for this to work there will be a building by a natural resource, and when it is killed it will be controlled by a player. Likewise, if another player comes and damages it to low enough health, then he will get control.
However, I cannot get the trigger to work. Once the building gets to the necessary amount of Hit points its control is not switching.
This is what I have -
Kilomanjaro Control
Events
Unit - Mount Kilomanjaro Control 0011 <gen>'s life becomes Less than 1000.00
Conditions
Actions
Unit - Change ownership of Mount Kilomanjaro Control 0011 <gen> to (Owner of (Attacking unit)) and Change color
Unit - Set life of (Attacked unit) to 100.00%
However, I cannot get the trigger to work. Once the building gets to the necessary amount of Hit points its control is not switching.
This is what I have -
Kilomanjaro Control
Events
Unit - Mount Kilomanjaro Control 0011 <gen>'s life becomes Less than 1000.00
Conditions
Actions
Unit - Change ownership of Mount Kilomanjaro Control 0011 <gen> to (Owner of (Attacking unit)) and Change color
Unit - Set life of (Attacked unit) to 100.00%