• 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

OK, a real question this time.

EightBitz

Well-known member
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.
 
Never mind. I finally realized what I was doing wrong. I got this bit working (... sort of ...) a different way now.
 
Back
Top