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
Here's the code from tab_abilities
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.
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.