Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 241

Old June 29th, 2018, 01:17 AM
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?
tkarn is offline   #1 Reply With Quote
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,192

Old June 30th, 2018, 06:50 PM
In what situations do you want ctySpeak versus ctyWarr?
Duggan is offline   #2 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 241

Old July 1st, 2018, 02:22 AM
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.
tkarn is offline   #3 Reply With Quote
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,192

Old July 2nd, 2018, 09:14 AM
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?
Duggan is offline   #4 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 241

Old July 2nd, 2018, 09:21 AM
Correct.
I get an undeclared item error "if".
tkarn is offline   #5 Reply With Quote
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,192

Old July 2nd, 2018, 03:49 PM
{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.
Duggan is offline   #6 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 241

Old July 2nd, 2018, 10:38 PM
Thank you. I will take a look at this.
tkarn is offline   #7 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 241

Old July 18th, 2018, 06:26 AM
@Duggan: Now I had time to test it. It works the way I want.
tkarn is offline   #8 Reply With Quote
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,192

Old July 18th, 2018, 08:28 AM
Excellent! ^_^ I was not 100% certain that I knew what I was talking about, so it is gratifying that it worked.
Duggan is offline   #9 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 04:45 AM.


Powered by vBulletin® - Copyright ©2000 - 2018, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.