• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Magic item that only works for a character with a certain class ability

boeman

Member
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
 
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.
 
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.
 
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
 
Otherwise you can use #hasability[???] <> 0 where ??? is the id of the specific favored enemy you want.
 
Back
Top