Junior Member
Join Date: Oct 2010
Posts: 26
|
Quote:
|
|
#11 |
Junior Member
Join Date: Oct 2010
Posts: 26
|
Unfortunately I can't seem to get this to work. This is how the eval script reads right now:
~ Add transmutation school to spell list hero.childfound[cHelpWit].field[cSpellExpr].text &= "|sSchool.Transmutat" The phase is "Final Phase" and the Priority is 7000 (although I've tried a number of priorities from 100 to 11000. |
#12 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
I think the correct timing is more like Final/999999999
|
#13 |
Junior Member
Join Date: Oct 2010
Posts: 26
|
|
#14 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
well the Red Mantis Assassin uses this at Post-Levels 10,500
Code:
~ in addition to class-specific spells, we're also allowed Sor/Wiz spells from the Illusion and Transmutation schools field[cSpellExpr].text = "(" & field[cSpellExpr].text & ") | ((sClass.cHelpSor | sClass.cHelpWiz) & (sSchool.Illusion | sSchool.Transmutat))" |
#15 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Blah what we all forgot is that a Witch has a "Spellbook"! So we have to modify the spellbook expression and the normal spell expression. It causes some issues because of this spellbook as we only want to be able to prepare the spells chosen on the spellbook. Sigh so what I did was use the portal.ClsBook tag to allow anything chosen on the spellbook to let those be prepared also.
The issue with using portal.ClsBook means if you have a "witch/wizard" it will let you select spells from the wizards spellbook. Sigh... But I am going to just hope you don't need to support a witch/wizard!!!!! Here is the working script: Post-Levels/10500 Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) ~ If no witch class get out now! doneif (hero.childlives[cHelpWit] <> 1) ~ Add transmutation school and spells picked from spell book hero.childfound[cHelpWit].field[cSpellExpr].text &= " | (sSchool.Transmutat & portal.ClsBook)" ~ Add transmutation school to spell book and specific spell levels here hero.childfound[cHelpWit].field[cSplBkExpr].text &= " | ((!Hide.Spell & !Helper.Obsolete & !Helper.Helper) & (sSchool.Transmutat & (" & tagids[sLevel.?,"|"] & ")))" You do this by pressing the blue "Tags" button on the right: Noname.jpg Then your 2nd feat script can then assign the additional level tags to the feat at Post-Levels/10000 which is BEFORE the script on the first feat runs. Post-Levels/10000: Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) ~ If no feat get out now! doneif (hero.childlives[fWitchXXXX] <> 1) ~ Give access to level 4 to 6 perform hero.child[fWitchXXXX].assign[sLevel.4] perform hero.child[fWitchXXXX].assign[sLevel.5] perform hero.child[fWitchXXXX].assign[sLevel.6] 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. |
#16 |
Junior Member
Join Date: Oct 2010
Posts: 26
|
Wow... thanks so much. That works like a charm! =)
|
#17 |
Junior Member
Join Date: Oct 2010
Posts: 26
|
So that added the spells to my spell list, but they don't seem to be showing up on the list of available options for mythic spellcasting.
Any thoughts? |
#18 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Final-Phase/99999999999999 Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) ~ If no mythic helper get out now! doneif (hero.childlives[MythHelper] <> 1) hero.child[MythHelper].field[mhSplExpr].text ="component.BaseSpell & !fieldisempty:sMythic & (sClass.cHelpWit|sSchool.Transmutat) & !Helper.Helper & !Helper.Obsolete" 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. |
|
#19 |
Junior Member
Join Date: Oct 2010
Posts: 26
|
That works perfectly. Thank you again for all your help!! =)
|
#20 |
|
|