• 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

Requiring faction for feat

direinsomniac

Well-known member
I was wondering if it was possible to script it so that a player had to be a member of a certain faction in order to take a feat.

In the "Expr-reqs" window, I have tried:
#faction[facMyFactn] <> 0

as well as:

#isfaction
#isfact
#isfac
#hasfaction
#hasfact
#hasfac

but I keep getting a left side expression relational error.
 
Last edited:
After digging around on this site a bit more and learning about the debug feature, I did some experimenting in the "Pre-reqs" window.

I managed to get the feat to accept the script without a left-side relational error by using:

Code:
validif (hero.tagis[trCategory.facMyFactn] <> 0)


however, this has created a different problem, in that even when I select My Faction in the Background tab of the hero's portfolio, the feat remains grayed out and has the red error text that says I need to be a member of My Faction.
 
Last edited:
Next Step: Having it show up on the spellcasting window

As it is right now, the feat is set up to grant a cantrip as a spell-like ability, but it doesn't show up on stat block as a spell-like ability.

The feat I am designing, is in someways similar to the Rogue's "Minor Magic" talent. And as such, I would like for it to operate the same -- i.e. appearing on and opening the spellcasting window in the hero's portfolio.

I have looked over that talent repeatedly, and as far as I can tell there isn't anything that I can see script-wise that allows the rogue's "minor magic" talent to appear on the spellcasting tab, or force it to appear if it's not there.

I figure that the issue of it appearing on the spellcasting window and the appearance on the stat block are linked.
 
Minor Magic shows up on the Spells tab because it is set as a Spell-Like Ability under Special Ability Type.
 
I have both the "Ability Classification" and "Special Ability Type" set to spell-like, but it won't show up.

Edit: (Clarification) The spellcasting window opens or appears, but the neither the feat nor the spell I choose is showing up in the spellcasting window.
 
Last edited:
Back
Top