Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
Fenris447
Senior Member
 
Join Date: Sep 2017
Posts: 510

Old January 22nd, 2022, 03:57 PM
I've been working on updating SRD monsters in the Community Pack, and in doing so realized that our implementation of the Beast Master's Animal Companion is flawed.

It properly excludes all Large+ creatures, all non-beasts, and all swarms of beasts using a tag expression:

Code:
      searchexpr = "((hasbootstrap:tpBeast) & (RaceSize.Tiny12 | RaceSize.Small11 | RaceSize.Medium0) & !SwarmSize.?)"  & excrace
This is great. But there's another requirement: the beast must not be more than CR 1/4. Because we can't test for fields (rCR is the field for CR) in tag expressions, we had to manually exclude any CR 1/2+ beasts that otherwise fit the requirements:

Code:
      excrace = "& !thingid.rApe & !thingid.rBlackBear & !thingid.rGiantGoat & !thingid.rGiantSea & !thingid.GiantWasp & !thingid.rReefShar & !thingid.rWarhorse & !thingid.r5CJaculi & !thingid.r5CALGtHGo & !thingid.r5CSumBst & !thingid.r5CBstLnd & !thingid.r5CBstSea & !thingid.r5CBstSky"
I realized this list hasn't been updated for stuff like VGM, which had the Deinonychus that needed to be added. But since there's a high likelihood that new beasts will need to be added to the list, I thought we could do better. So I set up a foreach that will look through all beasts that otherwise fit the description, check their CR, and add them to an exclusion tag expression if they should be kept out:

Code:
foreach thing in BaseRace where "((hasbootstrap:tpBeast) & (RaceSize.Tiny12 | RaceSize.Small11 | RaceSize.Medium0) & !SwarmSize.?)"
      if (eachthing.field[rCR].value > 0.25) then
          excrace &= " & !" & eachthing.tagids[thingid.?,""]
          endif
          nexteach
So from now on, we won't need to manually update the list. It'll just pull stuff in automatically and exclude them from selection.

Incoming New Adjustment!

On top of that, I noticed that there have been multiple forum posts asking how to add a creature that otherwise doesn't meet these requirements (like a dragon wyrmling or a displacer beast) as the companion. I'm going to try and design an adjustment that will let you pick any creature and add it to the list as an option. Wish me luck!

Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub.

Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts!

Last edited by Fenris447; January 22nd, 2022 at 07:29 PM.
Fenris447 is offline   #1 Reply With Quote
jbearwillis
Senior Member
 
Join Date: Dec 2009
Location: Independence, Mo
Posts: 786

Old January 22nd, 2022, 04:06 PM
Nice work....
jbearwillis is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:43 AM.


Powered by vBulletin® - Copyright ©2000 - 2022, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.