• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Spells for different classes

RavenX

Well-known member
Mathias,

How do I get Hero Lab to keep spells added by different classes on their respective class tabs?

For instance if I have a cleric/mage I would only want the Mage spells added showing on the mage tab and the cleric spells showing on the cleric tab.
 
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.
 
useagentadd="yes"
useagentcandidate="yes"
agentlist="Spellbook"
agentautotag="Spellbook"
useagentlinkage="yes"

For a dynamic table I can see agentlist is present.
 
Last edited:
After fiddling around with these settings, I am guessing that I need to set up some kind of candidate expression or list expression 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>
 
Last edited:
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.

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?
 
Last edited:
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>

You've got the candidate expression set up correctly, and working, right?

So I'm not sure what question you're asking in this post:

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?

Didn't your previous post suggest that things were working? What are you still having trouble with?
 
I have two classes: Bard and Mage, if I add a spell to the Mage tab, it shows up on the Bard tab. I need a way to fix that.

So I am not sure if my tag expression isn't right or if I set up something on the table incorrectly.
 
Here is what I have set up for my table:

Code:
  <!-- 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>
 
Mathias,

I think I figured this out, but I wanted to ask you anyway. I left my candidate expression alone, and created a new identity group called SpellSort. I set the agentlist="SpellSort" and agentautotag="SpellSort" and it seems to be working. I just want to make sure that is the solution you were hoping I'd figure out?
 
Back
Top