• 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

help with eval script

Darius Darksoul

Active member
Can some tell me what Would happen if I removed abValue2 I looked in the whole script and cant find a value for abValue2 I think that is what is causing the 0 to be displayed after the modified sneak attack value


Finial Phase 10000

~our bonus is level /2, min 1
var bonus as number
bonus = field[xTotalLev].value / 2
field[abValue].value += maximum(round(bonus 0,1),1)
field[livename].text = "Strong Sneak Attack +" & field[abValue].value & "d8"
field[abSumm].text = "+" & field[abValue].value & "d8 damage if you flank your target or your target is flat-footed."



~And now, add our extra damage
doneif (field[abilActive].value = 0)

~there are abilities that alter sneak attack, and they'll add their own
~extradamage, so we don't want to add the base damage in those cases.
doneif (hero.tagis[Custom.AltSneak] <> 0)

foreach pick in hero from BaseWep
#extradamage[eachpick, " plus " & field[abValue].value & "d8" & field[abValue2].value & " sneak attack",field[thingname].text]
nexteach
 
Back
Top