• 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

Selecting proficient and modifying attack

AndrewD2

Well-known member
Working on a class ability that states:

Oversized Weapons said:
A dahren paragon can wield Gargantuan weapons you are proficient with without penalty.

Obviously for reducing the penalty I'll need to adjust wAttBonus based on gSizeDiff * 2. But I can't for the life of me figure out there where clause in the foreach loop to target only weapons the character is proficient with. Anyone know?
 
Here's what I ended up with:

Final/10000
Code:
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] <> 1)
~ If we've been disabled, get out now
doneif (tagis[Helper.SpcDisable] <> 0)

foreach pick in hero from BaseWep where "Helper.Proficient &! wFtrGroup.Natural"
  if (eachpick.field[gSize].value = 3) then
    if (eachpick.field[gSizeDiff].value > 0) then
     eachpick.field[wAttBonus].value += eachpick.field[gSizeDiff].value * 2
    endif
  endif
nexteach
 
Back
Top