Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
JakeMilo
Member
 
Join Date: Mar 2015
Posts: 91

Old March 31st, 2015, 08:38 AM
Hello,

I have been playing around with the authoring kit for a while now but have hit a small issue with the module I'm knocking about.

I have used a <candidate></candidate> expression to limit the choices a person has with regards to abilities a career can select. The actual expression is very long as there is a large number of careers.

<candidate>(Ability.Almist &amp; hero#Class.clAlist) | (Ability.Alleg &amp; hero#Class.clAlleg) | (Ability.ArcMech &amp; hero#Class.clArcMech) | ......etc </candidate>

However, the list is now so long that it literally crashes Hero Labs if I try to add any more to it.

Is there a way that I can pull the class tag off the Hero and use it in the candidate expression? This would reduce this massive expression down vastly to only a few lines.
JakeMilo is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old April 1st, 2015, 08:33 PM
Create another tag to add to those abilities and then you can check for the tag on just those abilities.

Last edited by AndrewD2; April 2nd, 2015 at 06:58 AM. Reason: typo
AndrewD2 is offline   #2 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old April 2nd, 2015, 07:52 AM
It sounds like you're trying to re-create the <needtag> element:

http://hlkitwiki.wolflair.com/index....ent_%28Data%29
Mathias is offline   #3 Reply With Quote
JakeMilo
Member
 
Join Date: Mar 2015
Posts: 91

Old April 2nd, 2015, 03:34 PM
Hello,

Thank you for your replies. It was the <needtag> that I was emulating and now I know it saves about 3000 characters of code. Joys of self teaching.

I found that this reference sorted out the rather bland wiki description.

http://forums.wolflair.com/showthrea...=21806&page=35

If anyone else needs it.
JakeMilo is offline   #4 Reply With Quote
Reply


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 12:54 AM.


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