• 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

My latest Eval Script issue...

Enforcer84

Well-known member
Because I can brute force but I never seem to grasp the why...

I have a Class ability for a channelling class.

It's called Convictions, it functions pretty much like Aura of Mercy for Paladins...

The Class is Neutral and allows choice between channelling positive or negative energy.

So I found a feat with this prereq: hero.tagis[Hero.ChanPos] <> 0
so I'm trying to write something like this:

if hero.tagis[Hero.ChanPos] <> 0
then hide this ability from the list of Convictions. (Clearly, this is the part I'm having trouble with)


Help a horrible coder?
 
Do you mean that the selections you're creating should only be legal to take if the character can channel positive energy?

If that's what you mean, I'd do this as a prereq, not a script. Look through the feats list. Any feats you can find (turn undead, for example) that require the character to be able to channel positive energy? Take a look at their prereqs.
 
Ok that's kind of what I thought. I'm trying to see this. I'm imagining a list like the Paladin's Mercies. Some of the mercies can only be taken if you channel Positive, some only negative. If you don't meet that particular mercy's channel req it will remain ghosted on the list, correct?
 
Back
Top