• 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

Feat to make weapon count as Finesse Weapon?

Javaed

Member
I'm hoping somebody can provide me with a custom feat that makes a weapon count as a Light weapon for feats like Weapon Finesse and Improved Weapon Finesse. I'm specifically looking for Graceful Edge, but any feat that would let me make a specific weapon count as a Light weapon would be appreciated.
 
So I haven't found anything created online and I've only seen one thread where somebody started working on the Graceful Edge feat. I'm going to try creating my own then. Could somebody give me a hand with assigning the Weapon Finesse property to a weapon type?

For now I have the feat selecting from all weapons. I've looked at the Weapon Focus feats to try to figure out how to apply Weapon Finesse to the selected weapon type. Would it be something like this:

foreach pick in hero where "IsWeapon."
perform eachpick.assign[Helper.Finesse]
nexteach
 
You've got the right idea. What your code is currently doing is cycling through Every pick (armor, weapon, class abilities, classes, templates, everything), so you'll probably want to narrow that to just weapons at the very least. Also, I think you need a wildcard "?" after IsWeapon or you might get an error.

However, I think you just want to apply the tag to 1 specific chosen weapon. Is that correct?
 
I'm gonna assume you do want the feat to apply to a single chosen weapon, since you stated you looked at Weapon Focus. If you want it to apply to a group of related weapons, that's a different kettle of fish.

Look at the editor at your feat, there should be a section that says "Select From..." and a dropdown. You probably want to set that to all weapons, then give your feat an eval script like this:

Code:
  ~ First, we want to stop if nothing has been chosen
  doneif (field[fChosen].ischosen = 0)

  ~ Now we want to pull the IsWeapon tag from our selected weapon.
  perform field[fChosen].chosen.pulltags[IsWeapon.?]

  ~ Now we want to create a string of letters (a string variable) which matches the tag we just pulled. We can name this anything we want, but since we are about to use this in a search expression, we will call it "searchexpr"
  var searchexpr as string
  searchexpr = tagids[IsWeapon.?]

  ~ Next we want to cycle through all weapons on the hero. If that weapon matches our chosen IsWeapon tag, then apply Helper.Finesse to make that a Finessable weapon
  foreach pick in hero from BaseWep where searchexpr
    perform eachpick.assign[Helper.Finesse]
    nexteach
 
As always, code is off the top of my head and not tested, so you may have to tweak it. Also, Timing is likely to be very important. I'd run the script sometime in Pre-Levels.
 
Here is a little bit of code I use to increase the Intimidation circumstance bonus on an Evil NPC when they equip a torture device.
Code:
doneif (this.field[gIsEquip].value = 0)
hero.child[kIntim].field[ModCirc].value += 2
It's applied to the Gear script of the torture device. I think you should be able to do exactly the same thing with your weapon to add the feat.
I just don't know how to assign the weapon finesse feat to a hero yet.
 
Thanks for the help everybody. I apologize for not responding sooner, I was already asleep when ya'll replied =P. I'll give the code you've provided a shot in a few hours.

I do want to apply the effect to a specific selected weapon. Ultimately I want the user to select only from a list of 1-handed slashing weapons, but for now I can live with just selecting any weapon.
 
Back
Top