• 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

Script help for activated ability

Meridias

New member
I'm making a new class (well, updated old class) and one of the abilities is functionally very similar to Sneak Attack. But instead of adding damage to all your equipped weapons, I would like to have the script check to see if a) you have a Weapon Focus for the weapon and b) that weapon is a bow. I don't know much of the language so figuring out the syntax is a little beyond me. Would anyone be willing to help me out or point me in the right direction to something that's close so I can try to figure it out?
 
You need to do what is called a foreach loop to find all the weapon on the character. I don't know where you getting the "extra damage" string from so you need to replace XXXXXXXX below with your extra damage string value.

Final/1000 <- This is the timing you should run the script at.
Code:
~ Loop through all bows that have weapon focus
foreach pick in hero from BaseWep where "Broadcast.WepFocus & wFtrGroup.Bows"
  #extradamage[eachpick,[B]XXXXXXXXX[/B],field[name].text]
nexteach
 
Back
Top