• 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

Only at 1st level

dartnet

Well-known member
How would you set up a feat so it can only be picked at 1st level but is not an error to have it at later levels?
 
dartnet wrote:
>
>
> How would you set up a feat so it can only be picked at 1st level but is
> not an error to have it at later levels?

You'd have to give it a pre-requisite that returned true if you were
first level, or if the feat was a pick. So something like this:


-----

~ We're invalid by default
@valid = 0

~ If we're level 1, we're valid
if (hero.child[Totals].field[tLevel].value <= 1) then
@valid = 1
endif

~ If the pick has already been added to the hero, we're valid
if (@ispick <> 0) then
@valid = 1
endif

-----


You won't be able to validate it once it's been added to the hero, but
you can make it grey out in the list if you're over level 1.


Hope this helps,


--
Colen McAlister (colen@wolflair.com)
Chief Engineer, Lone Wolf Development
http://www.wolflair.com/
 
Back
Top