• 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

Unearthed Arcana - Feats issue

Mergon

Well-known member
Ok, I'm stumped again.

I'm working on the feats from the latest Unearthed Arcana. Everything has been going fine until now.

I'm working on the Spear Mastery feat.

As a bonus action, this fear allows you to increase the reach of a spear by +5 feet.

Now spears are a throw weapon and have no reach so I am trying to add the reach property to a spear with no luck. I've tried a whole bunch of approaches.

Currently I am trying delete the thrown property and assign Reach in its stead.

Here is my code, include the stuff that is working:

Phase: Final, Priority: 10000

~ If we're disabled, do nothing &
doneif (tagis[Helper.Disable] = 1)

foreach pick in hero from BaseWep where "IsWeapon.wSpear"
eachpick.field[wAttMelee].value += 1
eachpick.field[wDSizVers].value += 2
eachpick.field[wDieSize].value += 2

if (field[abilAct2].value <> 0) then
perform eachpick.delete[wProperty.Thrown]
perform eachpick.assign[wProperty.Reach]
endif


doneif (field[abilActive].value = 0)

var sString as string
sString = " (+1d8 piercing damage)"

if (eachpick.field[wIs2nd].value <> 0) then
sString = " (+1d10 piercing damage)"
endif

eachpick.field[livename].text = eachpick.field[thingname].text & sString

nexteach

This is the part that I am workign on:


if (field[abilAct2].value <> 0) then
perform eachpick.delete[wProperty.Thrown]
perform eachpick.assign[wProperty.Reach]
endif

I've also tried tagreplace. I'll increase the reach field by +5 when I can get the reach property to show up. Any suggestions would be appreciated . . .
 
Strange, all of a sudden, my script is working without issues . . .

I tested it all again and since it all seems to be working I'll upload it to the GIT site.
 
If that is extra damage you should be adding it with the extra damage macro instead of changing the live name. Especially send those on iPad will most likely prefer the dice get rolled.
 
The problem I have found with your suggestion is adding the bonus damage from the feat to a spear that is already receiving bonus damage . . . ie. - Flaming Spear
 
Btw, any idea why I cannot attach a zip file any longer on the GIT site? I tried uploading my .user file as a .zip and it wouldn't accept the file.
 
The problem I have found with your suggestion is adding the bonus damage from the feat to a spear that is already receiving bonus damage . . . ie. - Flaming Spear
And? What's the issue. The array of extra damage is like 10 or more elements. Plenty of room.
 
Nope, didn't even know that macro existed. Added it to my useful macro list :)

Got a list of other such tidbits?
 
Nope, didn't even know that macro existed. Added it to my useful macro list :)

Got a list of other such tidbits?
Thousands actually. But how do I tell you about stuff without knowing what you don't' know. :)

Here is Andrew's google docs to Macros. Most should work in 5e.

Honestly my advice is to look at Pathfinder for script examples as so few exist in 5e. Or feel free to search the Community Pathfinder GitHub repository. As 5e is built from Pathfinder allot of the underlying tags, macros will work in either game system.
 
Back
Top