1. #1

    Ordering of items in module

    Good day!

    I'm working on a Savage Worlds module in XML, and am trying to get some items ordered like they are in the book I'm creating the module from. For example, the book has the following Shield types: Buckler, Large Shield, Medium Shield. I'd like the order to go Buckler, Medium Shield, Large Shield. It appears it's ordering the items alphabetically on the <name> attribute...is there anyway to do this? For example, I've tried to name the XML attributes in the following method:

    <a_buckler>
    [info about Buckler]
    </a_buckler>

    <b_medium_shield>
    [info about medium shield]
    </b_medium_shield>

    <c_large_shield>
    [info about large shield]
    </c_large_shield>

    With no changing of the order. Is there a way to force the ruleset to order things based off Attribute name (ie <a_buckler>) instead of the name attribute (ie <name type="string">Buckler</name>?

    Thanks!

    GB
    Ultimate Edition license holder - No License Needed to Play My Games (Need Demo Version of FG Downloaded)
    FG Community Developer:
    [Available]Millennium Knights, Savage Suzerain [In Progress]Several Others [Personal Use]Savage Rifts

    Currently running:
    AD&D 2e - Temple of Elemental Evil

    In planning:
    Way too many games!

    Timezone:
    Eastern Daylight Time (EDT) United States; GMT -4 hours

  2. #2
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    GMT -7
    Posts
    8,776
    Blog Entries
    9
    Nope. All lists are ordered alphabetically.

    EDIT: well, but I;m not sure which attribute is used for the sorting... so maybe?

    Current Projects: Ultimate Undermountain (NYDUM)
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets
    DMsGuild Content: Balance Disturbed (Adventure), Dungeon Room Descriptions
    FG Product Reviews: Virtual Scribe Reviews

  3. #3
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    24,607
    Ordering is set in the windowlist control in the ruleset.

    See the sortby XML definition here: https://www.fantasygrounds.com/refdoc/windowlist.xcp

    Whichever control is being used will need to be checked to see what field is being used for sorting.
    FG Con 16 Fantasy Grounds Online RPG Convention - Friday April 24th to Sunday April 26th, 2020
    Register at www.fg-con.com for all the latest info.

    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in