• 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

Bonus feat validation

Abrion

Member
I was wondering if anyone knows how to disallow a bonus feat for a prestige class character if that character has already had that feat selected from previous levels. Specifically, the prestige class calls for the skill focus feat (spellcraft). Anyone have an ideas,

Thanks.
 
This seems pretty simple, all you have to do is set up a statement that "If hero already has this feat, disable the ability" and then some prestige classes allow you to pick another feat instead, so I'll include that, you can cut it out if it doesn't apply.

Phase: PostLevel

var result as number
var level as number
level = hero.child[cHelpKCr].field[cTotalLev].value
~ Check to see if our level is high enough for us to have this ~ ability
if (level >= 3) then
~ Check to see if we already have the Diehard feat
if (#hasfeat[fDiehard] <> 0) then
result = assign[Helper.SpcDisable]
~ Since we already have Diehard, add 1 to feats allowed so we can ~ take something else in it's place
hero.child[Totals].field[tFeats].value += 1
endif
endif
 
Abrion wrote:
>
>
> I was wondering if anyone knows how to disallow a bonus feat for a
> prestige class character if that character has already had that feat
> selected from previous levels. Specifically, the prestige class calls
> for the skill focus feat (spellcraft). Anyone have an ideas,


I'm not sure I understand what you want - you're saying that the class
requires "Skill Focus - Spellcraft", and so heroes of that class
shouldn't be allowed to take "Skill Focus - Spellcraft" again?


Unless I'm misunderstanding you, if you try to take Skill Focus twice
for the same skill, it should give you a validation error. If not,
that's a bug, and I need to fix it.


Hope this helps,

--
Colen McAlister, colen@wolflair.com
Chief Engineer, Lone Wolf Development
 
Back
Top