Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old February 1st, 2016, 04:00 PM
I want to apply a chooser portal to a certain ability. Aaaaand, I don't know what I'm doing.

Here's the code from thing_abilities
Code:
  <thing
    id="abChrmLnk2"
    name="Initial Link"
    compset="Ability"
    isunique="yes"
    description="{br}{br}{b}Descriptor(s):{/b} Charming">


    <fieldval field="usrLabel1" value="Menu1"/>
    <fieldval field="usrCandid1" value="component.Skill"/>
    <tag group="ChooseSrc1" tag="Thing"/>

    <tag group="Hide" tag="Ability"/>

    </thing>
Here's the code from tab_abilities
Code:
    <portal
      id="name"
      style="lblNormal"
      showinvalid="yes">
      <label>
        <labeltext><![CDATA[
          ~if we have a custom name to display, use it; otherwise, use the base name
          if (tagis[ChooseSrc1.Thing] <> 0) then
            @text = field[name].text & ":"
          else
            @text = field[name].text
            endif
          ~field[usrSelect].text = link.field[name].value
          ]]></labeltext>
        </label>
      </portal>


    <portal id="link" style="chsNormal" width="110">
      <chooser_table component="Skill" choosetemplate="LargeItem">
        <chosen><![CDATA[
          if (@ispick = 0) then
            @text = "{text ff0000}Select Option"
          else
            @text = field[name].text
            endif
          ]]></chosen>
        </chooser_table>
      </portal>
Everything works visually, but I don't know how integrate it so it's functional. If I choose a thing withing the chooser portal, it never gets assigned to the ability.
EightBitz is offline   #1 Reply With Quote
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old February 1st, 2016, 10:00 PM
Never mind. I finally realized what I was doing wrong. I got this bit working (... sort of ...) a different way now.
EightBitz is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

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 03:48 AM.


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