• 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

panellink / containervalid for Agent tabs?

TCArknight

Well-known member
Hi all!

I have this tab:
Code:
  <!-- sorcery panel
        This is the "Sorcery" panel shown within Hero Lab.
  -->
  <panel
    id="sorcery"
    name="Sorcery"
    marginhorz="5"
    marginvert="5"
    order="155"
    agentcompset="Sorcery"
    agentlive="HasSorc"
    agentname="name"
    >
    <live>!HideTab.sorcery</live>
    <layoutref layout="sorcery"/>
    <position><![CDATA[
      ]]></position>
    </panel>

If I try to use panellink="sorcery" (for Resource components on the tab) or container.panelvalid[sorcery] (for validations) the tab is never marked invalid, even if a resource would mark another panel invalid.

What am I missing when dealing with these agents?
 
Wouldn't that turn every sorcery tab on the character red? Not just the specific one this ability is on?
 
The id of the actual agent tab that exists on the character is the Id of the agent pick that created it - "sorcery" is the id of the template that was used to create that pick.

So transition to that agent context, and then use "linkvalid"

Code:
hero.findchild[Component,"some expression"].linkvalid = 0
for example, or

Code:
linkage[table].linkvalid = 0
if you're running this from a pick that was added to that panel.
 
Back
Top