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
Redcap's Corner
Senior Member
 
Join Date: Jul 2010
Posts: 149

Old January 26th, 2015, 06:15 AM
I have the following code in an eval rule:

Code:
var enhancement as number
enhancement = hero.child[cFixMagAP2].field[ActUser].value

foreach pick in hero where "thingid.cFixMagAPW"
  enhancement += eachpick.field[abValue].value
nexteach

validif (enhancement <= hero.child[cFixMagAP].field[xCount].value)
I keep getting a syntax error for line #1 that says "invalid identifier in declaration". Is there some reason why numeric variables aren't allowed in eval rules? Or is there some reason why this variable wouldn't be a number? Or am I missing something else?
Redcap's Corner is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old January 26th, 2015, 06:32 AM
Your variable name is too long, limit is 10 characters
AndrewD2 is offline   #2 Reply With Quote
Redcap's Corner
Senior Member
 
Join Date: Jul 2010
Posts: 149

Old January 27th, 2015, 10:48 AM
Thanks! I knew it had to be something simple like that.
Redcap's Corner 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 04:35 PM.


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