So I'm trying to make a trigger that goes as such:
- If player (Red, etc...) enters a region and there is no other player/NH there (I have 6 players), he/she will gain control of that "Territory", gaining more income.
- If player (Red, etc...) enters a region and there is another player/NH there, he/she must kill that players/NH units to gain control of the region/Territory.
- If player (Red, etc...) leaves controlled region/Territory, he/she will lose control and income bonus.
There is also messages that will pop up, telling all players that that player has gained control over that specific region/Territory, as well as telling individual players.
I'll put what I have then explain the problem:
I was going to put what I had tried to do if Blue was killed/left the region, but every time it failed.
When I would test it, I would have a Blue unit go into region (I did this same Trigger for Blue), which would put RedShopT[2] at 1; have a Red unit try to go into the region. On the Red players screen it displayed "You must.." like it should have, but when I killed the Blue unit of course nothing would happen because that Trigger is set up for "If unit enters Region" not "If unit is in region", which oddly enough doesn't exist to my knowledge (which clearly isn't very extensive regarding WE). So I would take the Red unit out, and run it back in, and even though I had it set so that if the Blue unit left that region, RedShopT[2] = 0, it still showed the message "You must...".
If anyone could help me out with this, that'd be great.
- If player (Red, etc...) enters a region and there is no other player/NH there (I have 6 players), he/she will gain control of that "Territory", gaining more income.
- If player (Red, etc...) enters a region and there is another player/NH there, he/she must kill that players/NH units to gain control of the region/Territory.
- If player (Red, etc...) leaves controlled region/Territory, he/she will lose control and income bonus.
There is also messages that will pop up, telling all players that that player has gained control over that specific region/Territory, as well as telling individual players.
I'll put what I have then explain the problem:
Code:
Events
Unit - A unit enters Red Shop Territory <gen>
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RedShopT[2] Equal to 0
RedShopT[3] Equal to 0
RedShopT[4] Equal to 0
RedShopT[5] Equal to 0
RedShopT[6] Equal to 0
RedShopT[7] Equal to 0
Then - Actions
Set RedShopT[1] = 1
Set Income[1] = (Income[1] + 50)
Game - Display to (All players) the text: Red has...
Else - Actions
Set RedShopT[1] = 0
Game - Display to Player Group - Player 1 (Red) the text: You must...
I was going to put what I had tried to do if Blue was killed/left the region, but every time it failed.
When I would test it, I would have a Blue unit go into region (I did this same Trigger for Blue), which would put RedShopT[2] at 1; have a Red unit try to go into the region. On the Red players screen it displayed "You must.." like it should have, but when I killed the Blue unit of course nothing would happen because that Trigger is set up for "If unit enters Region" not "If unit is in region", which oddly enough doesn't exist to my knowledge (which clearly isn't very extensive regarding WE). So I would take the Red unit out, and run it back in, and even though I had it set so that if the Blue unit left that region, RedShopT[2] = 0, it still showed the message "You must...".
If anyone could help me out with this, that'd be great.