• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Custom spell list and domain list

Greylin

Well-known member
Is there a way to (easily) create a custom spell list and to limit the domain access for clerics of different faiths?

I see that I can edit each spell and add a custom cleric class to the Spell Class; this is time intensive and also requires editing exiting PH and Spell Compendium sources. Is there another way where I can run down the list of all spells, ticking to add to the custom spell list? Or define the spell list within the class?

Similarly, is there a way to limit the Domains that are accessible to a cleric class?

As always, thanks in advance,

John / Greylin

--snip--
A further thought: if I set up the clerics as different classes (Cleric of Nuada, Cleric of Bane, etc.) - could I then set that class as a pre-requisite for the relevant Domains as a way to limit access to Domains to relevant classes? What might that code look like (or can you point me to some Things that already have that kind of pre-req code from which I could crib?)
 
Last edited:
Is there a way to (easily) create a custom spell list and to limit the domain access for clerics of different faiths?

I see that I can edit each spell and add a custom cleric class to the Spell Class; this is time intensive and also requires editing exiting PH and Spell Compendium sources. Is there another way where I can run down the list of all spells, ticking to add to the custom spell list? Or define the spell list within the class?

Similarly, is there a way to limit the Domains that are accessible to a cleric class?

As always, thanks in advance,

John / Greylin

--snip--
A further thought: if I set up the clerics as different classes (Cleric of Nuada, Cleric of Bane, etc.) - could I then set that class as a pre-requisite for the relevant Domains as a way to limit access to Domains to relevant classes? What might that code look like (or can you point me to some Things that already have that kind of pre-req code from which I could crib?)

We are in the process of updating all of the spells in both the core and community set. There is also a new feature going in (I think) that will allow you to add tags to things within core. I'm not sure how exactly that will work, but it should make it easier to create spell lists for classes. Until then, however, modifying each spell is really the only way to do it. Classes are assigned a class of spells, and any spells with that corresponding tag are then applied to its spell list. The only "simple" way is to assign an existing spell list.

As for domains, yes you can create a pre-req but only for the domains found in the community. You might be able to modify the cCstSpExpr for the class helper thing (ie cHelpClr) to specify which domains you want. I haven't tested this, though.

Check the Divine Oracle from Complete Divine for an example script located on the Helper Class thing.
 
Last edited:
There is also a new feature going in (I think) that will allow you to add tags to things within core. I'm not sure how exactly that will work
This feature is in as its part of HL editor not d20. You want to go to the General->*Extend tab. Here you type in the unique ID of a spell and then the tag group and tag.

So for example lets say your spell unique id is "spDetect1". You want to give this to a class with a unique id of cHelpWiz. You would enter spDetect1 as the Thing iD and the group would be "sClass" and the Tag would be "cHelpWiz". :)

Overall its really easy but you have to know the correct Tag IDs and Unique IDs to make use of the Extend tab.
 
This feature is in as its part of HL editor not d20. You want to go to the General->*Extend tab. Here you type in the unique ID of a spell and then the tag group and tag.

So for example lets say your spell unique id is "spDetect1". You want to give this to a class with a unique id of cHelpWiz. You would enter spDetect1 as the Thing iD and the group would be "sClass" and the Tag would be "cHelpWiz". :)

Overall its really easy but you have to know the correct Tag IDs and Unique IDs to make use of the Extend tab.

Ah, cool. Be nice if we could add more than one tag at a time, but I guess we can't have everything. :)
 
Thanks to both of you - this sounds like a potential solution. I'll have a look and come back if I have any questions.

How can I work at the XML level if I want to do a list of spells? That sounds like a potential fast and easy way to set up tailored spell lists.
 
How can I work at the XML level if I want to do a list of spells? That sounds like a potential fast and easy way to set up tailored spell lists.
User files are just XML files in plain ASCII text. Any text editor will do. But one that supports XML will make it easier like TextPad or Notepad++.
 
Update and followup question:

First off, many thanks for the advice and guidance.

Custom domains is working spot-on - I used the code from Divine Oracle and tailored it for each cleric class to give them a subset of domains.

I created some simple scripts to assemble the custom spell lists for each cleric class (subset of SRD and Spell Compendium so each cleric faith has a unique 'feel'), and added them to the .user file in the *Extend section via Notepad++.

Oddly, some spells do not then appear in HL in the custom spell list. No error messages, and most oddly it doesn't appear to be a consistent problem with a source - some SRD spells are visible, some are not.

Here's a cut and paste of a few lines from the *Extend XML, with the ones in red not displaying in HL. I tried adding some of the missing ones manually in the editor *Extend tab and that didn't make them visible in the custom spell list. Any ideas what might be causing this?

--snip--
<extthing thing="sClr70012" group="sClass" tag="ClerSolona"/>
<extthing thing="sClr80011" group="sClass" tag="ClerSolona"/>
<extthing thing="spStormra8" group="sClass" tag="ClerSolona"/>
<extthing thing="spChaEyes2" group="sClass" tag="ClerSolona"/>
<extthing thing="sClr10000" group="sClass" tag="ClerSelune"/>
<extthing thing="sClr10001" group="sClass" tag="ClerSelune"/>
<extthing thing="spBlesAim1" group="sClass" tag="ClerSelune"/>
<extthing thing="sClr10003" group="sClass" tag="ClerSelune"/>
<extthing thing="sClr10004" group="sClass" tag="ClerSelune"/>
<extthing thing="sClr10005" group="sClass" tag="ClerSelune"/>
<extthing thing="sClr10006" group="sClass" tag="ClerSelune"/>
<extthing thing="spDelayDi1" group="sClass" tag="ClerSelune"/>
<extthing thing="sClr10010" group="sClass" tag="ClerSelune"/>
 
Two things:

1) With the next release of the d20 core, many if not all of the core spells will be getting updated to fit new formats. This means that many of the thingids for these spells will be changing. The old spells will still appear in your portfolio if they are saved there prior to the next update. However, for something like this you will likely have to go back and redo many of the ids here. Not really the issue here, but I thought you should know.

2) It looks like the community set has replaced some of the core spells with it's own version. The PHB1 user file has a list of spells that replace core spells. In this case, you should use the id of the new spell. The easiest way to figure out which spell to use is probably to load up a Cleric, add the spell in question and see what's it id is by right-clicking and selecting Show Debug Tags. With the new core spells going in, this will almost certainly have to change as well. This is one of the reasons I haven't been working on classes or PrC's with unique spell lists.
 
I think you've cracked it - I was able to add one of the 'missing' SRD spells by using the ID from PHB1 - I hadn't thought to go look for SRD replacements in there.

Good reminder that the more we customise HL for our campaign, the more work we create for ourselves each time there's an update of either HL or Community as it invariably 'breaks' some of our campaign customisation. I'll see how I get on with the first class before I do the other 15 or so. :)

It's actually not too difficult - I've set up a master Excel sheet that looks up the ThingID based on spell name and auto-concatenates the text output so I can copy and paste into XML .user file. If I add the PHB1 spells and get the lookup priority correct it should be relatively straightforward to do now, or change later.

Thanks again for the guidance.

John / Greylin
 
Just a quick followup note to say thanks to both Sendric and ShadowChemosh - I'm fully sorted with unique domain and spell lists for the different cleric faiths in our campaign. Plus I learned loads about how HL works.

Thanks again!

John / Greylin
 
Back
Top