View Single Post
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,502

Old September 1st, 2019, 09:59 AM
You can loop through the bootstrapped entries for an Entity / Gizmo using this code :
Code:
foreach bootstrap in entity from <ComponentSet>
.

When using this for code that might apply to either a Pick or a Thing (like for a description procedure), you have to use two different branches, like the following:
Code:
if (isentity = 1) then
  if (ispick = 0) then
    foreach bootstrap in entity from WeapQual
      special = splice(special, eachthing.field[name].text,", ")
      nexteach
  else
    foreach pick in gizmo from WeapQual
      special = splice(special, eachpick.field[thingname].text,", ")
      nexteach
    endif
  endif

Last edited by Duggan; September 2nd, 2019 at 07:32 AM.
Duggan is offline   #6 Reply With Quote