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
Sphynx
Member
 
Join Date: Apr 2007
Posts: 60

Old December 3rd, 2015, 05:30 AM
if (field[xTotalLev].value > 6) then
field[abText2].text = "FOO"
else
field[abText2].text = "BLURG"
endif

I'm 12th level, so why am I getting BLURG instead of FOO in my append "field[abText2].text"?
Sphynx is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old December 3rd, 2015, 05:31 AM
What phase/priority are you running this at?
AndrewD2 is offline   #2 Reply With Quote
Sphynx
Member
 
Join Date: Apr 2007
Posts: 60

Old December 3rd, 2015, 05:38 AM
Thank you, that fixed it. Those were set to defaults. :/
Sphynx is offline   #3 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old December 3rd, 2015, 07:56 AM
No problem. My first step when I don't get the values I expect is to check to make sure the phase I'm running is right for when things are happening (post levels if I need a level, post-attr if I need an attribute).

Also you can toss debugs in to see if the value you want is there.

debug "Level value: " & field[xTotalLev].value
AndrewD2 is offline   #4 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:50 PM.


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