OK... I think I understand this a little better. I made my Fireteam thing a UserSelect to get the two menus (I'll figure out the Role later) and added some FTSkill things to pull the list from.
Code:
<thing
id="Fireteam"
name="Fireteam member"
compset="FTMember"
isunique="no"
description="This is a fireteam entry.">
<fieldval field="usrCandid1" value=" "/>
<fieldval field="usrCandid2" value=" "/>
<eval index="1" phase="PreTraits" priority="4900">
<before name="Calc trtFinal"/><![CDATA[
debug field[usrChosen1].chosen.field[name].text & ", " & field[usrChosen2].chosen.field[name].text
]]>
</eval>
<child entity="ftDetails"/>
</thing>
<thing
id="ftPhysical"
name="Physical"
compset="FTSkill"/>
<thing
id="ftMental"
name="Mental"
compset="FTSkill"/>
<thing
id="ftSocial"
name="Social"
compset="FTSkill"/>
<thing
id="ftCombat"
name="Combat"
compset="FTSkill"/>
<thing
id="ftDamage"
name="Damage"
compset="FTSkill"/>
That lets me select skills off of the list, but now I need to use that to modify the relevant fields. Or perhaps I need to address this differently... I want to have those settings change the relevant values for each Fireteam members (so that, for example, selecting Physical and Physical on one Fireteam member will set the ftPhysical field to 2 while setting Physical and Damage on another will result in ftPhysical being 1 and ftDamage being 1. I was trying to use "if/elseif" statements to basically set up a switch statement, but it keeps saying that the righthand side is not valid if I try something like the following in the
eval:
Code:
if (field[usrChosen1].chosen.field[name].text = "Physical") then
debug "It's physical"
endif
Can one not compare strings?