Junior Member
Join Date: Jun 2017
Location: San Diego, CA
Posts: 21
|
Hello, All,
I am wondering if there is a way to make a magic item's benefits only apply if the character who is equipped with it has a certain class ability (in this case, the favored enemy ability that Ranger's have). Any help would be appreciated. Thanks |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
What's the text of the ability? There could be a few different ways, some easier than the others. In all honesty unless you're worried the item will be passed around to different characters it's not usually to much to worry about enforcing this kind of thing.
Easiest way is just to use an eval rule to check if they have the ability after it's put on and throw and error if not. |
#2 |
Junior Member
Join Date: Jun 2017
Location: San Diego, CA
Posts: 21
|
Thanks Andrew,
Do you know the scripting I would need to do to create that eval rule? I'm still learning how to traverse the object hierarchy. |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Code:
#resmax[resEnemSel] <> 0 Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#4 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Otherwise you can use #hasability[???] <> 0 where ??? is the id of the specific favored enemy you want.
|
#5 |
Junior Member
Join Date: Jun 2017
Location: San Diego, CA
Posts: 21
|
Thanks for your help guys. I really appreciate it.
|
#6 |
|
|