View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old January 6th, 2014, 10:21 AM
Quote:
Originally Posted by TobyFox2002 View Post
Nope, the Append wont work because I'm using this to modify the Class Special, so it would come out as:
Alternate Form (1/day) (1/day)

And no matter how many levels of the class I have it still shows:
Alternate Form (1/day) (1/day) on the Specials tab.
Well, the first thing to do is to remove "(1/day)" from the name of the ability. Just keep it as "Ability Focus". If you want it based on class levels, then use this to set the variable (replacing "Fighter" with whatever class you have):

Code:
level = #levelcount[Fighter]
To be honest, though, you don't even need to use a variable (as I show below). Also, I just realized why it doesn't change. I forgot to reverse the level checking. You need to check for the highest level first. So, the script should look like this instead:

Code:
      if (#levelcount[Fighter] >= 20) then
        field[livename].text = field[name].text & " (at Will)"
      elseif (#levelcount[Fighter] >= 15) then
        field[livename].text = field[name].text & " (3/day)"
      elseif (#levelcount[Fighter] >= 10) then
        field[livename].text = field[name].text & " (1/day)"
      endif
Sendric is offline   #23 Reply With Quote