Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old September 16th, 2009, 04:18 PM
Quote:
Originally Posted by Mathias View Post
#hasfeat[XXX] is a macro substitution for:

hero.tagis[HasFeat.XXX]

so, hero.tagcount[HasFeat.XXX] will get you the count of a feat.
Is there an equivalent thing for checking the number of times a Custom ability has been taken?
Lawful_g is offline   #11 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old September 16th, 2009, 10:22 PM
hero.childcount[XXX] - as I mentioned in that email, this has the same problems as picklives[] (which seems to have been replaced by childlives[], BTW) - it will count replaced copies. That's not as bad a problem for custom class specials as class abilities, though, since I can't currently think of a situation where one could be added to the hero but not be valid as a prereq for something else.
Mathias is offline   #12 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,146

Old February 21st, 2013, 10:42 AM
Quote:
Originally Posted by Lawful_g View Post
Alright, in another thread I mentioned that I was making a feat called Education that gives you a +2 to 2 chosen Knowledge skills. Since there is no way to have 2 selections on one feat, I have chosen to make several feats that will give you a +2 on one skill and let you choose the second skill to get the bonus.

In that thread I got distracted and forgot about the problem while getting others answered by the ever helpful mghel. I don't want to revive that thread, so I'll just bring it back up here. The extent that I have for scripts is:

~ Add 2 to our chosen skill
field[fChosen].chosen.field[Bonus].value += 2
.
.
.
When I select a skill, I get an error "Attempt to assign field value with no pick context".
Aaron, or anyone else...was there ever a solution to this problem? I'm getting the same error message with this code:

Code:
field[usrChosen1].chosen.field[cArcFail].value = 0
Note: I am attempting to reduce Arcane Failure chance to 0 for a specific class as chosen by the class special.
Sendric is offline   #13 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old February 21st, 2013, 10:46 AM
What do you have set for "Restrict To..."?
Mathias is offline   #14 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,146

Old February 21st, 2013, 11:07 AM
Quote:
Originally Posted by Mathias View Post
What do you have set for "Restrict To..."?
Ah..that's what it was. I had it set to All Things when it needed to be All Picks on Hero. Thanks.
Sendric is offline   #15 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 02:26 AM.


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