Hi, im back after some years :)
I want to make this happen: if a unit takes damage from the front of its model reduce damage by a %, if another unit takes damage fron its sides it reduces damage by a %, if an unit takes damage from rear it takes increased % damage.
If the reduction would be at...
Sry but i think that your trigger wont work if he selects 2 or more units (by selection box).
Btw he solved the "reselect a unit that is alredy selected" (using his or my solution, that are similar) and now has the problem that in the time gap between he selects a unit and the whole group is...
Kyuft has already a working set of triggers but he wants to change it becouse of:
So i think he has to keep his triggers as they are and find a way to bypass the problem of commanding a unit before the whole group is selected.
I suggested this (to add in the trigger triggered by "Unit is...
None of them :)
I mean im not able to do a thing like
myGroup= group of (myUnit)
unit "mom" is in group "family", unit "carl" is in group "friends".
myGroup= group of (mom) will do myGroup=family
If i change mom with carl myGroup=friends.
Kyuft made a trigger for group selection but he asked...
Dave i was talking about another thing.
If you have 3 groups (A, B and C) when you select any unit the trigger will
-Select all unit in group (the one where the selected unit is)
So it will select A, B or C.
To instant select you need a function that gives the group where the unit is in (cant find it... you need a custom function)
Then you have to use "select group" base function and refer to the group (group in which the triggering unit is).
Siretu may help with this custom function, try to tell...
To avoid comanding unit before whole group is selected add
-make triggering unit uncommandable
at the very start of selection group trigger and
-make triggering unit commandable
after the group selection is done.
Just reselect the units currently selected after they were deselected. The other trigger (the one that selects the whole group when a unit is selected) will do all the work.
IMPORTANT add a little wait time between deselection and reselection
Sry for language error, i meant pick not peek :D
Btw... Solved! :)
TRIGGER Keep selection
Unit selection - Any unit is Deselected by Any player
Unit group - Pick all units in (Units selected for player 1) and do (actions)...
Maybe this will work (i didnt understand your method of selecting units so i will explain in general way)
When a unit is deselected (this happens when you have a group selected and click on one of their units) peek all units in "units that are selected" an then select the group that contain...