- Joined
- Apr 3, 2018
- Messages
- 499
I'm experiencing an issue in my map, not sure if I can explain it coherently...
The situation:
I tried testing with a trigger that would react on "unit is selected" event, it does not proc when this issue happens; the test trigger itself works and detects units being selected otherwise like it should. So this should have nothing to do with selection triggers.
What are some natives I should look out for in my code, that could cause this change of order of selected units? I'm using 1.26, no interface functions or anything like that. There is too much intertwined code to post.
The situation:
- multiple units are selected, all with items; one of them is focused as the main selected unit (with bigger icon, and portrait of that unit being displayed)
- I click one of the items, and lots of triggered actions are done, adding items or setting charges, none of them having anything to do with selections
- NOW THE ISSUE: once this is done, for some reason the focused primary selected unit jumps to the middle or end of the list of selected units, messing up my plans on clicking different units and items in a specific order, because now all the selected units are in a different order in the list than before.
I tried testing with a trigger that would react on "unit is selected" event, it does not proc when this issue happens; the test trigger itself works and detects units being selected otherwise like it should. So this should have nothing to do with selection triggers.
What are some natives I should look out for in my code, that could cause this change of order of selected units? I'm using 1.26, no interface functions or anything like that. There is too much intertwined code to post.
Last edited: