Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Magic item that only works for a character with a certain class ability (http://forums.wolflair.com/showthread.php?t=58703)

boeman July 3rd, 2017 09:02 PM

Magic item that only works for a character with a certain class ability
 
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

AndrewD2 July 3rd, 2017 10: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.

boeman July 3rd, 2017 10: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.

ShadowChemosh July 4th, 2017 09:04 AM

Quote:

Originally Posted by boeman (Post 252289)
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

AndrewD2 July 4th, 2017 09:07 AM

Otherwise you can use #hasability[???] <> 0 where ??? is the id of the specific favored enemy you want.

boeman July 4th, 2017 09:16 PM

Thanks for your help guys. I really appreciate it.


All times are GMT -8. The time now is 09:20 PM.

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