TCArknight
Well-known member
Is there a good example for including gizmos on an output sheet?
I want to do the hero's gadgets on one sheet by themselves, but I'd like to print them similar to the way the attached page is set up.
In the Statblock, this is how I build the Gadget:
The Component I'd be looking at for the overall table on the page would be component="Gadget". I've got one portal for the Gadget Name, one for the Story Points, and figured on one for the Details in between.
How can I step through the gadgets on the character to print out each one?
I want to do the hero's gadgets on one sheet by themselves, but I'd like to print them similar to the way the attached page is set up.
In the Statblock, this is how I build the Gadget:
Code:
<!-- Procedure sbtrackres
Output all of the tracked resources possessed by the character, if the
right output source is enabled.
-->
<procedure id="sbgadgets" scripttype="synthesize"><![CDATA[
var ismore as number
var i as number
var lastGiz as string
var thisGiz as string
append @boldon & "Gadgets: " & @boldoff & @newline
~output the details of all resources
ismore = 0
foreach pick in hero where "HasGadget.?"
ismore = 1
append @indent & eachpick.field[name].text
if (hero.tagis[source.ShowGadSB] <> 0) then
append @italicson
foreach pick in eachpick.gizmo where "component.Ability"
thisGiz = eachpick.field[name].text
if (compare(thisGiz,lastGiz) = 0) then
append " x2"
else
append @newline & @indent & @indent & thisGiz
endif
lastGiz = thisGiz
nexteach
append @italicsoff
if (ismore = 0) then
append @indent & "-none-" & @newline
endif
endif
append @newline
nexteach
~if we have no resources, output that fact
if (ismore = 0) then
append @indent & "-none-" & @newline
endif
]]></procedure>
The Component I'd be looking at for the overall table on the page would be component="Gadget". I've got one portal for the Gadget Name, one for the Story Points, and figured on one for the Details in between.
How can I step through the gadgets on the character to print out each one?