View Single Post
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 608

Old February 21st, 2018, 04:13 PM
Anyone following this conversation, free tip, you can get the Combined Damage types (like bludgeoning, piercing or slashing from nonmagical weapons) via component.DamComType

and your push/pull tags are

DamComRes.?
for resistance

DamComImm.?
for immunity

my personal catch-all damage resistance adjustment goes like this:

Custom Expression: (component.DamageType | component.DamComType)
Restrict First List to: All Things

My code, which I run at first/100 but can be run anywhere early:

Code:
~ If we're disabled, do nothing & 
doneif (field[pIsOn].value = 0)
~ If nothing chosen then get out now!
doneif (field[pChosen].ischosen = 0)

perform field[pChosen].chosen.pulltags[DamageRes.?]
perform field[pChosen].chosen.pulltags[DamComRes.?]
perform hero.pushtags[DamageRes.?]
perform hero.pushtags[DamComRes.?]
I have another adjustment for immunity that is almost exactly the same, just uses the DamageImm.? and DamComImm.? tags.
dungeonguru is offline   #7 Reply With Quote