Q - is there a way to track / mimic / replicate the correct ordering grimrock uses to add skill traits to a champion that have been added simultaneously
I have a custom traits menu and my system can correctly track and display traits as they are displayed without the custom menu
- except - when skill traits from more than 1 skill are added simultaneously
What results is my custom menu displaying some traits out of order - noticeable when hovering over them and getting an incorrect vanilla tooltip (mouse hovering over Reach trait and getting the air mastery tooltip)
SpoilerShow

In my testing, I actually added all skill traits simultaneously, but spent the points in skills in both forward and reverse priority ordering, then accepted them all together. Neither test provided any useful insight into ordering....
I suspect the game may use a pairs function not ipairs - so correct tracking abovementioned would not be possible??
If not possible my options I can see are creating custom tooltips for the traits menu (which I hadnt intended but can script) - OR - asking the players nicely to avoid adding multiple skill traits simultaneously
Any ideas or suggestions??
Akroma
