Jump to content
JohnBear

Export Templates: Tag Names

Recommended Posts

This is either me (most likely) or a docs mismatch.

 

This works:

<!--STR-->
STR<br/>(Working)<br/>
Primary: <!--STR_PRIMARY--><br/>
Secondary: <!--STR_SECONDARY--><br/>
Primary Roll: <!--PRIMARY_ROLL--><br/>
Secondary Roll: <!--SECONDARY_ROLL--><br/>
<!--/STR-->

This doesn't:

STR<br/>(Not Working)<br/><br/>
Primary Roll: <!--STR_PRIMARY_ROLL--><br/>
Secondary Roll: <!--STR_SECONDARY_ROLL--><br/>

Note the lack of the "<!--STR--><!--/STR-->" non-working. But yet the "STR_" within the brackets still works???

Share this post


Link to post
Share on other sites

Have you tried

 

Primary: <!--STR--><!--STR_PRIMARY--><!--/STR--><br/>

 

Yep. I should have said the opening and closing STR tags. It's as if the program ignores the "STR_" when the main STR tags are used and when they're not it doesn't have a clue what you're asking it to do.

Share this post


Link to post
Share on other sites

You'll need the surrounding <!--STR--> ... <!--/STR--> container.  Within that, you can use either STR_PRIMARY or just PRIMARY.

Share this post


Link to post
Share on other sites

Gotcha.  Thanks.

 

Hate to do this...is there a difference between:

<!--OCV_CHAR-->
[General Characteristic Tags]
<!--/OCV_CHAR-->

<!--DCV_CHAR-->
[General Characteristic Tags]
<!--/DCV_CHAR-->

<!--OMCV-->
[General Characteristic Tags]
<!--/OMCV-->

<!--DMCV_CHAR-->
[General Characteristic Tags]
<!--/DMCV-->

and this:

OCV 1:<!--OCV--><!--OCV_PRIMARY--><!--/OCV--><br/>
OCV 2:<!--OCV--><!--OCV_PRIMARY--><!--/OCV--><br/>

DCV 1:<!--DCV--><!--PRIMARY_DCV--><!--/DCV--><br/>
DCV 2:<!--DCV--><!--SECONDARY_DCV--><!--/DCV--><br/>

Why the "_CHAR" stuck on the end? Or is there a comment buried in the code I should be pulling out to answer that <lopsided grin>?

Share this post


Link to post
Share on other sites

There's a number of things to comment on in that post, but I'll stick to the basics.

In regards to the _CHAR, it's mostly an artifact -- the program has evolved over time.  As tags were changed and merged into a common structure, old tags couldn't just be dropped.  Support had to continue in order for existing (or older) templates and formats to work.

 

You'd be better off (have an easier time) if you just join the characteristics into a single block.

Rather than:

DCV 1:<!--DCV--><!--PRIMARY_DCV--><!--/DCV--><br/>
DCV 2:<!--DCV--><!--SECONDARY_DCV--><!--/DCV--><br/>

Use:

<!--DCV-->
DCV 1:<!--PRIMARY_DCV--><br/>
DCV 2:<!--SECONDARY_DCV--><br/>
<!--/DCV>

Share this post


Link to post
Share on other sites

Artifacts got it.

 

Oh, and that's not a real character sheet.  It's my "test out syntax" and make sure it works the way I expect file. Essentially a "hello world" export format.

 

Thanks for all the help guys.  I really appreciate it.

 

JB

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×