PDA

View Full Version : Need export template assistance



beauxdeigh
Oct 13th, '05, 09:03 AM
Alright you masters of XML. You .hde makers of record. I need your wisdom and knowledge.

I'm working on an export template, and I'm trying to keep it simple for my own records at game time and for my less than system savvy players. I've got a good start, but I have a couple of questions.

1. When there's a Characteristic with Primary/Secondary values, is there a way to get just the Secondary value in the template?

2. I'd like to limit the space Disadvantages take up, by cutting out the unecessary text. Is there anyway to make this:

DNPC: Orphanage Children 8- (Incompetent; Unaware of character's adventuring career/Secret ID; Group DNPC: x16 DNPCs)

into this:

DNPC: Orphanage Children

for example? Just the type (DNPC) and one part of the text (DNPC Name)?

Thanks for any help.

RPMiller
Oct 13th, '05, 11:31 AM
1. Use the SECONDARY tag inside the characteristic tag.
2. I believe that is the NAME tag followed by the DISPLAY tag. IIRC

beauxdeigh
Oct 13th, '05, 12:11 PM
1. Use the SECONDARY tag inside the characteristic tag.
2. I believe that is the NAME tag followed by the DISPLAY tag. IIRC

1. Sounds good.

2. Nope. DISPLAY returns (in the case of my example) 'DNPC'. NAME returns blank space - no text at all. I have tried a few other obvious things from the documentation before coming here, but nothing thus far has gotten me what I'm looking for.

Thanks for the help, though.

RPMiller
Oct 13th, '05, 02:27 PM
Ok, then I got them backwards, DISPLAY tag first than NAME tag after. What does this do for you?



<!--DISADS-->
<!--IFLIST--><!--LISTPREFIX--><!--/IFLIST-->
<!--IFNAME--><i> <!--NAME-->:</i> <!--/IFNAME-->
<!--TEXT--><br>
<!--IFNOTES-->
<b>Notes:</b> <!--NOTES--><br>
<!--/IFNOTES-->
<!--/DISADS-->

beauxdeigh
Oct 13th, '05, 04:20 PM
Ok, then I got them backwards, DISPLAY tag first than NAME tag after. What does this do for you?



<!--DISADS-->
<!--IFLIST--><!--LISTPREFIX--><!--/IFLIST-->
<!--IFNAME--><i> <!--NAME-->:</i> <!--/IFNAME-->
<!--TEXT--><br>
<!--IFNOTES-->
<b>Notes:</b> <!--NOTES--><br>
<!--/IFNOTES-->
<!--/DISADS-->


That's the usual setup for export. NAME (as far as I can tell) is the Italicised field, like Fire Blasts. If you fill one out, then it displays. Disads don't have those, that's why they don't show up. TEXT is the full body of info, like so:

DNPC: Orphanage Children 8- (Incompetent; Unaware of character's adventuring career/Secret ID; Group DNPC: x16 DNPCs)
NOTES is the whatever you write in the Notes field for the Disad.

Now, in the .hdc file the text I'm looking to isolate is listed as INPUT="Orphanage Children". However, using (!--INPUT--) gets me...

Huh.

Ok, I'm an idiot. I'm sure I did that last night, but I guess not.

Wait, that's right. The field I was playing around with was originally (!--DISAD_TEXT--) so I kept the DISAD_ part in all of my early tests. I never went back to INPUT once I dropped it. Well, there you go.



<!--DISADS-->
<!--IFLIST--><!--LISTPREFIX--><!--/IFLIST-->
<!--DISPLAY-->: <!--INPUT--><br>
<!--/DISADS-->


That should do it.

RPMiller
Oct 13th, '05, 05:46 PM
Excellent. Sorry I couldn't be more helpful.

beauxdeigh
Oct 13th, '05, 07:38 PM
Maybe you can.

Next question is this - Is there a way to NOT include combat skill levels in the skill list? The following writes out everything:



<!--IFSKILLS--><!--SKILLS-->
<!--IFLIST--><!--LISTPREFIX--><!--/IFLIST-->
<!--SKILL_TEXT-->
<!--IFNOTES-->
<!--SKILL_NOTES-->
<!--/IFNOTES-->
<!--/SKILLS--><!--/IFSKILLS-->


I suppose I could write a script to exclude them, just wondering if there is an already built in way to do it.

Any ideas?

RPMiller
Oct 13th, '05, 07:47 PM
Would



<SKILLS>

<!--IF_COMBAT_LEVELS-->
&nbsp;
<!--/IF_COMBAT_LEVELS-->
</SKILLS>


Work?

beauxdeigh
Oct 13th, '05, 08:14 PM
Would



<SKILLS>

<!--IF_COMBAT_LEVELS-->
&nbsp;
<!--/IF_COMBAT_LEVELS-->
</SKILLS>


Work?

Hm. Not how I've implemented it at this point. What does



<!--IF_NO_COMBAT_LEVELS--><!--/IF_NO_COMBAT_LEVELS-->


do? Any idea?

RPMiller
Oct 14th, '05, 06:37 AM
If something is NOT a combat level it will do what ever is in the tag. So that would work for what you want I bet. Put the SKILL text tag inside the IF_NO_COMBAT_LEVELS tag and it should only display skills. I believe.

I really must get back to updating my templates and creating new ones... :sigh: