• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Trying to add an adjustment that gives Resistance and Vulnerability

jjashley

Well-known member
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
 
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:
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.?]
 
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
 
Back
Top