• 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

Invaliding items

AndrewD2

Well-known member
Is it possible to set an eval script that will make an item show as invalid or do I just need to use an eval rule?

In this case I have an alchemist archetype that says they can never take a couple of different discoveries and right now I have them set with an eval rule that trips if they take them, but it would be nice to be able to invalidate it so it shows as greyed out.
 
Well, you could copy/replace the target discoveries and add an pre-req that invalidates them if your archetype is present. That sort of thing is not ideal because it means any changes to those we make won't be reflected to anyone with your data file. And there can only be a single replace for a particular thing, so if anyone else ever tries to do the same, they would hit an error.

I think in this case, there should be a twofold solution. Have your archetype modify the alchemist's candidate expression field to exclude the specific discoveries you want to forbid, and have an eval rule on the archetype that complains if they have already been added. The former prevents folks from adding the wrong stuff, the latter alerts them they should delete the wrong stuff if they add discoveries first and the archetype second.
 
Thanks Aaron, you'd think after just working with cSpellExpr I would have thought about the expression for the Custom Abilities.
 
Back
Top