Thread: Story Entry Headers
-
April 26th, 2015, 02:48 #1
- Join Date
- Aug 2010
- Posts
- 63
Story Entry Headers
Not sure if this is the right place to post this, so please move it if not.
I'm new to designing my own modules, so this may be common knowledge but i can't figure it out. How do you make collapsable story entries like in the picture? You know, the black header sections?
Attachment 9689
-
April 26th, 2015, 02:56 #2
Lesser Deity
- Join Date
- Mar 2006
- Location
- Arkansas
- Posts
- 7,401
AKABigBlack I don't believe collapsible headers can be done without actually editing the XML manually but I am not that familiar with the internal workings of the 5E ruleset's XML. This was something that had to be done in other rulesets when the developer was manually making library modules.
-
April 26th, 2015, 04:20 #3
That looks like an xml list group heading. Open up one of the item modules (for another ruleset) and see how they code the xml to produce that grouping.
I never claimed to be sane. Besides, it's more fun this way.
-
April 26th, 2015, 05:11 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
Excerpts of XML from module. You can see that the initial link points to a windowclass called reference_colindex that is available only with the 5E ruleset.
Code:<root> ... <library> <libnddlostmineofphandelver> ... <id-00008> <librarylink type="windowreference"> <class>reference_colindex</class> <recordname>lists.encounter.bycategory@DD Lost Mine of Phandelver</recordname> </librarylink> <name type="string">Story</name> </id-00008> ... </libnddlostmineofphandelver> </library> ... <lists> ... <encounter> <bycategory> <description type="string">Story</description> <groups> ... <typecategorypart1_goblinarrows> <description type="string">Part 1: Goblin Arrows</description> <index> <enc_p1_01_index_part1> <link type="windowreference"> <class>encounter</class> <recordname>encounter.enc_p1_01_index_part1@DD Lost Mine of Phandelver</recordname> <description> <field>name</field> </description> </link> <source type="string"/> </enc_p1_01_index_part1> ... </index> </typecategorypart1_goblinarrows> ... </groups> </bycategory> </encounter> </lists> ... </root>
JPG
-
April 27th, 2015, 14:52 #5
Additional question to this. Would there be a way to to a tiered embed of the same list or does it only fold one deep?
Code:Story - Chapter 1 - Part the 1st - Overview - Encounter 1 - Encounter 2 - Part the 2nd - Overview - Encounter 1 - Chapter 2 - Ect.
-
April 27th, 2015, 17:57 #6
- Join Date
- Mar 2006
- Posts
- 266
Would using Par5e work for this as well?
Using the headers from that, to quickly format it in a way wanted.
Still learning it but looking at it for a way to get my data in quickly than just OCR books.
-
April 27th, 2015, 22:39 #7
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
It's only one deep in the windowclass as designed. You could make a ruleset modification or extension to add windowclasses with deeper nesting.
Cheers,
JPG
-
April 28th, 2015, 15:29 #8
-
April 29th, 2015, 08:06 #9
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
For now, you would need to create an extension with that windowclass in it to be loaded in any campaign using your module.
The PFRPG/3.5E rulesets do contain similar lists specifically tailored to armor, weapons and equipment.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks