Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Adam.Ormond
Senior Member
 
Join Date: May 2010
Location: Maryland
Posts: 164

Old January 6th, 2013, 09:42 AM
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.
Adam.Ormond is offline   #1 Reply With Quote
Adam.Ormond
Senior Member
 
Join Date: May 2010
Location: Maryland
Posts: 164

Old January 6th, 2013, 09:59 AM
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?
Adam.Ormond is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,728

Old January 6th, 2013, 10:19 AM
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.
ShadowChemosh is offline   #3 Reply With Quote
Adam.Ormond
Senior Member
 
Join Date: May 2010
Location: Maryland
Posts: 164

Old January 7th, 2013, 07:03 AM
Thanks!
Adam.Ormond is offline   #4 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:20 AM.


Powered by vBulletin® - Copyright ©2000 - 2021, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.