PDA

View Full Version : Need help with this book module



antiduke
February 7th, 2009, 16:51
I finally decided to take a stab at this module thing and am having some problems. I'm trying to add some spells from some other sourcebooks for the players. I am having some success but things aren't quite right.

When I open up the book in the library I see all the classes and all their spells. It is supposed to be only ranger and only one spell for right now. When I do click on ranger, there are two lists of spells, 1-4 and the new spell that I entered is in both of them and it does show up correctly. There must be something I'm missing because there is not a single mention of any of the other classes in my client file, yet they all show up there anyway. :confused:

I have attached the client file if that helps. Thanks in advance!

Griogre
February 7th, 2009, 21:58
That's because you have crosslinked over to the other spells out of the d20 spell module. I actually did a thread a while ago on how to do what you are doing on purpose. :)

Down in the links section, for example, for barkskin you are calling for the description of the spell out of the d20 spellbook:

<recordname>spelldesc.barkskin@d20 Spells</recordname>
As long as you have the d20 spell module activated when this link is clicked it will go look for the spell description in the d20 spell module and retrive it. It's actually a feature. :)

What you need to decide is do you want you spell descriptions combined like this or not. If you don't you need to remove every link calling out of the module.

antiduke
February 8th, 2009, 02:46
OK I tried removing all the links that said "...@d20 Spells" but that didn't help me. All I want is to be able to click on the book and see nothing but the spells I put in there. And I'm still not understanding why I am getting all the classes showing up when I click it instead of only ranger. There's no mention of any class in the client.xml except ranger.

Griogre
February 8th, 2009, 04:49
Ah, my bad. I though you were upset with having two barkskin spells, ect. The two library books library links are combining because you named the element under the library the same thing as the d20 Spell module element (ie d20spells). When both books are activated the list of library links are combined which is generally good but if you only want to see just the ranger spells in the module rename your library elements like this (changes in red):

<library>
<d20spells2 static="true">
<name type="string">d20 Spells2</name>
<categoryname type="string">d20 Essentials</categoryname>
<entries>
<ranger>
<librarylink type="windowreference">
<class>reference_classspelllist</class>
<recordname>spelllists.ranger@d20 Spells2</recordname>
</librarylink>
<name type="string">Ranger spells2</name>
</ranger>
</entries>
</d20spells2>
</library>


This will stop the library link lists from combining.

antiduke
February 8th, 2009, 06:37
Ah, great! That worked. My only problem now is that it is still showing all of the spells (both the ones in the original d20 spells and the new ones) for ranger instead of only the ones that I put in there. Any thoughts?

Griogre
February 9th, 2009, 08:41
I presume this happens when both modules are open? It's probably the same problem with your "spelllist" when both modules are open, identically named elements are combined. Try changing the element around your spell descriptions to something like spelllist2.

Bidmaron
February 17th, 2009, 05:06
.... I actually did a thread a while ago on how to do what you are doing on purpose. :)

....
Can you link to the thread you did? I am at a loss to understand what you were trying to do without the context. Thanks.

Griogre
February 17th, 2009, 06:05
On this tread at post 10 I started talking about library spell modules: https://www.fantasygrounds.com/forums/showthread.php?t=7781&highlight=Adding+Spells+Module
I think I did a follow up to this post, which was the one I was thinking about but I can't find it. :p

Bidmaron
February 17th, 2009, 12:14
Thanks, Griogre. I understand what you were doing and saying. That is a pretty cool way to make additions without losing the ability to stay in sync if the original modules change/get updated (within reason, of course). The same would work for monsters and anything else you wanted to do for a reference. Nice idea.

Griogre
February 18th, 2009, 03:27
What I said in that post works but I think it is best for when you just want to merge a few things into the basic rules. But what if you want to update a lot of things? For example Monster Books? I think you are better off doing what the original poster didn't want - combining the books so as each book is open they their links are added to the list in the library pane. The advantage of this is you can have an arbitrary number of books combine. You also only combine the library modules that are open so you have control over what you are including in the list just by opening and closing the different books. The only downside is you might start having performance issues with enough combined modules.

For example for two monster books where book 1 has the Rules Lawyer Monsters and book 2 has the Rules Paralegal:


<?xml version="1.0" encoding="iso-8859-1"?>
<root version="2.0">
<library>
<TestMonsters>
<name type="string">Monster Book 1</name>
<categoryname type="string">Test Monster Modules</categoryname>
<entries>
<LawyerRules>
<librarylink type="windowreference">
<class>npc</class>
<recordname>NPC.MM1.LawyerRules</recordname>
</librarylink>
<name type="string">Rules Lawyer</name>
</LawyerRules>
</entries>
</TestMonsters>
</library>

