• 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

How to add Spellcasting through Archetypes

TobyFox2002

Well-known member
I am looking to create archetpyes that add spellcasting to non-spellcasting classes. Specifically, a "Spirit Healer" monk. That gains a limited number of healing and restorative spells.

I'm having trouble figuring out a way to do this. Could someone help me out, I know it cant be done through normal means but I've seen casting being added through scripts by editing the arrays.

I've never messed with that much, are there any examples with enough comments that I'd be able to pick up.
 
Check out the Vigilante playtest stuff. There are some Custom Abilities that do it, but the procedure they call should work with archetypes as well.

You can read the code for the procedures on the General -> Procedure tab in the editor.
 
There are two matrix fields in the editor for an archetype which adjusts spells known/memorized, so that part should be pretty easy. The spell list could be slightly more complicated, depending on how it is phrased. Could you tell me what the spell list for this archetype would be?
 
Its own, unique spell list. So, I cant answer that easily, I cant even create spells until I know how to generally attach them. I could have sworn I've seen spells linked to archetypes in the spell choices though for classes that have spell casting. But I'm not sure.

If you want just to take one for testing and example, use cleric for sake of demonstration. That would be fairly close.
 
Well, unfortunately, the ability to add a large number of individual spells to a class' spell list maxes out at something like 30 spells or so. So if your spell list is bigger than that, and isn't something general, like "All cleric spells with the Healing subschool, plus druid spells with the earth descriptor", then you'll have to create all the spells on the list in the editor and tag them with the sClass tag of this archetype.
 
I wouldnt be adding them individually, I would have created a new spell list. The problem that I am running in to is that It wont even show that the class has a spell list when I add the archetype. And I dont know why. I've tried to use the array information on the archetype editor and I didnt want to do anything with spell lists until I could get that working..

One step at a time and that sort of thing.
 
Hmm. Make a quick example archetype to test some stuff out.

Edit: I meant "Let me make".
 
Last edited:
I have one, I've been working on it all day, and nothing. No new spell section for the class it is applied to.


Base Class: Monk
Archetype: Spiritual Monk (Adds a number of life force spells, restoration and a few minor transmutations to the monk list, using a slightly expanded Ki pool to power those 'spells')
 
Do you have Heroes of the Jade Oath? There is a monk Archetype with spellcasting in there that might help. At least I'm pretty sure I coded one for it ...
 
It appears that the main thing you have to do to get spells to show up is assign a CasterType tag to the class helper.
 
The Kenza Monk had what I was doing wrong..

I was adding the tags for things like the caster type and Spellcasting Type directly to the Archetype.

You scripted it to attach it with all sorts of [linkage] which is something I know nothing about. When I copy and pasted the code (minus the sClass.Inquisitor stuff) it worked.

Now, I just need to create the spell list to match. Awesome! Thanks for the help mate.
 
"linkage[varies].whatever" is like the same as hero.child[cHelpXXX] except you don't need to know which class helper its connecting to because its whatever the archetype is set to use. Makes the code reusable.

You could just as easily just use hero.child[cHelpMnk] to attach it to the Monk class helper.
 
Back
Top