Senior Member
Join Date: Jan 2017
Posts: 139
|
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 |
#1 |
Senior Member
Join Date: May 2016
Posts: 608
|
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 |
#2 |
Senior Member
Join Date: Jan 2017
Posts: 139
|
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.
|
#3 |
Senior Member
Join Date: Jan 2017
Posts: 139
|
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.
|
#4 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
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! |
#5 |
Senior Member
Join Date: Jan 2017
Posts: 139
|
Thanks Mergon, I didn't know that adjustment existed. With that then I don't feel a need to do anything more.
|
#6 |
|
|