PDA

View Full Version : Custom Library - inserting a weapon table into a section.



MadBeardMan
October 9th, 2015, 21:46
Greetings All,

One last thing then I'm done, just can't work it out.

I've created a weapons list as a reference and what I'd like to do is to put this list in the middle of some text within a section. However I'm stuck, so can anyone help me?

Cheers
Colin


<reference>
<weaponlist>
<id-000...
.....
</weaponlist>
</reference>

Now what I'm after it linking these weapon lists into a section.


<section-005>
<librarylink type="windowreference">
<class>referenceinlineindex</class>
<recordname>..</recordname>
</librarylink>
<name type="string">Firearms Table Notes</name>
<index>
<entry-000>
<expand/>
<text type="formattedtext">
<p>Here are the 4 weapons list </p>
1. Muzzle Weapons
2. ......
.....
</text>

Trenloe
October 9th, 2015, 22:11
Recommendation: when posting in general forums remember to include which ruleset you're using as this can make a difference.

This is for Call of Cthulhu. Look at lines 2116 and 2117 of common.xml in the Game System module (CoCGameSystem.mod). This shows how to link a weapon table within a formatted text field:


<text type="formattedtext">
<p>For detailed listings, with weapons that can be dragged onto a character sheet, see the following:</p>
<linklist>
<link class="referenceweapons" recordname="library.rules-001.entries.table-001">Firearms Table</link>
<link class="referenceweapons" recordname="library.rules-001.entries.table-002">Hand Weapons Table</link>
</linklist>

MadBeardMan
October 9th, 2015, 22:19
Cheers chap. Apologies, brain is not firing on all cylinders tonight.

How did I miss that?

Thanks again - now simple copy & paste and then re-check and should be done for this book/module/library!