Senior Member
Join Date: Sep 2017
Posts: 600
|
Quote:
Getting back on topic, I've taken your code and am about 90% done with a template that provides it for each class. I'll be testing it with the Bard first. I'll leave the sorcerer alone for now, since you've got it covered. Just send me whatever you have when you're happy with it! One note: I pictured Proficiency Versatility and Spell Versatility as only needing 1 ability that can be selected by all relevant classes. So instead of needing to make a new copy for each class, just modify the one I made to also be available to your Sorcerer Configurable. Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
|
#11 |
Member
Join Date: Nov 2014
Posts: 90
|
There are some tags and such I haven't encountered before. I may ask you some questions, if I may.
|
#12 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
Fire away. I'll do my best, but I'm no expert.
Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#13 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
Not to necro the thread, but I had a realization about this. I did something similar with the Ravnica guild backgrounds. When chosen, they add a specific set of spells to your overall spell list. Am I crazy, or could this code do the trick as well? It certainly works when added as part of a background.
Code:
<thing id="ab5CGGRAzSpl" name="Azorius Spellcasting" description="Azorius spellcasters blah blah blah" compset="Ability"> <tag group="Helper" tag="ShowSpec" name="Show Spec" abbrev="Show Spec"/> <tag group="ClsAllowSp" tag="sp5CFriend"/> <tag group="ClsAllowSp" tag="spMessage"/> <tag group="ClsAllowSp" tag="spCommand"/> <tag group="ClsAllowSp" tag="sp5CEnsnaS"/> <tag group="ClsAllowSp" tag="spArcaLock"/> <tag group="ClsAllowSp" tag="spCalmEmot"/> <tag group="ClsAllowSp" tag="spHoldPers"/> <tag group="ClsAllowSp" tag="spClairvoy"/> <tag group="ClsAllowSp" tag="sp5CCounte"/> <tag group="ClsAllowSp" tag="sp5CCompul"/> <tag group="ClsAllowSp" tag="spDivinati"/> <tag group="ClsAllowSp" tag="spDomiPers"/> <tag group="AbilFunc" tag="Background"/> <eval phase="First">foreach pick in hero from Class perform eachpick.pushtags[ClsAllowSp.?] nexteach</eval> </thing> Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! Last edited by Fenris447; March 4th, 2020 at 11:28 AM. |
#14 |
Member
Join Date: Nov 2014
Posts: 90
|
Seems so. Guess there is more than one way to skin a cat (as the saying goes, I would never condone violence towards animals except in an RPG)
|
#15 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
I've programmed out the expanded spell lists my way and it's working really nicely. However, I don't think my way is going to work for the Eldritch Knight, Arcane Trickster, Arcana Cleric, etc. that basically borrow spell lists from other classes.
I haven't tested my way for those subclasses, but I'm going to give both mine and yours a shot and see what works. Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#16 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
To close this out, here's the final code for the Sorcerer's expanded spell list that was in Release 2.4 yesterday:
Code:
<thing id="abSor5CXSpLst" name="Expanded Sorcerer Spell List" description="This feature adds the {i}Demiplane{/i}, {i}Fire Shield{/i}, {i}Flame Blade{/i}, {i}Flaming Sphere{/i}, {i}Flesh to Stone{/i}, {i}Foresight{/i}, {i}Grease{/i}, {i}Primal Savagery{/i}, {i}Protection from Evil and Good{/i}, and {i}Vampiric Touch{/i} spells to the Sorcerer's spell list." compset="Ability"> <tag group="AllowRCust" tag="cfg5CCFVSor"/> <tag group="Helper" tag="Primary"/> <tag group="Helper" tag="SpecUp"/> <tag group="ClsAllowSp" tag="spDemiplan"/> <tag group="ClsAllowSp" tag="spFireShie"/> <tag group="ClsAllowSp" tag="spFlamBlad"/> <tag group="ClsAllowSp" tag="spFlamSphe"/> <tag group="ClsAllowSp" tag="spFlesSton"/> <tag group="ClsAllowSp" tag="spForesigh"/> <tag group="ClsAllowSp" tag="spGrease"/> <tag group="ClsAllowSp" tag="sp5CXGEPrS"/> <tag group="ClsAllowSp" tag="spProtGoEv"/> <tag group="ClsAllowSp" tag="spVampTouc"/> <eval phase="First"><![CDATA[ doneif (tagis[Helper.Disable] <> 0) foreach pick in hero from Class where "Classes.Sorcerer" perform eachpick.pushtags[ClsAllowSp.?] nexteach]]></eval> <exprreq message="Requires Sorcerer level 1"><![CDATA[#levelcount[Sorcerer] >= 1]]></exprreq> </thing> The "ClsAllowSp" tags normally would be on a class thing. They're there to say that the spell whose ID is in the tag is allowed by this class. The eval script goes through and says that for every class on the hero that has the "Classes.Sorcerer" tag (so only the Sorcerer, basically), push the ClsAllowSp tags from this thing to that class. So it takes those tags from this ability, and shoves them onto the class, thereby making all those spells available. The exprreq is just making sure the hero has a level in Sorcerer. This worked for almost everything, including the Eldritch Knight and Arcane Trickster. For those, I had the foreach look for Classes.Fighter and Classes.Rogue, respectively. But I did end up using wynlyndd's code for the Divine Soul Sorcerer, to make sure all the new Cleric spells ended up properly on that subclass's spell list. So it was definitely needed. Code:
<thing id="abSor5CXSpLDv" name="Expanded Divine Soul Sorcerer Spell List" description="This feature adds the {i}Aura of Life{/i}, {i}Aura of Purity{/i}, {i}Aura of Vitality{/i}, {i}Branding Smite{/i}, {i}Cause Fear{/i}, {i}Power Word Heal{/i}, {i}Skill Empowerment{/i}, {i}Wall of Light{/i}, and {i}Wrathful Smite{/i} spells to the Cleric/Divine Soul Sorcerer's spell list." compset="Ability"> <tag group="AllowRCust" tag="cfg5CCFVSor"/> <tag group="Helper" tag="Primary"/> <tag group="Helper" tag="SpecUp"/> <eval phase="Final" priority="21000"><![CDATA[doneif (tagis[Helper.Disable] <> 0) ~these vars will hold the tag expressions for spells and cantrips var spell as string var known as string var first as string var second as string var third as string var fourth as string var fifth as string var ninth as string ~ fetch spell expressions spell = hero.childfound[cHelpSor].field[cSpKnoExpr].text known = hero.childfound[cHelpSor].field[cSpellExpr].text ~ these receive the extra spells for each circle first = " | thingid.sp5CXGECaF | thingid.sp5CWrathS " second = " | thingid.sp5CBrandS " third = " | thingid.sp5CAurVit " fourth = " | thingid.sp5CAurLif | thingid.sp5CAurPur " fifth = " | thingid.sp5CXGESkE | thingid.sp5CXGEWaL " ninth = " | thingid.sp5CPwrWH " spell &= first known &= first spell &= second known &= second spell &= third known &= third spell &= fourth known &= fourth spell &= fifth known &= fifth spell &= ninth known &= ninth hero.childfound[cHelpSor].field[cSpKnoExpr].text = spell hero.childfound[cHelpSor].field[cSpellExpr].text = known hero.childfound[cHelpSor].field[cSplBkExpr].text = known]]></eval> <pickreq thing="c5CSorDiSo"/> </thing> Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#17 |
|
|