• 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

Disabling a feat

Bob G

Well-known member
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!
 
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.
 
Back
Top