Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Summoner with Divine Spells (http://forums.wolflair.com/showthread.php?t=33260)

Adam.Ormond January 6th, 2013 08:42 AM

Summoner with Divine Spells
 
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 January 6th, 2013 08: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?

ShadowChemosh January 6th, 2013 09: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


Adam.Ormond January 7th, 2013 06:03 AM

Thanks!


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

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