Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 26th, 2011, 09:43 AM
I realized I didn't think to handle custom/magic armors of the correct type.

In the next update, I'll make handling the armors and custom/magic versions of the same armor easier to accomplish, but for now, you'll need to add a second foreach to your script to search the custom/magic armors (add this at the bottom of the script):

Code:
 
foreach pick in hero from BaseArmor where "thingid.iMagArmor"
  if (eachpick.gizmo.tagcountstr[searchexpr] <> 0) then
    eachpick.field[arArmorChk].value += field[abValue].value
    eachpick.field[arMaxDex].value += field[abValue].value
    endif
  nexteach
(I haven't tested that yet, so please tell me if I missed anything)
Mathias is online now   #11 Reply With Quote
unforgivn
Member
 
Join Date: Dec 2010
Posts: 62

Old March 28th, 2011, 09:11 AM
Yeah, it works. Thanks.
unforgivn is offline   #12 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 09:40 AM.


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