Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Mathias,
I'm trying to figure out how to limit the tag expression so that prepared spell choice is limited to the spells in the spellbook. I can't seem to understand what part of the spell expression tells herolab to limit it to spellbook spells though. I have two tag expressions set up so far Code:
cSplBkExpr = (spClass.cMage) & !Hide.Spell & !Helper.Helper and Code:
cSpellExpr = (spClass.cMage & Spellbook.cMage) & !Hide.Spell & !Helper.Helper Code:
hero#HasWizSplb Here is my portal for prepared spells: Code:
<portal id="clSpellAdd" style="tblInvis"> <table_dynamic component="Spell" showtemplate="clSpelThin" choosetemplate="clSpelPick" showsortset="Spells" choosesortset="Spells" useagentadd="yes" useagentcandidate="yes" agentlist="SpellSort" agentautotag="SpellSort" useagentlinkage="yes" candidatefield="clSpelExpr"> <list></list> <candidate></candidate> <headertitle><![CDATA[ @text = "Spells" ]]></headertitle> <additem> @text = "Add Prepared Spells" </additem> </table_dynamic> </portal> RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. Last edited by RavenX; April 29th, 2014 at 07:09 PM. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Since the 0-level spells are added free to all the spellbooks, even a starting character has some spells there, so their cSpellExpr is not empty, and generates a list of spells to choose from. So, we want to force the user to add some more spells to their spellbook before preparing spells. That tag is only added to the hero if there are user-added spells at level > 0. Otherwise, we get bug reports about wizards not being able to select spells - people prepare spells before adding spells to their spellbook. With that tag in the expression, the automatic spells are hidden until some manually added spells are present.
|
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
So I'm guessing the reason my prepared spells aren't showing up is based on the agent list and list tag expressions?
RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
I can't help without seeing all the tags on the spells in the spellbook of your test character - this is something you'll need to study - why is this tag expression not matching the spells I want it to match.
Also, spelling - your portal calls the field clSpelExpr, your listing of the expressions call it cSpellExpr. |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Mathias,
I've attached a screen shot showing the pick fields for the Mage class and tags for the Spell Affect Normal Fires from the spellbook. RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Actually, it doesn't look like the problem is in the tags.
Study the choosepicks setting that's available for the tables. Hint: in d20/pathfinder, there are actually separate tables for the spells for a spellbook caster and the spells for a non-spellbook caster. |
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Added
choosepicks="container" And now the list of spells from the spellbook is appearing. Based on what you're telling me, I'll need a completely different table for non-spellbook casters because they don't need spellbooks so hero lab would throw an error searching for a non-existant spell list. I'll build a new table to handle divine spontaneous casters. Thanks for the help on this. RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
#7 |
|
|