Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
AWizardInDallas
Senior Member
 
Join Date: Aug 2008
Location: Plano, TX
Posts: 147
Send a message via AIM to AWizardInDallas Send a message via MSN to AWizardInDallas Send a message via Yahoo to AWizardInDallas Send a message via Skype™ to AWizardInDallas

Old February 26th, 2009, 07:02 PM
Is there a way to count the number of tricks in a category?
AWizardInDallas is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old February 27th, 2009, 07:31 AM
Try adding lots of skill tricks to a test character, the go to the develop menu, floating info windows, show hero tags - does anything useful show up there?

If not, right click on a few skill tricks once they're added to the character, and look at their tags - what tag defines the categories there?

On the hero, it's easy to find out how many tags exist:

hero.tagcount[x.x]

If they only exist on the skill trick itself, you'll need something more complex:

var total as number
foreach pick in hero where "component.(whatever skill tricks' component is) & (your category's tag)"
total +=1
nexteach
Mathias is online now   #2 Reply With Quote
AWizardInDallas
Senior Member
 
Join Date: Aug 2008
Location: Plano, TX
Posts: 147
Send a message via AIM to AWizardInDallas Send a message via MSN to AWizardInDallas Send a message via Yahoo to AWizardInDallas Send a message via Skype™ to AWizardInDallas

Old February 27th, 2009, 12:57 PM
Thank you! I'll give that a shot.
AWizardInDallas is offline   #3 Reply With Quote
AWizardInDallas
Senior Member
 
Join Date: Aug 2008
Location: Plano, TX
Posts: 147
Send a message via AIM to AWizardInDallas Send a message via MSN to AWizardInDallas Send a message via Yahoo to AWizardInDallas Send a message via Skype™ to AWizardInDallas

Old March 9th, 2009, 07:27 AM
The only useful things seem to be in hero fields:

tSklTricks
tSklTrkUsed
tSklLeft

I'm working on the Cool Head feat, the Complete Scoundrel, pg 75. I need to check for two mental skill tricks (i.e. the category) and I need to be able to add two free skill tricks and raise the character's skill trick limit by 1 if they have the mental skill tricks.
AWizardInDallas is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 9th, 2009, 07:32 AM
In that case, look at the tags on the skill tricks themselves - is there a tag specifically for mental tricks? If so, you can use a foreach loop to find them and increment a counter.
Mathias is online now   #5 Reply With Quote
AWizardInDallas
Senior Member
 
Join Date: Aug 2008
Location: Plano, TX
Posts: 147
Send a message via AIM to AWizardInDallas Send a message via MSN to AWizardInDallas Send a message via Yahoo to AWizardInDallas Send a message via Skype™ to AWizardInDallas

Old March 10th, 2009, 08:28 PM
There's no tag.

<pick thing="oCornerPer" saveindex="28400000" index="284" batchindex="183" oldbatch="183" root="yes" refcount="0" fieldcount="7" source="kTricks" default="yes">
<tag group="portal" tag="kTricks"/>
<tag group="thing" tag="user_added"/>
<field id="fChosen"></field>
<field id="fFreeform"></field>
<field id="hUsed" value="0." user="0."></field>
<field id="hUsed2" value="0." user="0."></field>
<field id="hIsOn1" value="0." user="0."></field>
<field id="hIsOn2" value="0." user="0."></field>
<field id="hCustText"></field>
</pick>
AWizardInDallas is offline   #6 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 11th, 2009, 07:10 AM
In that case, go back to the skill tricks themselves - there's an option in the editor to add user tags, so add User.skMental to all the mental skill tricks, and then you'll be able to test for it with the foreach loop I descibed earlier.
Mathias is online now   #7 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:49 PM.


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