<NPC static="true">
<MM1>
<LawyerRules>
<ac type="number">17</ac>
<alignment type="string">Evil</alignment>
<charisma type="number">16</charisma>
<constitution type="number">14</constitution>
<dexterity type="number">13</dexterity>
<equipment type="string">briefcase, legal documents</equipment>
<fortitude type="number">10</fortitude>
<hp type="string">52; Bloodied 26</hp>
<init type="number">2</init>
<intelligence type="number">16</intelligence>
<languages type="string">Common, Legalese</languages>
<levelrole type="string">Level 5 Soldier (Leader)</levelrole>
<name type="string">Rules Lawyer</name>
<powers>
<id-00001>
<action type="string">Standard</action>
<keywords type="string">Necrotic</keywords>
<name type="string">Hault Game</name>
<powertype type="string">m</powertype>
<recharge type="string">At-will</recharge>
<shortdescription type="string">+15 vs. AC; 2d8 + 7 damage and the target is dazed (save ends).</shortdescription>
</id-00001>
<id-00002>
<action type="string">Minor</action>
<name type="string">Enrage Other Players</name>
<powertype type="string">C</powertype>
<range type="string">Close burst 2</range>
<recharge type="string">Recharge 6</recharge>
<shortdescription type="string">Have one player in the burst start screaming (save ends).</shortdescription>
</id-00002>
</powers>
<reflex type="number">12</reflex>
<senses type="string">Perception +4</senses>
<skills type="string">Diplomacy -10, Intimidate +70</skills>
<speed type="string">5</speed>
<strength type="number">18</strength>
<type type="string">Medium natural humanoid (vaguely)</type>
<will type="number">13</will>
<wisdom type="number">12</wisdom>
<xp type="number">175</xp>
</LawyerRules>
</MM1>
</NPC>
</root>



<?xml version="1.0" encoding="iso-8859-1"?>
<root version="2.0">
<library>
<TestMonsters>
<name type="string">Monster Book 2</name>
<categoryname type="string">Test Monster Modules</categoryname>
<entries>
<LawyerRulesParalegal>
<librarylink type="windowreference">
<class>npc</class>
<recordname>NPC.MM2.LawyerRulesParalegal</recordname>
</librarylink>
<name type="string">Rules Paralegal</name>
</LawyerRulesParalegal>
</entries>
</TestMonsters>
</library>

<NPC static="true">
<MM2>
<LawyerRulesParalegal>
<ac type="number">12</ac>
<alignment type="string">Evil</alignment>
<charisma type="number">8</charisma>
<constitution type="number">13</constitution>
<dexterity type="number">17</dexterity>
<equipment type="string">briefcase, legal documents</equipment>
<fortitude type="number">9</fortitude>
<hp type="string">1; a missed attack never damages a minion</hp>
<init type="number">2</init>
<intelligence type="number">8</intelligence>
<languages type="string">Common, Legalese</languages>
<levelrole type="string">Level 1 Minion</levelrole>
<name type="string">Rules Paralegal</name>
<powers>
<id-00001>
<action type="string">Standard</action>
<keywords type="string">Weapon</keywords>
<name type="string">Open Rulebook</name>
<powertype type="string">m</powertype>
<recharge type="string">At-will</recharge>
<shortdescription type="string">+3 vs. Will; 1d6 damage</shortdescription>
</id-00001>
<id-00002>
<action type="string">Imm Reaction</action>
<name type="string">Stall Tactics</name>
<recharge type="string">At-will</recharge>
<shortdescription type="string">(Trigger: When missed by a melee attack); The Paralegal shifts 1 square while screaming about the rules.</shortdescription>
</id-00002>
</powers>
<reflex type="number">12</reflex>
<senses type="string">Perception +1</senses>
<skills type="string">Diplomacy -5, Thievery +50, Intimidate +35</skills>
<speed type="string">6; see also Stall Tactics</speed>
<strength type="number">14</strength>
<type type="string">Small natural humanoid</type>
<will type="number">14</will>
<wisdom type="number">12</wisdom>
<xp type="number">25</xp>
</LawyerRulesParalegal>
</MM2>
</NPC>
</root>


These books combine when one or more is open because their contents merge:

https://i105.photobucket.com/albums/m222/Griogre/MonsterBooks.png

Tenian
February 18th, 2009, 11:03
Hmm those NPCs look familiar

Griogre
February 18th, 2009, 18:43
Yeah, I wonder why? ;) I was being a little more politically correct on the Smiteworks board - no point in creating any ill will on a public board - of having someone hassel Smiteworks. But the NPC's are based off of some created by Tenian.