Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Authoring Kit (http://forums.wolflair.com/forumdisplay.php?f=58)
-   -   Custom Ability / Secondary Custom Ability table issue (http://forums.wolflair.com/showthread.php?t=48701)

RavenX March 27th, 2014 07:03 PM

Custom Ability / Secondary Custom Ability table issue
 
So I believe I have sorted out the issue about keeping the custom abilities added to a specific agent based tab, but now I have a problem with my Primary and Secondary Table... if I add an ability to the Primary Table it shows up on the Secondary ability table, and it should not. Ideas on how to fix this?

Mathias March 27th, 2014 08:41 PM

The list expression is where you solve that. You may also need an autotag on those tables.

RavenX March 27th, 2014 08:49 PM

Quote:

Originally Posted by Mathias (Post 178620)
The list expression is where you solve that. You may also need an autotag on those tables.

I'm guessing the autotag should be different on all five tables?

RavenX March 27th, 2014 08:56 PM

Here is what I've set up for my tables.

Code:

  <!-- clCustom portal
        presents the user with a dynamic table that allows the selection of
        psionic disciplines to add to their character.
  -->
  <portal
    id="clCustom"
    style="tblInvis">
    <table_dynamic
      component="CustomAbil"
      showtemplate="SimpleItem"
      choosetemplate="SimpleItem"
      useagentadd="yes"
      useagentcandidate="yes"
      agentlist="CustTaken"
      agentautotag="CustTaken"
      useagentlinkage="yes"
      candidatefield="cCstSpExpr">
      <list></list>
      <candidate inheritlist="yes"></candidate>
      <headertitle><![CDATA[
        @text = agent.field[cSpecSing].text
        ]]></headertitle>
      <additem><![CDATA[
        @text = "Add " & agent.field[cSpecName].text
        ]]></additem>
      </table_dynamic>
    </portal>

  <!-- clCustom2 portal
        presents the user with a dynamic table that allows the selection of
        psionic disciplines to add to their character.
  -->
  <portal
    id="clCustom2"
    style="tblInvis">
    <table_dynamic
      component="CustomAbil"
      showtemplate="SimpleItem"
      choosetemplate="SimpleItem"
      useagentadd="yes"
      useagentcandidate="yes"
      agentlist="CustTaken"
      agentautotag="CustTaken"
      useagentlinkage="yes"
      candidatefield="cCstS2Expr">
      <list></list>
      <candidate inheritlist="yes"></candidate>
      <headertitle><![CDATA[
        @text = agent.field[cSpec2ndSi].text
        ]]></headertitle>
      <additem><![CDATA[
        @text = "Add " & agent.field[cSpec2ndNm].text
        ]]></additem>
      </table_dynamic>
    </portal>

  <!-- clCustom portal
        presents the user with a dynamic table that allows the selection of
        psionic disciplines to add to their character.
  -->
  <portal
    id="clCustom3"
    style="tblInvis">
    <table_dynamic
      component="CustomAbil"
      showtemplate="SimpleItem"
      choosetemplate="SimpleItem"
      useagentadd="yes"
      useagentcandidate="yes"
      agentlist="CustTaken"
      agentautotag="CustTaken"
      useagentlinkage="yes"
      candidatefield="cCstS3Expr">
      <list></list>
      <candidate inheritlist="yes"></candidate>
      <headertitle><![CDATA[
        @text = agent.field[cSpec3rdSi].text
        ]]></headertitle>
      <additem><![CDATA[
        @text = "Add " & agent.field[cSpec3rdNm].text
        ]]></additem>
      </table_dynamic>
    </portal>

  <!-- clCustom4 portal
        presents the user with a dynamic table that allows the selection of
        psionic disciplines to add to their character.
  -->
  <portal
    id="clCustom4"
    style="tblInvis">
    <table_dynamic
      component="CustomAbil"
      showtemplate="SimpleItem"
      choosetemplate="SimpleItem"
      useagentadd="yes"
      useagentcandidate="yes"
      agentlist="CustTaken"
      agentautotag="CustTaken"
      useagentlinkage="yes"
      candidatefield="cCstS4Expr">
      <list></list>
      <candidate inheritlist="yes"></candidate>
      <headertitle><![CDATA[
        @text = agent.field[cSpec4thSi].text
        ]]></headertitle>
      <additem><![CDATA[
        @text = "Add " & agent.field[cSpec4thNm].text
        ]]></additem>
      </table_dynamic>
    </portal>

  <!-- clCustom5 portal
        presents the user with a dynamic table that allows the selection of
        psionic disciplines to add to their character.
  -->
  <portal
    id="clCustom5"
    style="tblInvis">
    <table_dynamic
      component="CustomAbil"
      showtemplate="SimpleItem"
      choosetemplate="SimpleItem"
      useagentadd="yes"
      useagentcandidate="yes"
      agentlist="CustTaken"
      agentautotag="CustTaken"
      useagentlinkage="yes"
      candidatefield="cCstS5Expr">
      <list></list>
      <candidate inheritlist="yes"></candidate>
      <headertitle><![CDATA[
        @text = agent.field[cSpec5thSi].text
        ]]></headertitle>
      <additem><![CDATA[
        @text = "Add " & agent.field[cSpec5thNm].text
        ]]></additem>
      </table_dynamic>
    </portal>


RavenX March 27th, 2014 09:32 PM

Quote:

Originally Posted by Mathias (Post 178620)
The list expression is where you solve that. You may also need an autotag on those tables.

I've been looking at Pathfinder more, and I just noticed a field[cCstSpList] up there... I am guessing this is the list tag expression I need?

Mathias March 28th, 2014 06:46 AM

The list expression tells a table what picks it should display, by giving it a tag expression that describes what can and cannot be present.

Talk me through what that list expression needs for this table. How will the list expression for the primary table differ from the expression on the secondary table?

Building tag expressions is an absolutely required skill for building a game system in Hero Lab, so I want to walk you through the process of figuring this out, so you'll have a better toolbox for the next issue.

RavenX March 28th, 2014 07:18 AM

We'd need a tag that identifies the class that added it, and one that identifies the Primary table as the one to show it,

CustTaken.cMage & AbilGroup.Primary1

Mathias March 28th, 2014 07:22 AM

Correct. You've already added the agentlist="CustTaken", so part 1 of your expression is already in place in this table.

Now, how are you going to insure that everything in this table has the AbilGroup.Primary1 tag? Is the tag going to be present before you add the thing to the table, or do you want to add it with an autotag?

Then, once that tag is present, you'll need a list expression that restricts you to only those picks that have that tag.

RavenX March 28th, 2014 07:29 AM

The tag is added to the Custom Ability through a tagpick chooser in the Editor, so it would already be present.

RavenX March 28th, 2014 07:42 AM

Quote:

Originally Posted by Mathias (Post 178701)
Then, once that tag is present, you'll need a list expression that restricts you to only those picks that have that tag.

Do I need to add this?

Code:

<list>AbilGroup.Primary</list>


All times are GMT -8. The time now is 07:40 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.