Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Angela2013
Senior Member
 
Join Date: Sep 2011
Location: Wisconsin
Posts: 321

Old March 9th, 2022, 09:10 AM
I need to make a size Pre-req for a feat. To gain the feat you need to be Large or larger. I have checked all of the scripts that I have but cannot find anything that works.

If someone could point me in the right direction or has a script that I can use, it would be greatly appreciated.

Some days I don't know why I bother to chew through the restraints.
Angela2013 is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 9th, 2022, 09:50 AM
Like the languages from your last request, the size of a character is stored in tags on the hero, so the same instructions on how to look it up yourself apply. Since huge, gargantuan and colossal all count for this prereq, you'll need several test characters (like an ogre, a giant, a titan, etc.), and once you have the tags, you can assemble all the legitimate tags together using tagexpr:

hero.tagexpr[Group1.Tag1 | Group2.Tag2 | Goup3.Tag3 | Group4.Tag4] <> 0

That way, if the character has any of those tags, it's legal.

Last edited by Mathias; March 9th, 2022 at 10:01 AM.
Mathias is offline   #2 Reply With Quote
Angela2013
Senior Member
 
Join Date: Sep 2011
Location: Wisconsin
Posts: 321

Old March 10th, 2022, 12:00 PM
I have tried this:

hero.tagexpr[Group1.size.Large | Group2.size.Huge | Goup3.size.Gargantuan | Group4.size.Colossal] <> 0

and this

hero.tagexpr[size.Large | size.Huge | size.Gargantuan | size.Colossal] <> 0

neither of which worked.

This is the error I got:

Script 1
Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'pre-requisite rule' script for Thing 'fMYLarCharge' on line 1
-> Invalid tag template specified: 'Group1.size.Large'

Script 2
Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'pre-requisite rule' script for Thing 'fMYLarCharge' on line 1
-> Tag 'size.Large' not defined

Some days I don't know why I bother to chew through the restraints.

Last edited by Angela2013; March 10th, 2022 at 12:07 PM.
Angela2013 is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 10th, 2022, 12:29 PM
Capitalization matters - it's Size.Large, not size.Large

Tags are always going to be two strings paired by a period - a tag group, followed by the individual tag id. So in this case, Size is the tag group, and Large is the individual tag.
Mathias is offline   #4 Reply With Quote
Angela2013
Senior Member
 
Join Date: Sep 2011
Location: Wisconsin
Posts: 321

Old March 11th, 2022, 08:21 AM
Thanks much for the clarification. It helped a lot.

Some days I don't know why I bother to chew through the restraints.
Angela2013 is offline   #5 Reply With Quote
Reply


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 11:27 PM.


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