• 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

Weapon Ranges and Melee Damage

zarlor

Well-known member
I have a couple of things that have cropped up recently that I'm wondering if anyone else has some ideas on, both from Weird Wars: Rome.

The Mighty Throw edge should increase the range increment for thrown weapons. Does anyone know if there is a way to do that? My only thought currently would be to have a separate set of each of the thrown weapons just set with that range but that all have a pre-req of having the Mighty Throw edge. Maybe doing something to tag them so they are automatically added to inventory but hidden unless the Edge Exists?

The other one is I want to throw out there is for the Blood & Guts edge, where I would like to add a +1 to damage, but only with melee weapons or when unarmed. I suppose I could just throw out an activateable modifier on the In-Play tab for it, but maybe there is a way I'm just not thinking of right now to conditionally add that modifier in for non-ranged weapons that I'm not thinking of that some of you might have some ideas about.
 
Caped was gracious enough to point me in a better direction for these so I have one working, but not the other.

For adding +1 to all Melee Damage I used the following at Pre-Traits/5000:
Code:
foreach pick in hero from WeapMelee
   eachpick.field[wpDmgBonus].value += 1
nexteach
perform hero.child[wpUnarmed].setfocus
   focus.field[wpDmgBonus].value += 1

Doing the replacement on thrown weapons, however, isn't quite working. I've tried the following at Pre-Traits/5000 and, Final/5000 and even Render/5000 but I can't seem to get the thrown weapon ranges replaced with 4/8/16. here's the code:
Code:
foreach pick in hero from WeapRange
   if (tagis[Weapon.Thrown] <> 0) then
      eachpick.field[wpShort].value = 4
      eachpick.field[wpMedium].value = 8
      eachpick.field[wpLong].value = 16
   endif
nexteach

Anyone have some ideas what I might be messing up there? I'm just not seeing it.
 
I'm not seeing any problems, either. Is that all of the code in the script? If there's anything else, the problem could be elsewhere.
 
No, but here's the full thing if it helps.
Code:
  <thing id="edgWRMigTh" name="Mighty Throw" description="The hero has learned special throwing techniques. He increases the range brackets of thrown weapons to 4/8/16. He also causes an extra +1 damage when using thrown weapons at targets within short range." compset="Edge" summary="Increase throw range: +1 throwing dmg at short range" uniqueness="unique">
    <usesource source="WWR"/>
    <tag group="MinRank" tag="1" name="Seasoned" abbrev="Seasoned"/>
    <tag group="User" tag="NeedWild" name="NeedWild" abbrev="NeedWild"/>
    <tag group="EdgeType" tag="Combat"/>
    <eval phase="Render" priority="5000"><![CDATA[foreach pick in hero from WeapRange
   if (tagis[Weapon.Thrown] <> 0) then
      eachpick.field[wpShort].value = 4
      eachpick.field[wpMedium].value = 8
      eachpick.field[wpLong].value = 16
   endif
nexteach]]></eval>
    <exprreq message="Throwing d10 required."><![CDATA[#traitfound[skThrowing] >= 5]]></exprreq>
    <exprreq message="Strength d8 required."><![CDATA[#trait[attrStr] >= 4]]></exprreq>
    </thing>
 
Well, time to start testing all the details:

Code:
debug "Starting the script"
foreach pick in hero from WeapRange
debug "Found weapon: " & eachpick.field[name].text
   if (tagis[Weapon.Thrown] <> 0) then
debug "It's a throwing weapon"
debug "Current ranges: " & eachpick.field[wpShort].value & "/" & eachpick.field[wpMedium].value & "/" & eachpick.field[wpLong].value
      eachpick.field[wpShort].value = 4
      eachpick.field[wpMedium].value = 8
      eachpick.field[wpLong].value = 16 
debug "Final ranges: " & eachpick.field[wpShort].value & "/" & eachpick.field[wpMedium].value & "/" & eachpick.field[wpLong].value

   endif
nexteach
 
********** Start Evaluation Cycle **********

Starting the script
Found weapon: Axe, Thrown
Found weapon: Pugio (Dagger), thrown
Found weapon: Sling


That's odd. Sling, of course, should not have show up as as Thrown weapon. Both of the other's are the Thrown version of their weapons.

So what I can see for the Axe, Thrown entry I have is this:

Code:
  <thing id="wpWRAxeTh2" name="Axe, Thrown" description="(This version is automatically added if you acquire an Axe)." compset="Ranged">
    <fieldval field="wpDamage" value="Str+d6"/>
    <fieldval field="wpShort" value="3"/>
    <fieldval field="wpMedium" value="6"/>
    <fieldval field="wpLong" value="12"/>
    <fieldval field="grCost" value="Mil"/>
    <usesource source="WWR"/>
    <tag group="Weapon" tag="Thrown" name="Thrown" abbrev="Thrown"/>
    <tag group="WeaponType" tag="MedRange" name="Medieval Ranged" abbrev="Medieval Ranged"/>
    <tag group="Hide" tag="Equipment"/>
    </thing>

So the tag looks right to me, but it's not showing the "It's a thrown weapon" debug message. :(
 
Back
Top