I have noticed something odd... Lets say I'm player 1 and there is also player 2. Basicly, all the players are unally and if you create units to another player, like player 2, they will attack you. But there is the thing... I'm trying to make a very basic defence and sometimes the units for x reason get stuck. Once it becomes idle, he starts attacking all the near units like mine. So, I though I could make him allied to me and keep me unallied to him.
It worked, but, my units are not getting any kills like if I was killing a friendly unit. Through the trigger "Set alliance (one way)" there is only the Allied, Allied with shared vision, allied.... etc, ennemy, ennemy with... and neutral with the same things as the other. But non of them except making him unallied to me seems to work for getting kills score.
The only way i founded to make him stop attacking me was by making my units invulnerable. But how if I don't want them to be invulnerable? Is there a way to make someone else allied to us while we are unallied to him and be able to get kills?
Well no, but there is a better solution the problem.
Instead, have a trigger with the event "unit becomes idle". Have the conditions being that the unit belongs to the AI attacking player, and then have the actions just make the unit keep moving to the original target point.
Well I tryed... But when the unit attack, he is not Idle... As well as if the trigger is executed on air units, they start being stack but after a moment, when all units are at the exact same point, they all stop and spread. They are no more considered "becoming idle". I would like the editor have a event that fire whenever a unit is idle, and not becomes or stops being idle. Or, if you just spawn units anywhere on the map, they are not "becoming" idle, they are idle. So the trigger wont fire.
I have noticed something odd... Lets say I'm player 1 and there is also player 2. Basicly, all the players are unally and if you create units to another player, like player 2, they will attack you. But there is the thing... I'm trying to make a very basic defence and sometimes the units for x reason get stuck. Once it becomes idle, he starts attacking all the near units like mine. So, I though I could make him allied to me and keep me unallied to him.
It worked, but, my units are not getting any kills like if I was killing a friendly unit. Through the trigger "Set alliance (one way)" there is only the Allied, Allied with shared vision, allied.... etc, ennemy, ennemy with... and neutral with the same things as the other. But non of them except making him unallied to me seems to work for getting kills score.
The only way i founded to make him stop attacking me was by making my units invulnerable. But how if I don't want them to be invulnerable? Is there a way to make someone else allied to us while we are unallied to him and be able to get kills?
Working on projects:
Well no, but there is a better solution the problem.
Instead, have a trigger with the event "unit becomes idle". Have the conditions being that the unit belongs to the AI attacking player, and then have the actions just make the unit keep moving to the original target point.
Great to be back and part of the community again!
Well I tryed... But when the unit attack, he is not Idle... As well as if the trigger is executed on air units, they start being stack but after a moment, when all units are at the exact same point, they all stop and spread. They are no more considered "becoming idle". I would like the editor have a event that fire whenever a unit is idle, and not becomes or stops being idle. Or, if you just spawn units anywhere on the map, they are not "becoming" idle, they are idle. So the trigger wont fire.
Working on projects: