TCArknight |
October 22nd, 2017 10:18 AM |
Choosesortset not working?
I am having an issue with a chooser_table and a choosesortset.
Portal:
Code:
<portal
id="hoSpecies"
style="chsNormal"
width="110">
<chooser_table
component="Species"
choosetemplate="SimpleItem"
choosesortset="SpecSort">
<chosen><![CDATA[
if (@ispick = 0) then
@text = "{text clrwarning}Select Species"
else
@text = "Species: " & field[name].text
endif
]]></chosen>
<titlebar><![CDATA[
@text = "Choose the Species for your character"
]]></titlebar>
</chooser_table>
</portal>
SpecCat tag:
Code:
<!-- Species Cat group -->
<group
id="SpecCat"
sequence="explicit">
<value id="Player" order="10"/>
<value id="NPC" order="20"/>
</group>
Sortset (in control.1st):
Code:
<!-- SpecSort - Species sortset -->
<sortset id="SpecSort" name="Species Sort">
<sortkey isfield="no" id="SpecCat"/>
<sortkey isfield="no" id="_Name_"/>
</sortset>
Species:
Code:
<thing id="spcHdrPlay" name="Player" compset="Species" uniqueness="unique" isshowonly="yes">
<usesource source="ENT"/>
<usesource source="TOS"/>
<usesource source="TNG"/>
<tag group="SpecCat" tag="Player"/>
<tag group="SimpleItem" tag="CenterName"/>
</thing>
<thing id="spcHdrNPC" name="NPC" compset="Species" uniqueness="unique" isshowonly="yes">
<usesource source="ENT"/>
<usesource source="TOS"/>
<usesource source="TNG"/>
<tag group="SpecCat" tag="NPC"/>
<tag group="SimpleItem" tag="CenterName"/>
</thing>
<thing id="spcAndor" name="Andorian" description="desc here" compset="Species" uniqueness="unique">
<usesource source="ENT"/>
<usesource source="TOS"/>
<usesource source="TNG"/>
<tag group="SpecCat" tag="Player"/>
<tag group="SpeciesBon" tag="attrsys02"/>
<tag group="SpeciesBon" tag="attrsys01"/>
<tag group="SpeciesBon" tag="attrsys05"/>
<bootstrap thing="trAndorian"></bootstrap>
</thing>
<thing id="spcKlingon" name="Klingon" description="desc here" compset="Species" uniqueness="unique">
<usesource source="ENT"/>
<usesource source="TOS"/>
<usesource source="TNG"/>
<tag group="SpeciesBon" tag="attrsys05"/>
<tag group="SpecCat" tag="NPC"/>
<tag group="SpeciesBon" tag="attrsys02"/>
<tag group="SpeciesBon" tag="attrsys03"/>
<bootstrap thing="trKlingon"></bootstrap>
</thing>
This all results in the PLAYER header at the top, no NPC header, and NPC species grouped with Player species (and even though PLAYER and NPC are isshowonly="yes", unless I add the SimpleItem.CenterName tag, they don't show centered like normal): https://www.dropbox.com/s/ysg0li8r49...10-22.png?dl=0
Code:
PLAYER
ANDORIAN
HUMAN
KLINGON
TRILL
VULCAN
Anyone else had this happen? Am I missing something?
Thanks!
TC
|