Ok, I'm getting stuck on doing this even though I swear I've done it before. What I am doing is using a class special to chose a spell from a specific list, then add that spell to the caster's spell list. In this case, its choosing from the wizard spell list and adding to the cleric spell list.
In Pathfinder, the following code adds a chosen spell to a spell list (ala Unsanctioned Knowledge feat):
Sadly, this doesn't work in d20 since HL doesn't know what ClsAllowSp is.
I also tried this:
It compiled, but I got the following error after choosing a spell:
I know I'm missing something simple. Anyone know what I can do here?
In Pathfinder, the following code adds a chosen spell to a spell list (ala Unsanctioned Knowledge feat):
Code:
if (field[usrChosen1].ischosen <> 0) then
~Add our spell to the spell list
perform field[usrChosen1].chosen.pulltags[ClsAllowSp.?]
perform hero.childfound[cHelpPal].pushtags[ClsAllowSp.?]
endif
Sadly, this doesn't work in d20 since HL doesn't know what ClsAllowSp is.
I also tried this:
Code:
perform field[usrChosen1].chosen.assign[sClass.Cleric]
It compiled, but I got the following error after choosing a spell:
Attempt to access pick information or behaviors for read-only thing 'sWizAlarm'
I know I'm missing something simple. Anyone know what I can do here?