• 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

Feat Help - Attack bonus

chava

Well-known member
Trying to set up a feat that gives a +3 with a specific weapon. Was looking at Weapon Focus tree for guidelines, but ran into a snag since that tree uses Broadcast.Xfeat.

Phase: Pre-levels, Priority: 5000, Index: 1, no timing
Code:
      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

      ~ If we haven't chosen anything, get out now
      doneif (field[usrChosen1].ischosen = 0)

      ~ Assign the appropriate tag to all weapons that meet the criteria
      var id as string
      id = field[usrChosen1].chosen.idstring
      foreach pick in hero where "IsWeapon." & id
        perform eachpick.hero.child[Attack].field[tAtkMelee].value -= 2
        nexteach

Weapon focus etc have:
perform eachpick.assign[Broadcast.WepFocus]

I can't figure out what to substitute in the 'eachpick' statement to get a +3 attack to the chosen weapon (I tried broadcasting WepFocus x3, but that didn't work)
 
Thank you very much. I'd looked through the feats, but since we don't use the traits in game much I didn't think of them.
 
Back
Top