Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<eval index="6" phase="First" priority="1000"><![CDATA[
var spellexpr as string
if (tagis[Helper.Spellcast] <> 0) then
spellexpr = tagids[spClass.?]
endif
field[clSpelExpr].text = "component.Spell & " & spellexpr
]]></eval>
You've sorted out how to keep the class abilities that you add to a class from showing up on the other classes, right? You can re-use that same solution for spells.
Alright, I built up a candidate expression as you taught me, and set the agentlist="spClass" tags which are assigned to the spells. Now they are showing up on the class tab that has the spClass tags that match the spell.
Here is what I've got for the candidate expression so far...
Code:<eval index="6" phase="First" priority="1000"><![CDATA[ var spellexpr as string if (tagis[Helper.Spellcast] <> 0) then spellexpr = tagids[spClass.?] endif field[clSpelExpr].text = "component.Spell & " & spellexpr ]]></eval>
I am not sure what solution you're referring to here... I thought it was agentlist="" but I am not sure what I need to do with this right now.
Do I need to set a Candidate pick to go with the agent list?
<!-- clSpellAdd portal
presents the user with a dynamic table that allows the selection of
psionic disciplines to add to their character.
-->
<portal
id="clSpellAdd"
style="tblInvis">
<table_dynamic
component="Spell"
showtemplate="clSpelThin"
choosetemplate="clSpelPick"
showsortset="Spells"
useagentadd="yes"
useagentcandidate="yes"
agentlist="spClass"
agentautotag="spClass"
useagentlinkage="yes"
candidatefield="clSpelExpr">
<list></list>
<candidate inheritlist="yes"></candidate>
<headertitle><![CDATA[
@text = "Spells"
]]></headertitle>
<additem>
@text = "Add Prepared Spells"
</additem>
</table_dynamic>
</portal>