RayPrancer wrote:
>
>
> After looking at the pre-requisite scripts for the Power Attack feat I
> understand how to phrase minimum attibute prerequisites, but I have some
> Feats with requirements of no more than 9 Intelligence or no more than
> 10 Charisma - how would I go about adding these?
The prereq for Power Attack does this:
if (child[aSTR].field[aFinalVal].value >= 13) then
@valid = 1
endif
You can read this as "If the final strength value is greater than or
equal to 13, we're valid".
If you want to say "less than or equal" instead, you'd simply do this:
if (child[aSTR].field[aFinalVal].value <= 13) then
@valid = 1
endif
The only change is that the >= (greater than or equal) sign has been
swapped for <= (less than or equal). So a requirement for 9 or less
intelligence would look like this:
if (child[aINT].field[aFinalVal].value <= 9) then
@valid = 1
endif
Hope this helps,
--
Colen McAlister (colen@wolflair.com)
Chief Engineer, Lone Wolf Development
http://www.wolflair.com/