Adding multiple professions
Hello all,
I have been working on a module to add two professions into RMC, however, I am runing into a problem. I can add one profession just fine, but the second one does not show costs for the various skills.
Anyone done this before?
I am guessing that I could create one module file for each profession and that would work. I have the Paladin from RMC1 in a module I build for that a long time ago. The new module I build has two professions, the first one has costs, but the second one does not.
I based this on looking at the RMC Character Law module. I have missed something somewhere, though I am not sure what. If anyone has an idea, let me know.
(Not so) quick snippet of code:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<root version="2.9" RMCVersion="1.4">
<library static="true">
<modname>
<name type="string">Mod Name</name>
<categoryname type="string">Mod Name</categoryname>
<entries>
<section-001>
<librarylink type="windowreference">
<class>referenceinlineindex</class>
<recordname>..</recordname>
</librarylink>
<name type="string">Professions</name>
<index>
<entry-000>
<name type="string">Profession 1</name>
<text type="formattedtext">
<p>Flavor text.</p>
<list>
<li>List of requirements for Profession 1</li>
</list>
<p>Level Bonuses:</p>
<list>
<li>Level Bonuses</li>
</list>
<linklist>
<link class="referencetable" recordname="reference.professions.profession1@modname">Profession 1</link>
</linklist>
</text>
</entry-000>
<entry-001>
<name type="string">Profession 2</name>
<text type="formattedtext">
<p>Flavor text.</p>
<list>
<li>List of requirements for Profession 2</li>
</list>
<p>Level Bonuses:</p>
<list>
<li>Level Bonuses</li>
</list>
<linklist>
<link class="referencetable" recordname="reference.professions.profession2@modname">Profession 2</link>
</linklist>
</text>
</entry-001>
</index>
</section-001>
</entries>
</modname>
</library>
<reference>
<professions>
<profession1>
<name type="string">Profession 1</name>
<realm type="string">Arms</realm>
<primerequisites>
<id-0001>
<stat type='string'>N/A</stat>
</id-0001>
<id-0002>
<stat type='string'>N/A</stat>
</id-0002>
</primerequisites>
<placement>
<size>
<width type="number">402</width>
<height type="number">198</height>
</size>
</placement>
<sizelimits>
<dynamic type="string">both</dynamic>
</sizelimits>
<resetmenuitem>
<position type="number">8</position>
<icon type="string">restorewindow</icon>
<label type="string">Reset to default size.</label>
</resetmenuitem>
<text type="formattedtext">
<p>Flavor text</p>
</text>
</profession1>
<profession2>
<name type="string">profession2</name>
<realm type="string">Essence</realm>
<primerequisites>
<id-0001>
<stat type='string'>Re</stat>
</id-0001>
<id-0002>
<stat type='string'>Me</stat>
</id-0002>
</primerequisites>
<placement>
<size>
<width type="number">402</width>
<height type="number">198</height>
</size>
</placement>
<sizelimits>
<dynamic type="string">both</dynamic>
</sizelimits>
<resetmenuitem>
<position type="number">8</position>
<icon type="string">restorewindow</icon>
<label type="string">Reset to default size.</label>
</resetmenuitem>
<text type="formattedtext">
<p>Flavor text</p>
</text>
</profession2>
</professions>
<skilllist>
<primaryskills>
<title type="string">Primary Skills</title>
<list>
<id-00001>
<locked type='number'>1</locked>
<fullname type='string'>Maneuvering in Soft Leather</fullname>
<name type='string'>Man. in Soft Leather</name>
<type type='number'>4</type>
<calc type='number'>2</calc>
<stats type='string'>St/Ag</stats>
<armorfactor type='number'>0</armorfactor>
<costs>
<profession1 type='string'>1/*</profession1>
<profession2 type='string'>9</profession2>
</costs>
</id-00001>
Other skills the same basic format, just differing costs.
</list>
</primaryskills>
<secondaryskills>
<title type="string">Secondary Skills</title>
<list>
<id-00001>
<locked type='number'>1</locked>
<fullname type='string'>Acrobatics</fullname>
<name type='string'>Acrobatics</name>
<type type='number'>1</type>
<calc type='number'>1</calc>
<stats type='string'>Ag/Qu</stats>
<armorfactor type='number'>1</armorfactor>
<costs>
<profession1 type='string'>2/6</profession1>
<profession2 type='string'>2/9</profession2>
</costs>
</id-00001>
Other skills the same basic format, just differing costs.
</list>
</secondaryskills>
<unskilledactions>
<footnote type="string">
These actions cannot be trained, but may be modified by stats, profession levels, special abilities, items, etc.
</footnote>
<list>
<id-00001>
<locked type='number'>1</locked>
<fullname type='string'>Base Casting Roll</fullname>
<name type='string'>Base Casting Roll</name>
<type type='number'>2</type>
<calc type='number'>2</calc>
<stats type='string'>In</stats>
<armorfactor type='number'>0</armorfactor>
<costs>
<profession1 type='string'>---</profession1>
<profession1 type='string'>---</profession1>
</costs>
</id-00001>
</list>
</unskilledactions>
</skilllist>
</reference>
</root>