I am coding a class special that the user can selected a single specific spells from the enchantment school, and that spell gains +1 to its DC. However, the spell selected can be a spell that the character does not have access to yet, i.e. is not on their spell list or in their spell book.
First of all I got the spell selection part down by using
component.BaseSpell & sSchool.Enchant
in Item Selection for the class special.
However it is at this point I get stuck. How do I get the DC bonus to the spell?
Here is the code I have so far (which doesn't work)
I am also planning on putting a doneif which checks if the spell is currently selected in the character.
I expect the code needs to be similar to the Improved Spell Difficulty feat from the Beginner Box. However, I cannot access the code to that feat since the editor is not available the Beginner Box data set.
First of all I got the spell selection part down by using
component.BaseSpell & sSchool.Enchant
in Item Selection for the class special.
However it is at this point I get stuck. How do I get the DC bonus to the spell?
Here is the code I have so far (which doesn't work)
Code:
~ If we haven't chosen anything, get out now
doneif (field[usrChosen1].ischosen = 0)
perform field[usrChosen1].chosen.setfocus
focus.field[sDC].value += 1
I am also planning on putting a doneif which checks if the spell is currently selected in the character.
I expect the code needs to be similar to the Improved Spell Difficulty feat from the Beginner Box. However, I cannot access the code to that feat since the editor is not available the Beginner Box data set.
