Junior Member
Join Date: Apr 2012
Posts: 7
|
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.
|
#1 |
Junior Member
Join Date: Apr 2012
Posts: 7
|
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 |
#2 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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? |
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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 |
#4 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
#5 |
Junior Member
Join Date: Mar 2013
Location: Sydney, Australia
Posts: 9
|
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 I just don't know how to assign the weapon finesse feat to a hero yet. |
#6 |
Junior Member
Join Date: Apr 2012
Posts: 7
|
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. |
#7 |
|
|