I have been working on a Risk type game for a while now, and have everything solved execpt for one trigger problem. I have looked at every single risk map that is not protected to see if they do anything differntly then I came up with to try and solve this problem but I cant find a solution
The problem is when I try to allow people to Go onto a Circle Of Power and transfer the ownership of both the circle of power and the barracks to triggering units player. I set this up by making a region under the circle of power, condition looks to see if somebody enters the region. If they do, and it finds that it is the only unit from any type in region it transfers control to that player.... however it never works! I then tried a few other ways with minor changes (unit goes over COP, unit is withen X distance of barracks)
This is exactly how the trigger looks
If anybody can find the error and help me out i would be thankfull.
The problem is when I try to allow people to Go onto a Circle Of Power and transfer the ownership of both the circle of power and the barracks to triggering units player. I set this up by making a region under the circle of power, condition looks to see if somebody enters the region. If they do, and it finds that it is the only unit from any type in region it transfers control to that player.... however it never works! I then tried a few other ways with minor changes (unit goes over COP, unit is withen X distance of barracks)
This is exactly how the trigger looks
Code:
haradwaith
Events
Unit - A unit enters haradwaith <gen>
Conditions
((Units in haradwaith <gen> owned by (Owner of Barracks 0094 <gen>)) is empty) Equal to True
Actions
Unit - Change ownership of Barracks 0094 <gen> to (Owner of (Triggering unit)) and Change color
Unit - Change ownership of Circle of Power (large) 0045 <gen> to (Owner of (Triggering unit)) and Change color
If anybody can find the error and help me out i would be thankfull.