• 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

Replace Sneak Attack

Kaleb

Well-known member
I want to make a Slayer Talent that replaces sneak attack with Greater sneak attack that changes the die type for sneak attack for a d6 to a d8. I have made the changes to change the die type but am unsure how to replace sneak attack with greater sneak attack.
 
Well you the easiest thing would be to just #value2[cSneakAtk] += (whatever the dice change is so its d8 it's be += 2)

then really late at like Render 110000 do something like

Code:
hero.child[cSneakAtk].field[livename].text = "Greater " & hero.child[cSneakAtk].field[livename].text
 
Last edited:
Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'cGRSnAttk' (Eval Script '#3') on line 1
-> Non-existent field 'livenname' used by script

hero.child[cGRSnAttk].field[livenname].text = "Greater " &= hero.child[cGRSnAttk].field[livenname].text

hero.child[cSneakAtk].field[livenname].text = "Greater " &= hero.child[cSneakAtk].field[livenname].text

I got the same syntax error on both scripts
 
This is where you have to double check it instead of just copy/pasting and assuming it will work.

I had a typo it's "livename" not "livenname"
 
Back
Top