• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Character Level in if-statement

Sphynx

Well-known member
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"?
 
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
 
Back
Top