Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Bonus feat validation (http://forums.wolflair.com/showthread.php?t=7368)

Abrion December 26th, 2007 07:16 AM

Bonus feat validation
 
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.

Lawful_g December 26th, 2007 12:40 PM

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

Colen January 2nd, 2008 09:01 PM

Bonus feat validation
 
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


All times are GMT -8. The time now is 10:10 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.