Hi all.
I would like someone to help me.
I am creating a multiplayer map to play with my friends, and I want that when player 2 selects its city center, create X unit, but currently it is not possible since the "Unit Selected" condition works globally, but I do not want that player 1 create the units of player 2, it should not be like that.
What options are there?
I tried to edit the condition "Unit Selected" from the file 'typetest.xml' and it was as follows:
When I did this and opened the editor, the condition now allowed me to choose the player, so I set it up and tried the scenario, but it just did not work. The engine that is responsible for firing the triggers broke completely and stopped working for all the triggers.
Please help!!
I would like someone to help me.
I am creating a multiplayer map to play with my friends, and I want that when player 2 selects its city center, create X unit, but currently it is not possible since the "Unit Selected" condition works globally, but I do not want that player 1 create the units of player 2, it should not be like that.
What options are there?
I tried to edit the condition "Unit Selected" from the file 'typetest.xml' and it was as follows:
<Condition name="$$22337$$Unit Selected">
<Param name="SrcObject" dispName="$$22314$$Source Unit" VarType="unit"> default< /Param>
<Param name="Player" dispName="$$22301$$Player" VarType="player"> 1< /Param>
<Command> trUnitSelectClear();< /Command>
<Command> trUnitSelect("%SrcObject%");< /Command>
<Expression> trUnitIsSelected(%Player%)< /Expression>
</Condition>
When I did this and opened the editor, the condition now allowed me to choose the player, so I set it up and tried the scenario, but it just did not work. The engine that is responsible for firing the triggers broke completely and stopped working for all the triggers.
Please help!!
[This message has been edited by Rusink (edited 07-11-2019 @ 06:42 AM).]