PDA

View Full Version : Help with Modified Spell List Needed



Malovech
July 4th, 2007, 01:38
I need to modify reference_spells.xml so that it properly goes through my client.xml for my spells.mod and lists them out. For the life of me I can't figure out what to change in the scripts for reference_spells.xml.

The first part of the xml file that states my main list categories:


<library>
<true20powers static="true">
<name type="string">True20 Powers</name>
<categoryname type="string">True20 Essentials</categoryname>
<entries>
<styles>
<librarylink type="windowreference">
<class>reference_stylespelllist</class>
<recordname>spelllists.styles@True20 Powers</recordname>
</librarylink>
<name type="string">Sorcery Styles</name>
</styles>
</entries>
</true20powers>
</library>

My individual spells


<spelldesc static="true">
<thetimeisright>
<name type="string">The Time is Right (Basic Cosmic Sorcery)</name>
<style type="string">Cosmic Sorcery</school>
<level type="string">Sor/Wiz 0</level>
<components type="string">V, S, M</components>
<castingtime type="string">2 weeks</castingtime>
<range type="string">Magical Link</range>
<effect type="string">As per sorcery style</effect>
<duration type="string">As per sorcery style</duration>
<fatiguing type="string">No</fatiguing>
<save type="string">As per sorcery style, see below</save>
<prerequisites type="string">10 ranks of Knowledge(arcana), Int 15</prerequisites>
<description type="formattedtext"><p>Yada yada</p></description>
<shortdescription type="string">Spend two weeks to cast a spell, taking 20 on the final Power Check.</shortdescription>
</thetimeisright>
</spelldesc>

For my list of sorcery styles...


<spelllists static="true">
<styles>
<description type="string">Sorcery Styles</description>
<cosmicsorcery>
<description type="string">Cosmic Sorcery</description>
<groups>
<powers>
<thetimeisright>
<link type="windowreference"><class>spelldesc</class><recordname>spelldesc.thetimeisright@True20 Powers</recordname></link>
</thetimeisright>
<thestarsareright>
<link type="windowreference"><class>spelldesc</class><recordname>spelldesc.thestarsareright@True20 Powers</recordname></link>
</thestarsareright>
</powers>
</groups>
</cosmicsorcery>
</styles>
</spelllists>


Are there any folks out there that have gotten into this who can point me in the right direction?

Thanks to anyone for your time and brain power.

bonzai95
July 4th, 2007, 03:28
I'm not familiar with the setting you are working on but...it looks like you are trying for this...


Sorcery Style (Major Group)
-> Cosmic Sorcery (Minor Group)
-> Powers (sub Minor Group)
-> the time is right (item)
-> the stars are right (item)

I think the hierarchy by default is built more like...

Class (Major Group)
-> Group (Minor Group)
-> Item (item)


Without changing the reference_spells, you could try arranging your data to match what is currently in d20Spells structure. You'd have to drop a level from your hierarchy but that just means more entries on the first page. Instead of just Sorcery Styles it'd list the different styles.

Then you could do something like...



<spelllists static="true">
<cosmicsorcery>
<description type="string">Cosmic Sorcery</description>
<groups>
<powers>
<thetimeisright>
<link type="windowreference"><class>spelldesc</class><recordname>spelldesc.thetimeisright@True20 Powers</recordname></link></thetimeisright>
<thestarsareright>
<link type="windowreference"><class>spelldesc</class><recordname>spelldesc.thestarsareright@True20 Powers</recordname></link></thestarsareright>
</powers>
</groups>
</cosmicsorcery>
</spelllists>


I haven't messed with any of the scripting in the xml files, but I'm sure what you are trying to do is possible.

bonzai

Malovech
July 5th, 2007, 03:47
Thanks Bonzai, you pointed me in the right direction. One thing I really needed to deal with is d20's spell level system. I have circumvented it, but not removed it entirely.

Also, and this is probably pretty obvious to many- your XML has to be well-formed. There is 0 margin for error. If a tag is unclosed anywhere, or closed improperly, nothing but the definition file will load from the module.