Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Disabling a feat (http://forums.wolflair.com/showthread.php?t=64491)

Bob G July 5th, 2020 08:06 PM

Disabling a feat
 
Here's the feat I'm working on:
When you are mounted on your dragon steed, you gain a +1 bonus to attack rolls. This bonus does not stack with Weapon Focus. You may use this feat in place of Weapon Focus as a prerequisite for other feats, and treat your dragonrider level as fighter levels for feat prerequisites. However, any feat you qualify for in this way may only be used while you are mounted on your dragon steed.
<First 500>
Code:

~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

~ if we're not mounted on our dragon, get out now.
    doneif (hero.childfound[pstMounted].field[pIsOn].value = 0)

~ this feat doesn't stack with Weapon Focus, so don't add a bonus if the hero has it
    if (hero.tagis[HasFeat.fWepFoc] <> 0) then
    field[abValue].value += 0
    else
    field[abValue].value += 1
    endif

    hero.childfound[Attack].field[Bonus].value += field[abValue].value

But the bonus from Weapon Focus is still adding, so I'm not disabling it correctly. Can anyone suggest an alternate approach? Thanks!

Minous July 6th, 2020 03:52 AM

Its probably a timing issue

Mathias July 6th, 2020 08:08 AM

Rule of thumb - always have a good reason for it if you ever want to have a script that is in the first phage, or a script whose priority is not a multiple of 1000 (our standard is 10000). We have run into so many problems over the years by not being careful, and letting scripts get too early, which causes trouble when we try to create bootstrap conditions.


All times are GMT -8. The time now is 03:44 PM.

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