Senior Member
Join Date: May 2013
Posts: 1,458
|
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> 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> |
#1 |
Senior Member
Join Date: May 2013
Posts: 1,458
|
Never mind. I finally realized what I was doing wrong. I got this bit working (... sort of ...) a different way now.
|
#2 |
Thread Tools | |
Display Modes | |
|
|