Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
This is a response to a question posted in the Hero Lab Discussion forum - moved here since it's Pathfinder specific.
Quote:
In the develop menu at the top of the program, make sure that the first item "Enable Data File Debugging" is checked, then right-click on the weapon, and select "Show debug tags for XXX" and right click again, selecting "Show debug fields for XXX". Expand those windows to see as much as possible, and then try equipping your weapon in the main hand, in the off hand, in both hands, in no hands - watch how the tags and fields change as that happens. You'll find that if the weapon is equipped in the main hand, the field wIsEquip = 1, and wIs2nd = 1 if it's equipped in the off hand. There are some other fields that change, and some tags that change, but we'll go with these. So, since each of those fields will equal 1 if that hand is used, and 0 if it isn't, you want to know if exactly one hand is being used to hold the weapon. So, add the two fields together: Code:
if (field[wIsEquip].value + field[wIs2nd].value = 1) then hero.child[ArmorClass].field[Penalty].value is a generic penalty. If this item inflicts a circumstance penalty or some other specific penalty, you'll find the instructions for using those in the same "Reference Information" page. Timing: Post-Attributes phase, any priority should work Code:
if (field[wIsEquip].value + field[wIs2nd].value = 1) then hero.child[ArmorClass].field[Penalty].value -= 1 endif |
|
#1 |
Junior Member
Join Date: Dec 2009
Posts: 4
|
Ok, i'm starting to get this i think thanks for the help.
it didn't work at first but then i noticed that wIsEquip wasn't the one effected by the main hand it was gIsEquip. the only thing i could think of as a reason why was that it's an exotic weapon which i probably should have mentioned. i'm gonna try my hand at some more stuff, but i'm fairly sure i'll be back with more questions. |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Whoops - my mistake. I didn't look closely enough at the names as I was writing them down.
gIsEquip starts with a "g" since it applies to gear - on a magic item or armor, since it can only be worn one way, it's whether that item is equipped or not. Since weapons can be equipped in the main hand, off hand, or both, they also have the wIs2nd field for the off-hand. |
#3 |
|
|