• 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

Another loss

ErinRigh

Well-known member
One of the custom abilities I am creating doubles the weapon's base damage die on the first round of combat so a shortsword does 2d6, a longsword 2d8, and a great sword 4d6.

I am completely at a loss.

I can find the tag for this under wMain and the Fields connected with it are wDamage, wMMainDNum and wMMainDSiz but I don't know what I am doing with them
 
OK, so Vital Strike uses a foreach loop, which I was told to avoid, but seems like this is the only way to do this;

Code:
      foreach pick in hero from AttDam where "!IsWeapon.wBlast"
        ~normally, we only multiply the dice, not the bonuses
        if (tagis[Custom.fMyVitStri] = 0) then
          eachpick.field[wDiceMul].value *= field[abValue].value
          eachpick.field[wRanDiceMl].value *= field[abValue].value
        ~but with the mythic vital strike feat, we multiply everything - dice
        ~and bonuses
        else
          eachpick.field[wDamMult].value *= field[abValue].value
          eachpick.field[wRanDamMul].value *= field[abValue].value
          endif

I think the relevant part is;

Code:
          eachpick.field[wDiceMul].value *= field[abValue].value
          eachpick.field[wRanDiceMl].value *= field[abValue].value

With setting abValue to 2

But I need a foreach for

Code:
foreach pick in hero from AttDam where "?.?"

but I don't know what I am looking for there exactly or where to look, the feat applys to all weapons

Help please
 
Back
Top