direinsomniac
Well-known member
As part of a conversion project I am working on, I am trying to write a script for a feat that increases the non-lethal damage done, but thus far, my attempts to identify the tag(s) that identify non-lethal damage have resulted in compilation errors.
This is the code I am working with:
I found the wSpecial using the debug tags feature on unarmed strike and a sap, two weapons I knew dealt nonlethal damage.
I run into two problems:
1) either wSpecial is a "Non-existent thing"
or
2) "Attempt to access non-existent parent pick for a top-level container from script"
This is the code I am working with:
Code:
if (parent.tagis[component.BaseWep] + parent.tagis[wSpecial.Nonlethal) <> 0 then
#extradamage[parent, "+2 nonlethal",field[name].text]
I found the wSpecial using the debug tags feature on unarmed strike and a sap, two weapons I knew dealt nonlethal damage.
I run into two problems:
1) either wSpecial is a "Non-existent thing"
or
2) "Attempt to access non-existent parent pick for a top-level container from script"