Thread: Gizmo confusion
View Single Post
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old April 11th, 2013, 04:27 PM
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>
TCArknight is offline   #26 Reply With Quote