PDA

View Full Version : List Name?



Rigel
Apr 21st, '03, 01:57 PM
Dan, I have a question about how lists are being processed during the export process in HD. Currently, power frameworks (an EC in this case) send the name as corresponds to the IFNAME and NAME tag; however, a plain "list" does not send a NAME, only a POWER_TEXT field. Is this intentional or desirable?

Essentially, I have a list of powers all purchased with the common OIHID limitation. When I created the list in HD, I gave it a name of "Heroic Boost" but none of the HTML export templates show the list name (Heroic Boost) in bold or italics. I have come to realize that the list name is being treated as a POWER_TEXT and not a NAME. I don't want to break anyone's export templates, but I would like to have my list name in bold. :)

Thanks.

Simon
Apr 21st, '03, 02:01 PM
If you want your list name in bold, all you need to do is utilize the IS_LIST ... /IS_LIST container. IS_LIST will evaluate to true (and include its contents) only for lists. For non-lists it will be replaced with an empty string.

Rigel
Apr 21st, '03, 02:24 PM
Dan, first, thanks for the quick reply. Second, apologies in advance if I announce my ignorance with more questions.

I used your IS_LIST suggestion and now the whole list name (complete with all its multipliers) is bold. I know you don't want to spend time debugging export templates, but I would appreciate it if you could look at this snippet here.


<!--IFNAME--><b><i><!--NAME-->: </i></b><!--/IFNAME--><!--IS_LIST--><B><I><!--/IS_LIST--><!--POWER_TEXT--><!--IS_LIST></B></I><!--/IS_LIST-->


Ultimately, my suggestion for v2 is new and improved documentation including all the new tags.

Simon
Apr 21st, '03, 05:47 PM
Replace POWER_TEXT with POWER_ALIAS and you'll get just the name. There is a separate container to iterate through the modifiers (in the update notes).

Rigel
Apr 22nd, '03, 02:42 PM
Ok, I agree I can use POWER_ALIAS and then step through each modifier, but that's not very convenient. Plus, it doesn't really answer my original question. Why can powers, skills and frameworks all have a NAME under the IFNAME context, but lists cannot? Would it be possible to allow lists to have NAMEs like the others?

I appreciate the response and kudos on HD. It's a great program.

Simon
Apr 22nd, '03, 05:36 PM
Originally posted by Rigel
Ok, I agree I can use POWER_ALIAS and then step through each modifier, but that's not very convenient. Plus, it doesn't really answer my original question. Why can powers, skills and frameworks all have a NAME under the IFNAME context, but lists cannot? Would it be possible to allow lists to have NAMEs like the others?

I appreciate the response and kudos on HD. It's a great program.

Lists do not have a NAME field because they don't need one. Lists have a display field (just like Powers, Skills, etc.) the display field contains all the information relevant to a List....a name would be needlessly redundant and confusing.