5E Character Create Playlist
  1. #1

    [FREQ] XML Personality Format

    I've found that some data entry is faster working directly in the XML files -- but the ordering of the data for personalities is confusing (current ordering is below):

    Code:
            <id-00019>
                <ac type="string">19 (+6 natural, Dex)</ac>
                <alignment type="string">NE</alignment>
                <atk type="string">bite +5 melee (1d6+4)</atk>
                <charisma type="number">12</charisma>
                <constitution type="number">14</constitution>
                <cr type="number">3</cr>
                <dexterity type="number">16</dexterity>
                <feats type="string">Improved Initiative, Weapons Finesse (tongue), Weapon Focus (bite)</feats>
                <fortitudesave type="number">6</fortitudesave>
                <hd type="string">6d8+12</hd>
                <hp type="number">42</hp>
                <init type="number">7</init>
                <intelligence type="number">6</intelligence>
                <name type="string">Abyssal Dire Frog</name>
                <reflexsave type="number">7</reflexsave>
                <skills type="string">Listen +6, Spot +6, Swim +10</skills>
                <spacereach type="string">5 ft/5 ft</spacereach>
                <specialattacks type="string">leap (30 ft. horizontal, 10 ft. vertical as charge attack), improved trip, rake (+8/+8 melee for an additional 1d6+1 damage each against tripped opponents), adhesive tongue, swallow whole, smite good (1/day +12 damage versus good target), poison (Fortitude save DC 18 if bitten, 12 if touching its skin or suffer 1d6/1d6 temporary Str damage)</specialattacks>
                <specialqualities type="string">darkvision (60 ft.), cold and fire resistance (10), damage resistance (5/+1), spell resistance (12)</specialqualities>
                <speed type="string">20 ft, swim 20 ft</speed>
                <strength type="number">14</strength>
                <text type="formattedtext">
                    <p></p>
                </text>
                <type type="string">Outsider (Chaos)</type>
                <willsave type="number">1</willsave>
                <wisdom type="number">14</wisdom>
            </id-00019>
    Would it be possible to instead have the XML saved in something like the following order, which is closer to the order you see things entered in a standard stat block?


    Code:
            <id-00019>
                <name type="string">Abyssal Dire Frog</name>
                <cr type="number">3</cr>
                <type type="string">Outsider (Chaos)</type>
                <hd type="string">6d8+12</hd>
                <hp type="number">42</hp>
                <init type="number">7</init>
                <speed type="string">20 ft, swim 20 ft</speed>
                <ac type="string">19 (+6 natural, Dex)</ac>
                <atk type="string">bite +5 melee (1d6+4)</atk>
                <specialattacks type="string">leap (30 ft. horizontal, 10 ft. vertical as charge attack), improved trip, rake (+8/+8 melee for an additional 1d6+1 damage each against tripped opponents), adhesive tongue, swallow whole, smite good (1/day +12 damage versus good target), poison (Fortitude save DC 18 if bitten, 12 if touching its skin or suffer 1d6/1d6 temporary Str damage)</specialattacks>
                <specialqualities type="string">darkvision (60 ft.), cold and fire resistance (10), damage resistance (5/+1), spell resistance (12)</specialqualities>
                <spacereach type="string">5 ft/5 ft</spacereach>
                <alignment type="string">NE</alignment>
                <fortitudesave type="number">6</fortitudesave>
                <reflexsave type="number">7</reflexsave>
                <willsave type="number">1</willsave>
                <strength type="number">14</strength>
                <dexterity type="number">16</dexterity>
                <constitution type="number">14</constitution>
                <intelligence type="number">6</intelligence>
                <wisdom type="number">14</wisdom>
                <charisma type="number">12</charisma>
                <skills type="string">Listen +6, Spot +6, Swim +10</skills>
                <feats type="string">Improved Initiative, Weapons Finesse (tongue), Weapon Focus (bite)</feats>
            </id-00019>
    --Steve Peterson

  2. #2
    Data saved by FG lists the nodes alphabetically, you can't define a custom order. The XML itself is not picky about the order of items though, so if you simply want to input data yourself, the order of the items does not matter.
    Tero Parvinen
    Fantasy Grounds Guru

  3. #3
    Thanks.

    I probably just won't bother with the XML then -- it's rather difficult to visually parse when the stats are spread all over the entry and even the monster name is buried in the middle.
    --Steve Peterson

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
  •  
DMsGuild

Log in

Log in