• 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

How do I alter the range brackets of a weapon?

kevheath

New member
I'm currently working on adding the hindrances and edges from the Savage Worlds Ultimate Character Guide by Aaron T. Huss (Mystical Throne Entertainment) and I have hit upon and edge that has become a headache. I was able to get the minimum rank set and the expression requirements of Agility d8 required, Strength d8 required and Shooting d8 required all worked out.

However, Crack Shot states "The range brackets for all his Shooting ranged attacks increases by +3/+6/+12." I'm not really sure how to write the eval script to tell it to do that, if it would end up having to be applied to a single "special" weapon, as it is with Trademark weapon's bonus to attack...or if it is even feasible in Hero Lab. Any guidance would be appreciated.
 
Take a look in the Common Code Examples thread. There is an example there near the bottom of the third post of searching through the weapons and setting a range. In your case you'd look for shooting weapons, rather than thrown, and add a bonus rather than directly setting it. See if that helps, but if you need something more direct let me know that too, I'd just need a bit more time than I have right now to sit down and do it.
 
I think it would be something like this (assuming Edge covers Thrown and Bow type weapons):

Code:
<eval phase="PreTraits" priority="5000"><![CDATA[foreach pick in hero from WeapRange 
  if (eachpick.tagis[Weapon.Bow] + eachpick.tagis[Weapon.Thrown] <> 0) then 
     eachpick.field[wpShort].value += 3 
     eachpick.field[wpMedium].value += 6 
     eachpick.field[wpLong].value += 12 
  endif 
nexteach]]>
</eval>
 
I would assume it would not include Weapon.Thrown since the text quoted states "Shooting" and thrown weapons use... well... Throwing. And since it's a generic guide you'd likely have to either include other non-Bow, but while not including Thrown, ranged weapons OR simply select each pick that isn't Weapon.Thrown.
 
Back
Top