Jump to content

Lists - identifying header and tying together


eepjr24

Recommended Posts

Trying to work out list export to JSON. I can identify the number of each item in the list with <!--IS_LIST_ITEM--><!--LISTPREFIX--><!--/IS_LIST_ITEM-->, and I can look backwards to the nearest <!--IS_LIST--><!--/IS_LIST--> to find WHICH list it is a part of for instances with multiple lists. Is there a way to determine whether the list is a framework or simply a list? Is there a way in code to distinguish between framework types (MP, VPP?)? Also, how do you distinguish between a fixed and variable slot (so that they can be displayed as such on the sheet)?

 

- Ernie

Link to comment
Share on other sites

For distinguishing between fixed and variable slots, you can combine the already mentioned IS_MP with some clever use of ATTRIBUTE_VALUE and the isUltra() method (part of com.hero.objects.GenericObject) -- that will return true/false (as a string)....if true, you're dealing with a fixed slot.  If false, you're dealing with a variable slot.

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...