FG Spreadshirt Swag
  1. #1
    bmos's Avatar
    Join Date
    Jun 2019
    Location
    Maine, USA
    Posts
    2,259

    ruleset suggestion

    In the ruleset, hit dice must be entered like "5d6+5d6+0" but paizo statblocks can also be presented as "10 HD; 5d6+5d6"
    I have accommodated for this format in my Live Hitpoints extension and it could be integrated into the ruleset.
    in the addNPC function of manager_combat2.lua, just change this:
    Code:
    	if sOptHRNH == "max" and sHD ~= "" then
    		nHP = StringManager.evalDiceString(sHD, true, true);
    	elseif sOptHRNH == "random" and sHD ~= "" then
    		nHP = math.max(StringManager.evalDiceString(sHD, true), 1);
    	end
    to this
    Code:
    	if sOptHRNH == "max" and sHD ~= "" then
    		sHD = string.gsub(sHD, "%d+%s-HD%;", "")
    		nHP = StringManager.evalDiceString(sHD, true, true);
    	elseif sOptHRNH == "random" and sHD ~= "" then
    		sHD = string.gsub(sHD, "%d+%s-HD%;", "")
    		nHP = math.max(StringManager.evalDiceString(sHD, true), 1);
    	end
    bmos' extensions
    he/him | Discord Tag: wil.thieme#3396

  2. #2
    Will this require any changes to the NPC stat blocks?
    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?-Idea Informer

  3. #3
    bmos's Avatar
    Join Date
    Jun 2019
    Location
    Maine, USA
    Posts
    2,259
    Quote Originally Posted by superteddy57 View Post
    Will this require any changes to the NPC stat blocks?
    Nope. It would simply also allow for this less-common alternate format to how hit dice are presented in Pathfinder 1e.
    bmos' extensions
    he/him | Discord Tag: wil.thieme#3396

  4. #4
    I just tested with the code you provided and it's not working very well. Where do you collect the sHD?
    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?-Idea Informer

  5. #5
    Ok, in my haste I pasted over most of the function.
    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?-Idea Informer

  6. #6
    Do you have a stat block I can do testing with? I'm not finding many with the HD in the block
    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?-Idea Informer

  7. #7
    bmos's Avatar
    Join Date
    Jun 2019
    Location
    Maine, USA
    Posts
    2,259
    Quote Originally Posted by superteddy57 View Post
    Do you have a stat block I can do testing with? I'm not finding many with the HD in the block
    Helekheterie from Ruins of Azlant AP Book 2 Into the Shattered Continent apparently has this.
    The module conversion people generally adapt the format when converting for FG, but sometimes it gets missed.
    I haven't come across it myself, but someone reported it as an issue with my extension so I thought I'd suggest the fix I used so module conversion folks can work a little less hard
    And this way statblocks can keep more of the original format.
    Last edited by bmos; December 3rd, 2021 at 00:30.
    bmos' extensions
    he/him | Discord Tag: wil.thieme#3396

  8. #8
    I'm all for making DLC creation easier. Just want to make sure this does not mess up anything unforeseen

    Let play with this for a bit and I'll toss it up for review.
    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?-Idea Informer

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
  •  
FG Forge

Log in

Log in