Thread: Strike rank sorting
-
March 31st, 2024, 14:14 #1
- Join Date
- Mar 2009
- Location
- Lidingö, Sweden, Europe
- Posts
- 411
Strike rank sorting
I'm coding an extension that calculates strike ranks according to the rules on page 199 ff. in "Classic Basic Roleplaying", i.e. the version published 2010, which is the version included in this ruleset.
The end result should be sorted in the CT in ascending order (lower to higher). How do you accomplish that in the CT? I see that the onSortCompare function is being used but according to the documentation (https://fantasygroundsunity.atlassia...260/windowlist) the comparison should perform a greater than operation and that is not what I need. Is there some underlying code that depends on a greater than operation that cannot be overridden?
-
April 1st, 2024, 00:12 #2
You would need to define a new sort function (example: CombatManager.setCustomSort(fSort). This will sort it based on how your new function will sort it. An example function would be the CombatManager.sortfuncSimple. These are all in CoreRPG by the way.
Dominic Morta
Ruleset Developer
Smiteworks
How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it
How to provide an Unity Connection issue?-Connection Issues and What to Provide
Unity Updater issue?-Updater Issues
Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained
Comcast or Cox ISP User?-Comcast XFinity and Cox Users
Have a suggestion?-Feature Request
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Bookmarks