• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

candidate tag expression

tkarn

Well-known member
I have a list of special abilities. Each ability is associated with a charactertype.

I have a dynamic table that shows the special abilities. That works fine.

Now I only want to show these special abilities with is associated with a special type.

I use the candidate expression, for example:

<![CDATA[
CharTyp.ctySpeak
]]>

When I use the ctySpeak type, the special abilities are shown in the pick.
When I use the ctyWarr type, the special abilities are not shown in the pick. I think it works fine.

When I use the candidate expression:

<![CDATA[
CharTyp.ctySpeak | CharTyp.ctyWarr
]]>

the abilities of both types are shown. That works fine.

Now I only want to see the abilities either of ctySpeak or ctyWarr.
How can I built the expression. I tried if then. I does not work.
I tried findchild, but it didn't work too. What do I do wrong?
 
During character creation. I choose a character type ctySpeak or ctyWarr etc.

Then I choose special abilities for this character type. I added a CharTyp prerequisite for the special abilities. Only the abilities for the correct character type are highlighted. Everything works good.
Now I want to make it a little bit nicer. The list is very long and i have to scroll down (or filter "Only valid items") to find the abilities.
Now I want to display only those items that match the character type. Its only a kind of cosmetic.
 
Ah. So, if I understand correctly, you want the Candidate Expression set based off of the character type so that only the appropriate ones are shown. Hmm... this is outside of my realm of experience, but I can try when I get home. What behavior were you getting when you tried the "if then"? Do you still have that code?
 
{nods} So you were trying to put the "if then" statement inside of the candidate expression. Instead, you're going to want to build that candidate expression dynamically inside a pick or field and then refer to it via a candidatepick or candidatefield on the table. The 4E files have some examples in how they build magical items.
 
Excellent! ^_^ I was not 100% certain that I knew what I was talking about, so it is gratifying that it worked.
 
Back
Top