GI JOE RPG Launch
  1. #1

    Join Date
    Mar 2009
    Location
    Lidingö, Sweden, Europe
    Posts
    407

    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?

  2. #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 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Cosmere RPG Beta Launch

Log in

Log in