Senior Member
Join Date: Sep 2011
Location: Wisconsin
Posts: 321
|
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. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
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. |
#2 |
Senior Member
Join Date: Sep 2011
Location: Wisconsin
Posts: 321
|
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. |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
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. |
#4 |
Senior Member
Join Date: Sep 2011
Location: Wisconsin
Posts: 321
|
Thanks much for the clarification. It helped a lot.
Some days I don't know why I bother to chew through the restraints. |
#5 |
|
|