PF2E Playlist
  1. #1

    Adding New HP/Stats to the npc sheets

    I've been working on an extension for Fantasy Grounds with a friend for a custom game of 5e that she wants to run and we're trying to add another health pool to the creature sheets.
    I've managed to add the extra pools, but I'm not sure how to format it so the number box and everything is between Hit Points and Speed. The box always end up being at the very bottom of the creature page. What can I do to get this to format properly?

    I should probably mention that I have no experience with any programming languages whatsoever and the only experience I have is from fooling around with this code, so please dumb it down as simple as possible, thank you <3

  2. #2
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    14,458
    Blog Entries
    9
    I don't know either, but I can suggest that you post the relevant code you have changed. I suspect any of the community devs who respond will want to know what they are starting with

  3. #3
    All I've changed in the code is in the record_npc.xml and basically what I did was copy the hp block there and pasted it below, renaming the values to something else as well as adding whatever I needed to the strings_5e.xml file for the textres (also adding a minimum value since it won't be going below 0). Here's a snippet from what I have:

    <label_column name="example_label">
    <static textres="char_tooltip_example" />
    </label_column>
    <number_column name="examplewounds">
    <min value="0" />
    </number_column>
    I placed this between the hp and speed bits and I was hoping it would work, but every time I load up the session, it ends up at the bottom of the creature page time and time again.

    I've also tried anchoring it to the HP to see if it would stay up there at all, but that didn't work either. Maybe I did it wrong though.

    If I could get any help at all with this I would forever be grateful.

  4. #4
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    24,057
    Blog Entries
    1

    MoreCore - Generic Ruleset
    --- Projects ---
    Extensions | Tutorials | MoreCore | MoreCore Themes | Call of Cthulhu | Maelstrom | FG Con

  5. #5
    Quote Originally Posted by damned View Post
    Use insertbefore
    Alright, so now I've gotten the stuff where it needs to go.. Only issue is that they're merging into the speed value. How should I format to prevent this from happening?

  6. #6
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    24,057
    Blog Entries
    1
    You need to also replace HP and Speed.
    Redefine HP a little to the Left and Speed a little to the Right.

    MoreCore - Generic Ruleset
    --- Projects ---
    Extensions | Tutorials | MoreCore | MoreCore Themes | Call of Cthulhu | Maelstrom | FG Con

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
  •  
Fantasy Grounds Fridays Pre

Log in

Log in