Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Kaleb
Senior Member
 
Join Date: Aug 2010
Posts: 576

Old July 28th, 2016, 06:58 PM
if I wanted to add a +5 ac bonus to the adamantine material would this be the correct eval script

~ If we're equipped, add an armor bonus
if (field[gIsEquip].value <> 0) then
hero.child[ArmorClass].field[tAC].field[Bonus].value + 5
Endif

I am getting this error
Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'mWATAdamup' (Eval Script '#2') on line 3
-> Invalid use of a reserved word in script
Kaleb is offline   #1 Reply With Quote
TheIronGolem
Senior Member
 
Join Date: Feb 2015
Posts: 676

Old July 28th, 2016, 09:53 PM
I recommend looking at the Bone material for an example of how a special material can modify the item's AC bonus.
TheIronGolem is offline   #2 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 29th, 2016, 08:43 AM
Right, the error you're getting is because you're not putting an = on the line where you add 5. It should be "+=" instead of just "+". But more than that, you're pointing the script at the wrong place. Instead of going to the ArmorClass helper on the hero, try manipulating the armor that the material is inside.
Aaron is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

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 06:01 AM.


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