Senior Member
Join Date: May 2010
Location: Maryland
Posts: 167
|
Is there a relatively simple way to create a new class the operates exactly like the Summoner, except receives spells from the Cleric spell list?
I'd be okay with just adding all the Divine spells to the Summoner's list -- just not sure how to go about it without duplicating every spell. |
#1 |
Senior Member
Join Date: May 2010
Location: Maryland
Posts: 167
|
I found this post, http://forums.wolflair.com/showthrea...ght=spell+list, which discusses adding spells one by one to a character through an adjustment.
Is there some way to iterate over all spells and, if some condition were true (e.g. on Cleric spell list), add it to the character's spell list? |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I didn't actually run this script but based on the other post you linked it should work. Tweak as needed. The important thing to notice is that we are looping through the "Things" not "picks" this means we are pulling from every spell in HL. Not just the spells that exist on the hero.
Code:
~ If no summoner class get out now doneif (hero.childlives[cHelpSum] <> 1) var sTag as string var sAllowSp as string ~ Loop through all Spell Things for the cleric class foreach thing in BaseSpell where "sClass.cHelpClr" ~ Pull the spells ThingID sTag = eachthing.tagids[thingid.?,"|"] ~ Change to Class Allow Spell tag sAllowSp = replace(sTag,"thingid.","ClsAllowSp.",0) ~ Assign spell to summoner perform hero.childfound[cHelpSum].assignstr[sAllowSp] nexteach Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#3 |
Senior Member
Join Date: May 2010
Location: Maryland
Posts: 167
|
Thanks!
|
#4 |
|
|