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
jjashley
Senior Member
 
Join Date: Jan 2017
Posts: 139

Old March 31st, 2019, 09:59 AM
Is there a way via script to change the damage type of a single weapon from say piercing to bludgeoning? I know the tag is DamageType.dtPiercing, and the field is wDmgType, just not sure how to actually change it from piercing to bludgeoning or slashing or whatever. Any help will as always be appreciated.

I thought maybe this would do it but alas I was wrong again:

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

eachpick.field[wDmgType].text &= "bludgeoning"
nexteach
jjashley is offline   #1 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 608

Old April 1st, 2019, 06:30 AM
Usually with damage types you're replacing or overwriting a tag, not field values:

Something more like:

perform eachpick.assign[wDamTypeOvr.dtPiercing]

the wDamTypeOvr.??? tag set can be used to overwrite base damage types.

Over on github there's a little writeup on Natural Attacks that apply to a lot of melee/ranged fields and tags:

https://github.com/Sklore/HL_DD_5e_C...atural-Attacks
dungeonguru is offline   #2 Reply With Quote
jjashley
Senior Member
 
Join Date: Jan 2017
Posts: 139

Old April 1st, 2019, 09:25 AM
ok I was looking in the wrong place on the github because I did look thru the material there just not at the right stuff apparently. Thanks Dungeon.
jjashley is offline   #3 Reply With Quote
jjashley
Senior Member
 
Join Date: Jan 2017
Posts: 139

Old April 1st, 2019, 09:46 AM
Will that work for an existing weapon, or is that only for other natural weapons melee or ranged? I used perform eachpick.assign[DamTypeOvr.dtBludgeon] on a morning star and when I check the tags for the weapon it shows a DamTypeOvr tag with Bludgeoning but it still shows Piercing as the Damage type. I was to not have to do an other natural melee but if that's the way I need to do it then that's what I'll do.
jjashley is offline   #4 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old April 2nd, 2019, 08:43 AM
You might want to take a look at the scripting involved for the 'Weapon, Damage Type' adjustment in the Equipment section of the Adjustments tab.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #5 Reply With Quote
jjashley
Senior Member
 
Join Date: Jan 2017
Posts: 139

Old April 2nd, 2019, 12:18 PM
Thanks Mergon, I didn't know that adjustment existed. With that then I don't feel a need to do anything more.
jjashley is offline   #6 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 09:13 PM.


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