Hello, I need some help - I'm trying to create a feat that will allow a spellcaster (who relies on spontaneous casting, such as a sorcerer, bard, or oracle, ect...) to be able to gain 1 new spell (from his class’s spell list) to add to his list of spells known per level This is in addition to the number of spells normally gained at each new level in his class.
(I also want it to be able to be taken multiple times)
I found a feat called "Expanded Arcana" which does about 75% of what I want my feat to do... It gives you a new spell when you take it, but it is only a "one shot" feat, meaning that you only get the new spell when you take the feat, not at each new level you gain... (it also has another ability where a player can take two spells, if they are of a lower level than the character's max spell level - I don't want this part)
With the advice of others, I figured out how to remove the "two spells" ability from it, so that it only has the option to add 1 new spell... but I still need help with how to make it give me a new spell at each new level, instead of just when I take it...
These are the remaining scripts: Eval Script:
Eval Rule:
I'd like to add that I am a complete noob, and have no experience at editing, coding, or scripting, so please keep that in mind when attempting to assist me
(I also want it to be able to be taken multiple times)
I found a feat called "Expanded Arcana" which does about 75% of what I want my feat to do... It gives you a new spell when you take it, but it is only a "one shot" feat, meaning that you only get the new spell when you take the feat, not at each new level you gain... (it also has another ability where a player can take two spells, if they are of a lower level than the character's max spell level - I don't want this part)
With the advice of others, I figured out how to remove the "two spells" ability from it, so that it only has the option to add 1 new spell... but I still need help with how to make it give me a new spell at each new level, instead of just when I take it...
These are the remaining scripts: Eval Script:
Code:
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen1].ischosen = 0)
field[actUserMin].value += maximum(field[usrChosen1].chosen.field[cSplMinLvl].value - field[usrIsCheck].value, 0)
field[actUserMax].value += maximum(field[usrChosen1].chosen.field[cSplMaxLvl].value - field[usrIsCheck].value, 0)
Eval Rule:
Code:
~ If we're disabled, do nothing
validif (tagis[Helper.FtDisable] <> 0)
~if we haven't chosen anything yet, just get out now
validif (field[usrChosen1].ischosen = 0)
var spelllevel as number
spelllevel = maximum(field[usrChosen1].chosen.field[cMaxSpLev].value - field[usrIsCheck].value, 0)
if (spelllevel >= field[actUser].value) then
@valid = 1
endif
spelllevel = minimum(spelllevel, field[actUser].value)
field[usrChosen1].chosen.field[cKnowMax].arrayvalue[spelllevel] += 1
I'd like to add that I am a complete noob, and have no experience at editing, coding, or scripting, so please keep that in mind when attempting to assist me