Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
boeman
Junior Member
 
Join Date: Jun 2017
Location: San Diego, CA
Posts: 21

Old July 3rd, 2017, 08:02 PM
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
boeman is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 3rd, 2017, 09:07 PM
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.
AndrewD2 is offline   #2 Reply With Quote
boeman
Junior Member
 
Join Date: Jun 2017
Location: San Diego, CA
Posts: 21

Old July 3rd, 2017, 09:22 PM
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.
boeman is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old July 4th, 2017, 08:04 AM
Quote:
Originally Posted by boeman View Post
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.
Favored Enemy is a resource that has a count value. So in this case you would want to see if the character can choose at least one favored enemy yet.

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.
ShadowChemosh is offline   #4 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 4th, 2017, 08:07 AM
Otherwise you can use #hasability[???] <> 0 where ??? is the id of the specific favored enemy you want.
AndrewD2 is offline   #5 Reply With Quote
boeman
Junior Member
 
Join Date: Jun 2017
Location: San Diego, CA
Posts: 21

Old July 4th, 2017, 08:16 PM
Thanks for your help guys. I really appreciate it.
boeman is offline   #6 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 07:54 PM.


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