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
This is the part that I am workign on:
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 . . .
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 . . .