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
DocSwiv
Junior Member
 
Join Date: Jul 2017
Posts: 3

Old July 23rd, 2017, 02:40 AM
Hi everyone,

Im trying to make a customizable amulet of natural armor using a the customizable bracers of armor as a jumping off point, and while the item works, I cant seem to get it to not stack with other enhancement bonuses to natural armor.

the evalscript Im running looks like this

~ If we're equipped, add a natural armor bonus
if (field[gIsEquip].value <> 0) then
hero.child[ArmorClass].field[tACNatural].value = maximum(hero.child[ArmorClass].field[tACNatural].value, gizmo.child[gCustMagic].field[gCustBonus].value)
endif

and Im just not seeing what is wrong. when equipped at the same time as an amulet of natural armor, both bonuses are added to AC.
if anyone can lend me a second set of eyes, I would greatly appreciate it.
DocSwiv is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 23rd, 2017, 06:07 AM
Natural armor is its own thing, it has a helper pick to which enhancement and other bonuses can be applied, before the final total bonus is shifted to the armorclass pick. Your script is skipping directly to the armorclass pick, so any other bonuses are applied later will stack, including enhancement bonuses applied to the helper. Take at look at the script for normal amulets of natural armor, that should give you an example to follow.
Aaron is offline   #2 Reply With Quote
DocSwiv
Junior Member
 
Join Date: Jul 2017
Posts: 3

Old July 24th, 2017, 01:23 AM
Got it. Im a bit new to this, so I wasnt thinking about using the enhancement bonus field when referencing mNatural. That sorted it out. Thanks
DocSwiv is offline   #3 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 11:38 PM.


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