Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old June 17th, 2016, 04:02 PM
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

Quote:
~ 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:


Quote:
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 . . .

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #1 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old June 23rd, 2016, 06:01 PM
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.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old June 23rd, 2016, 07:28 PM
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.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #3 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old June 23rd, 2016, 07:30 PM
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

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #4 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old June 23rd, 2016, 07:33 PM
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.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #5 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old June 23rd, 2016, 07:53 PM
Quote:
Originally Posted by Mergon View Post
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.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #6 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old June 23rd, 2016, 07:54 PM
Hmmmm . . . an array. didn't notice that. I'll have to take another look. Thanks for the info.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #7 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old June 23rd, 2016, 09:32 PM
Quote:
Originally Posted by Mergon View Post
Hmmmm . . . an array. didn't notice that. I'll have to take another look. Thanks for the info.
You have been using the #extradamage[] macro right as it takes care of loading the array for you. Makes it very simple.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #8 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old June 23rd, 2016, 09:35 PM
Nope, didn't even know that macro existed. Added it to my useful macro list

Got a list of other such tidbits?

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #9 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old June 24th, 2016, 11:15 AM
Quote:
Originally Posted by Mergon View Post
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.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #10 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:17 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.