I get this error:
Quote:
Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in script for Procedure 'sbgadgets' on line 17
-> Script reference is invalid under the circumstances
|
The code in red is where I am trying to get to the bootstrapped children on the gadget.
Code:
<procedure id="sbgadgets" scripttype="synthesize"><![CDATA[
var ismore as number
var i as number
var gadgetid as string
append @boldon & "Gadgets: " & @boldoff & @newline
~output the details of all resources
ismore = 0
foreach pick in hero where "HasGadget.?"
ismore = 1
gadgetid = "thingid." & eachpick.idstring
append @indent & eachpick.field[name].text
foreach bootstrap in pick where "component.Ability"
notify eachthing.idstring
nexteach
if (ismore = 0) then
append @indent & "-none-" & @newline
endif
append @newline
nexteach
~if we have no resources, output that fact
if (ismore = 0) then
append @indent & "-none-" & @newline
endif
]]></procedure>