|
Member
Join Date: Dec 2014
Location: Cincinnati, OH
Posts: 57
|
I'm trying to set up an adjustment to a dataset and get the following error:
Quote:
Code:
<thing id="adjGood" name="Trait - Good" compset="Adjustment" description="Select this adjustment to add a Good Trait."> <fieldval field="adjUsePick" value="0"/> <fieldval field="adjCandid" value="TraitCat.Good & !TraitCat.Gadget"/> <tag group="AdjustShow" tag="Menu"/> <tag group="Helper" tag="UserAdjust"/> <tag group="InPlay" tag="PermOK"/> <tag group="InPlay" tag="TempOK"/> <eval phase="Setup" priority="8000"> <before name="Calc trtFinal"/><![CDATA[ if (tagis[Helper.Activated] <> 0) then endif ]]></eval> </thing> http://hlkitwiki.wolflair.com/index....Require_Hiding What am I not doing right? Last edited by Phrll; August 18th, 2020 at 06:52 AM. |
|
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Inside a <![CDATA[[ ]]> block, you can use & by itself. In a text section you need to use "TraitCat.Good & !TraitCat.Gadget".
This is why I prefer to use the editor to edit this sort of thing - there, you can type in what you want it to say, and HL will handle the details of how XML works for you. |
#2 |
Member
Join Date: Dec 2014
Location: Cincinnati, OH
Posts: 57
|
Thanks Mathias! I've done enough XML at work that I should have caught that!
|
#3 |
Thread Tools | |
Display Modes | |
|
|