Mathias,
I'm trying to get this procedure to work so that it shows the names of all class features in a list. What am I doing wrong with it?
I am trying to build a table that displays names of the class specials similar to pathfinder.
I'm trying to get this procedure to work so that it shows the names of all class features in a list. What am I doing wrong with it?
Code:
<procedure id="cSpecInfo" scripttype="mouseinfo"><![CDATA[
@text = "{b} - Class Features & Special Abilities - {/b}{br}{align left}"
var i as number
for i = 1 to 30
@text = @text & "{br} {b}Level " & i & ":{/b} "
~display our Spells per day values based on class
foreach pick from Class where "component.ClassAbil"
if (eachpick.tagvalue[ClSpecWhen.?] = i) then
@text = @text & field[name].text & ", "
endif
nexteach
~ If this was the last level we got to, change the color of the rest
~ of the text
if (i = field[cTotalLev].value) then
@text = @text & "{text clrdisable}"
endif
next
I am trying to build a table that displays names of the class specials similar to pathfinder.
Last edited: