Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I am trying to give a Secondary Class a starting spellbook. I made the item fine, but I can't seem to tag it to a secondary class and the secondary class will not show up in the drop box.
Seems getting a started spellbook has gotten very challenging then the old days of just script it in. :-) Anyways, I got no idea how to do it now. Any ideas at what maybe I can look at? Last edited by Frodie; September 19th, 2017 at 12:20 PM. |
#1 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Is there a way to get a starting spellbook that any class can read?
|
#2 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Shoot me a copy of the file and I will take a look.
|
#3 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Thanks for looking at the file. Sorry it was a bit confusing, (still a work in progress).
Anyways, I finally got a spellbook to show up on the secondary class. But I could not get the free spells to show up in the spell book I made a class special and added this script - First 10000 call foctoclass doneif (state.isfocus = 0) ~ We cast wizard spells perform focus.assign[ClsCountAs.cHelpWiz] perform focus.assign[CSCountAs.Wizard] perform focus.assign[Classes.Wizard] perform focus.assign[StartSpell.cHelpWiz] perform focus.assign[sClass.cHelpWiz] perform focus.assign[CasterSrc.Arcane] perform focus.assign[CasterType.MemBook] perform focus.assign[Hero.Spellbook] perform focus.assign[StartBook.sbStartWiz] I also tried with a copy of the Wizard Starter Spell book with the script from the prayer book, got the same thing. |
#4 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Post removed, because I got something wrong. Anyways any help will be cool and thank you!
|
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
perform focus.assign[StartBook.sbStartWiz]
is the issue I think. That is causing the wizard starting spellbook to be added, which has the Target.cHelpWiz tag. I think you need to create a new starting spellbook with a Target tag for this secondary class. |
#6 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Yea that is the issue, but the new spellbook will not accept the tag of the secondary class.
I get this error Invalid tag expression specified for 'findchild' Location: Procedure 'SpBkFocus' near line 16 - - - Invalid tag expression specified for 'foreach' statement Location: 'evalrule' script for Component 'Spellbook' (Eval Rule '#2') near line 11 - - - Invalid tag expression specified for 'findchild' Location: Procedure 'SpBkFocus' near line 16 Is this something the "extend thing" could help with? Last edited by Frodie; September 21st, 2017 at 05:22 AM. |
#7 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Will not accept which tag of the secondary class? The Target tag?
|
#8 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Correct, it will not accept the target tag for a secondary class. Well, the item will take the tag, but it will get the above error when you try to get it to work for the class. On the item, there is the drop box for classes to link to the spellbook, but I can't seem to get a secondary class to show. I made a new tag within the class drop box, but still a no go. Unless the target is a listed class within that dropbox of classes it will not work. So IDK how to get on the list.
ATM, I can get the new spellbook to show up and not in red, if it's made for a wizard, but I can't get the Starting Spells to show. It's in the script above at first 1000, so maybe it's a timing issue. Last edited by Frodie; September 21st, 2017 at 09:39 AM. |
#9 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
I guess send me the file again. And please avoid charging ahead and changing things until I can actually look at the problem and give feedback.
|
#10 |
|
|