A major feature of a map I am trying to create is that when a player's home city is destroyed, it is in fact captured and forced to ally whomever hurt the building to less than 500 hp. I am, however, quite new to scripting and this is a bit over my head. Here is what I have so far, but when tested doesn't work.
----------
Events
Unit (city) life becomes Less than 500.00
Conditions
Actions
Player - change color of Player 3 to color of triggering player, changing color of existing units
Player - make triggering player treat player 3 as an ally with shared vision
Player- Make player 3 treat Triggreing player as an ally with shared vision and full shared units
Game - Display to all players the text - "City has been subjegated!"
----------
I have a very limited understanding of variables within the world editor and I feel this is where the answer lies. Does anyone have any possible suggestions? Would be much appreciated.
----------
Events
Unit (city) life becomes Less than 500.00
Conditions
Actions
Player - change color of Player 3 to color of triggering player, changing color of existing units
Player - make triggering player treat player 3 as an ally with shared vision
Player- Make player 3 treat Triggreing player as an ally with shared vision and full shared units
Game - Display to all players the text - "City has been subjegated!"
----------
I have a very limited understanding of variables within the world editor and I feel this is where the answer lies. Does anyone have any possible suggestions? Would be much appreciated.