Thread: CombatManager.setCustomSort()
-
March 8th, 2026, 20:20 #1Patriarch
- Join Date
- Nov 2019
- Posts
- 438
CombatManager.setCustomSort()
If I call CombatManager.SetCustomSort() it doesn't sort the combat tracker based on the function passed right away.
How do I get it to resort the combat tracker?
I've looked in the scripts folder in ct and I can't see anything there. I've also looked in combatManager and again can't seem to find a function that will resort the ct.
How do you force the ct to resort using the new custom sort?
-
March 9th, 2026, 17:45 #2SmiteWorks
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 23,301
Look at the option CTSI. It does this specifically for controlling the player client display when changing the Show turn order option.
It registers a callback to listen for CTSI option changes; then updates the display windows and runs a new sort on the list.
Regards,
JPG
-
March 9th, 2026, 18:39 #3Patriarch
- Join Date
- Nov 2019
- Posts
- 438
Thanks for that.
What I did was use CombatManager.setCustomSort and then in the sort function I looked at the value of the option to determine which direction the sort was.
I did figure out the callback part and could get it to call it when the value of the option changed.
What I couldn't figure out was how to get it to do a sort from within the callback.
I'll look at CTSI and see what it does.
Thanks.
-
March 9th, 2026, 18:50 #4Patriarch
- Join Date
- Nov 2019
- Posts
- 438
That worked beautifully. Thank you.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)

Reply With Quote

Bookmarks