Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old May 11th, 2017, 03:49 PM
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?
TCArknight is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 11th, 2017, 05:03 PM
Wouldn't that turn every sorcery tab on the character red? Not just the specific one this ability is on?
Mathias is offline   #2 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old May 12th, 2017, 07:13 AM
Each character will only have one type of sorcery, so I'm ok with marking the overall tab.
TCArknight is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 12th, 2017, 07:45 AM
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.
Mathias is offline   #4 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 07:34 PM.


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