Senior Member
Join Date: May 2015
Posts: 830
|
Couldnt you use the same logic to populate the spellbook that you use to populate the class spell list (using a drop down menu in the spellbook itself to determine which class to pull from)? That would then enable the standardize the searching in class spell lists.
|
#21 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Quote:
|
|
#22 |
Senior Member
Join Date: May 2015
Posts: 830
|
If I wanted to do hat in the editor is that something do able?
|
#23 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
You wouldn't be able to use the selector. You could create a version of the gear item which overwrites the candidate expression to use a set class, if you wanted. For example, you could make a "prayer book (cleric)".
I think that would be as simple as adding a Target tag for the class you want it to point at. If that won't work, you'd need to go into the gizmo with an eval script, find the SpBkClsHlp pick, and override the abItemExpr field (which I believe is set at Render 10000). |
#24 |
Senior Member
Join Date: May 2015
Posts: 830
|
Quote:
|
|
#25 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
|
#26 |
Senior Member
Join Date: May 2015
Posts: 830
|
I have attached the user file I am working with, I am trying to get the spell bok to list only clerical spells, and to not have them greyed out when trying to add them to the spell book. From your previous post it sounds like it should be fairly straight forward process but I guess I am not familiar enough with the editor to grasp how to do that.
|
#27 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
I'll take a look at this sometime this evening.
|
#28 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Alright, sorry it slipped to this morning.
So turns out it was a little more complex than I was remembering (surprise surprise). In order for the Target tag to be automatically used, there also needs to be a Helper.StartBook tag present, but you can't just have that tag be defined as part of the thing because Starting Books aren't available to be purchased. So you need to add that tag in a script, that way you can still buy the book but all the background component scripts get activated. First 500 Code:
perform assign[Helper.StartBook] Final 10000 Code:
perform hero.assign[Hero.Spellbook] foreach pick in gizmo from BaseSpell perform eachpick.assign[Spellbook.PrayerBook] nexteach |
#29 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Hope that helps, don't hesitate to shout if you have more issues!
|
#30 |
|
|