However, I need the selection box to pull from a list of things.
So I have some code which does not work, but only because I threw this together trying to figure out what pieces are missing and what needs to be added.
It will generate two errors:
1. Thing 'skProfessi' - Field 'UserSelect' referenced but not defined
2. Thing 'skProfessi' - Attempt to initialize array-based field that is not defined with compset
I knew I would get errors, but just plugging in code to try and see what I can get. Any suggestions?
Cheers,
Gumbytie
So I have some code which does not work, but only because I threw this together trying to figure out what pieces are missing and what needs to be added.
Code:
<thing
id="skProfessi"
name="Profession"
description="A profession that earns your character money in-between sessions."
compset="Skill">
<!-- If array-based menu selection is needed, make sure the compset includes
"UserSelect" component and define these fields as appropriate.-->
<fieldval field="trtAbbrev" value="Prof"/>
<fieldval field="shortname" value="Prof"/>
<fieldval field="UserSelect" value="(History | Law | Literature | component.Skill)"/>
<arrayval field="usrArray" index="0" value="Whore"/>
<arrayval field="usrArray" index="1" value="Shipwright"/>
<arrayval field="usrArray" index="2" value="Bouncer"/>
<arrayval field="usrArray" index="3" value="Carpenter"/>
<arrayval field="usrArray" index="4" value="Innkeeper"/>
<arrayval field="usrArray" index="5" value="Scribe"/>
<usesource source="Test" parent="UserParent" name="Test"/>
<tag group="User" tag="NeedDomain" name="NeedDomain" abbrev="NeedDomain"/>
<tag group="DashTacCon" tag="NonCombat" name="NonCombat" abbrev="NonCombat"/>
<tag group="User" tag="UserSelect"/>
<link linkage="attribute" thing="attrSma"/>
</thing>
It will generate two errors:
1. Thing 'skProfessi' - Field 'UserSelect' referenced but not defined
2. Thing 'skProfessi' - Attempt to initialize array-based field that is not defined with compset
I knew I would get errors, but just plugging in code to try and see what I can get. Any suggestions?
Cheers,
Gumbytie