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 February 1st, 2018, 09:09 AM
I'm trying to add an adjustment that will show a character as having Resistance to Piercing and Vulnerability to Slashing. Can't quite figure out what I'm doing wrong.

The script is as follows: Pre-levels Priority 10000

~ if we've been disabled, get out now
doneif (tagis[Helper.Disable] <> 0)

~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)

~ Set the damage vulnerability to the hero
perform hero.pushtags[DamageVuln.dtSlashing]


~ Set the damage resistances to the hero
perform hero.pushtags[DamageRes.dtPiercing]


This works on ability if I change pre-levels to post levels and remove the enabled portion. Just can't get it to work as an adjustment. Any advice on what I'm doing wrong?

Joe
jjashley is offline   #1 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 608

Old February 1st, 2018, 11:27 AM
try

perform hero.assign[DamageVuln.dtSlashing]

and

perform hero.assign[DamageRes.dtPiercing]


pushtags is generally used when you are using pulltags beforehand to grab some tags using a wildcard, and then pushtag them on to the hero.

Example of a pushtag script that works to grant weapon proficiencies based on finding a weapon property:
Quote:
foreach thing in BaseWep where "!wProperty.Heavy"
~ grab all weapon proficiency tags from the weapon
perform eachthing.pulltags[WepProf.?]
nexteach

~ Now push all tags to the hero
perform hero.pushtags[WepProf.?]
dungeonguru is offline   #2 Reply With Quote
jjashley
Senior Member
 
Join Date: Jan 2017
Posts: 139

Old February 1st, 2018, 11:36 AM
ok feeling silly because I'm pretty sure I have a note somewhere with assign. Not sure why my eyes weren't registering that I had pushtag and not assign. Thank you very much.

Joe
jjashley is offline   #3 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 12:08 PM.


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