So far, you've only mentioned two if...then cases, but you say you're hitting the limit.
Think about where it's best to generate this information. Can the calculations be moved into the component scripts? Can, for example, the ranger class store this in a field:
L1: oooo
L2: ooo
L3: ooo
L1: o
And the pearl of power will instead put this in the same field:
o Pearl of Power
Then, your output only needs to read in whatever's in that field.
|