Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
Hello again, I have two questions the first is, I have a custom template I'm working on for a game I'm in (basically a lower LA vampire). Reducing the LA by spreading the abilities out over a range of levels. Its mostly done except for this one problem.
I'm trying to bootstrap abilities based on HD, now I seem to be able to get to function based on class level but not HD, the following code works alright but obviously doesn't quite get done what I want. Code:
count:Classes.? >= 5 The second question is, is it possible to check for a trait as a prerequisite for a feat, if so how.. |
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,144
|
Yes. I should probably point out first that Mathias has rather nicely added some good information in the Pathfinder forum on this. Check it out here: http://forums.wolflair.com/showthread.php?t=21688
Anyway, as to the condition, I think that's what you are looking for. I assume you are concerned about racial HD being included. Races with racial HD add the tag "Classes.Race" to the hero a number of times equal to their HD, so counting the class tags should be equal to the HD. Let me know if I've missed something. As to your second question, I don't see why not. Traits add a tag to the hero, so if you wanted the trait Abrasive for your pre-req, you could do this: Code:
hero.tagis[HasTrait.trAbrasive] <> 0 |
#2 |
Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
Code:
count:Classes.? >= 5 |
#3 |
Senior Member
Join Date: Jul 2010
Posts: 3,144
|
Quote:
Character level = Racial HD + Class HD Effective Character level = Character level + LA That's why I was confused. I thought by saying you just wanted HD, you wanted character level. I'll take a closer look at this and see if I can figure how to find the ECL. |
|
#4 |
Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
Well, this has been a learning experience but, this particular exercise has been a success. I want to thank you for your help. I will post the finished result when I get all of the regions and feats that are linked with them.
But, that's a lot of finding them and cross-referencing back and forth with the well whatever. That's data entry, not coding. Quote:
|
|
#5 |
Senior Member
Join Date: Jul 2010
Posts: 3,144
|
I was just looking at this again. I chose Troll for a race. It added the Classes.Race tag 11 times (HD + LA) and the tag Hero.HitDice 6 times (HD). So, it appears this is, in fact, the correct conditional to use if you are looking for the Effective Character Level.
|
#6 |
Thread Tools | |
Display Modes | |
|
|