tayliffe Posted February 7, 2022 Report Share Posted February 7, 2022 New developer for templates. Learning from fiddling templates, but there is one thing I am not able to work out, even with HDDocs or my research. Creating a compound power, each component can have a name. Example: Sun Run Gun: <description> <text> Stun Ray: 2d6 NND Kill Blast: 3d6 RKA In 6E HTML Tasha's Ultimate Character Sheet v1.6.0 Serif n Blue Export Template. There is a summary of powers and equipment. Which I think is really good. And with compound powers you have a quick summary of what components make the power. These components can have a name. Tasha's Sheet would show: Sun Run Gun 2d6 NND 3d6 RKA I would like to modify it, to look like Sun Run Gun Stun Ray 2d6 NND Kill Blast 3d6 RKA I have tried the options in HD Docs and have not been successful. Can someone provide me information on the TAG that can access the Name of a Component Power. Or the process, to access that data from the field. Quote Link to comment Share on other sites More sharing options...
Tasha Posted February 7, 2022 Report Share Posted February 7, 2022 You would have to open the Export Template and add the tag that includes those other tags. It's how I made that part of the sheet. It's not really a question that Dan can Answer. Yes, I am the Tasha who created that sheet, HeroGM 1 Quote Link to comment Share on other sites More sharing options...
Tasha Posted February 7, 2022 Report Share Posted February 7, 2022 Looking at it now. It's been YEARS since I looked at the code. The Compound Power thing is kind of an ugly hack(mine). I need to look over documentation to see if I can fix that stuff. If you are the editing XML person and if you use Notepad++ the line you need to look at is 1211 HeroGM 1 Quote Link to comment Share on other sites More sharing options...
tayliffe Posted February 8, 2022 Author Report Share Posted February 8, 2022 Hello Tasha, Yes, I am using Notepad++. I know, well I think I know what I am doing, As to it being ugly, hey, it works and I think it looks great (the export, not the code, LOL) But in seriousness: Below is a snippet from 6E HTML Tasha's Ultimate Character Sheet v1.6.0 Serif n Blue and is for the summary of Attack Powers, right after the combat tables. 794 <!--POWERS--> 795 <!--IF_ATTACK--> 796 <tr> 797 <td class="small" width="35%" style="vertical-align:top" nowrap><!--IFNAME--><span style="color: #0066cc"><b><!--NAME--></b></span><!--/IFNAME--></td> 798 <td class="small"> 799 <!--IF_COMPOUND_POWER--> 800 <!--COMPONENT_POWERS--> 801 <!--POWER_DMG--> <!--DISPLAY--></br> 802 <!--/COMPONENT_POWERS--> 803 <!--/IF_COMPOUND_POWER--> 804 <!--IF_NOT_COMPOUND_POWER--> 805 <!--POWER_DMG--> <!--DISPLAY--> 806 <!--/IF_NOT_COMPOUND_POWER--> 807 And that produces an output like this: So far all good, I've modified my code to have the attack powers summary start on the next page, so plenty of room. In the Hero Designer in the powers, components can be named. As in the example below Now, I know the tag has to go at the beginning of line 801. But the problem what tag? In creating the component powers, the field is called: Name. Tried that with no luck. Tried Display and wondered why it was being printed twice (I am an idiot!) Tried from HDDocs these: Tried a some others and can't remember what they were. So Tash, or anybody else, can someone tell me what the tag is? Or the process to find that data. Or what post to look at, if it has already been covered. Thank you everybody. Quote Link to comment Share on other sites More sharing options...
Simon Posted February 8, 2022 Report Share Posted February 8, 2022 Same way you see Tasha doing it for the overall Compound Power: <!--IFNAME--> ... <!--NAME--> ... <!--/IFNAME--> Quote Link to comment Share on other sites More sharing options...
tayliffe Posted February 8, 2022 Author Report Share Posted February 8, 2022 Hello Simon, Yes, I can access the overall name of the of the power. I don't have any trouble there. It is the component name of the power, if I have the language correct. If you are suggesting that I need to use the IFNAME tags surrounding the NAME tag to access the data. Not something I considered. I thought this tags were more for conditional situations, like changes in formatting, and the like not an initialisation or option to gather the data. But I will try it. Quote Link to comment Share on other sites More sharing options...
Simon Posted February 8, 2022 Report Share Posted February 8, 2022 The name field is always optional...and the export tag always requires the surrounding IFNAME container. Tasha 1 Quote Link to comment Share on other sites More sharing options...
tayliffe Posted February 8, 2022 Author Report Share Posted February 8, 2022 Thank you Simon. Much appreciated. When I can try it I will. If it works, I will owe you a virtual block of chocolate, 🍫🤗 Quote Link to comment Share on other sites More sharing options...
Simon Posted February 8, 2022 Report Share Posted February 8, 2022 Just now, tayliffe said: Thank you Simon. Much appreciated. When I can try it I will. If it works, I will owe you a virtual block of chocolate, 🍫🤗 FTFY Quote Link to comment Share on other sites More sharing options...
tayliffe Posted February 8, 2022 Author Report Share Posted February 8, 2022 👍🤪 Quote Link to comment Share on other sites More sharing options...
tayliffe Posted February 8, 2022 Author Report Share Posted February 8, 2022 Simon, Thank you - it works. I have better idea on the logic now. Your and Tasha's assistance have been very much appreciated. Now banging my head on something else, but I have more info to work with. If I can't figure out this next situation - you might hear from me again, Tasha 1 Quote Link to comment Share on other sites More sharing options...
Tasha Posted February 9, 2022 Report Share Posted February 9, 2022 If you figured it out and fix my sheet, I will be happy to upload it and give credit to you. Also if you edit it, please add to the comments right at the top of the Sheet. So we can credit all the wonderful people who have further worked on the sheet, to make it more awesome. Tasha 9 hours ago, tayliffe said: Simon, Thank you - it works. I have better idea on the logic now. Your and Tasha's assistance have been very much appreciated. Now banging my head on something else, but I have more info to work with. If I can't figure out this next situation - you might hear from me again, Quote Link to comment Share on other sites More sharing options...
tayliffe Posted February 9, 2022 Author Report Share Posted February 9, 2022 Thank you Tasha, I will. In honesty, it's a hatchet job at the moment. Needs some clean up. I would like to take the opportunity to say thank you to you for the work you put into the template. I've looked at it, I would have no idea where to start in trying to create my own. HeroGM and Tasha 2 Quote Link to comment Share on other sites More sharing options...
Tasha Posted February 10, 2022 Report Share Posted February 10, 2022 This sheet was a group effort. Looking through a bunch of the Export Formats, I realize that ALL the character sheets have code yanked from Dan's original sheet. HeroGM 1 Quote Link to comment Share on other sites More sharing options...
HeroGM Posted February 10, 2022 Report Share Posted February 10, 2022 20 hours ago, Tasha said: This sheet was a group effort. Looking through a bunch of the Export Formats, I realize that ALL the character sheets have code yanked from Dan's original sheet. Honestly, like HTML, you can only do so much with it. An exported table will have a lot of the same code, or if you want to do X.... Tasha 1 Quote Link to comment Share on other sites More sharing options...
Tasha Posted February 10, 2022 Report Share Posted February 10, 2022 There are sections in some of those sheets that are obvious that they were lifted or were used as the basis for other sheets. ie Comments being identical between sections in a number of sheets HeroGM 1 Quote Link to comment Share on other sites More sharing options...
HeroGM Posted February 10, 2022 Report Share Posted February 10, 2022 6 minutes ago, Tasha said: There are sections in some of those sheets that are obvious that they were lifted or were used as the basis for other sheets. ie Comments being identical between sections in a number of sheets I talk to Rob Miller occasionally, and while he's pleased that people are using them and changing them he's a little... chagrined...that people don't credit. So thanks to you, him, Dan and others. Tasha 1 Quote Link to comment Share on other sites More sharing options...
Tasha Posted February 11, 2022 Report Share Posted February 11, 2022 The ones that I have modified, I have always kept the original credits section in. It just gets a bit longer as people add/ modify the formats Rob Miller made some AWESOME formats. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.