• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Mutiple Feats

chiefweasel

Well-known member
Quick questions, I am putting together a Prestige Class and as a pre-req they must have at least 1 of 5 different feats. How can you code to say you have 1 of either feat? so need an and/or code. I ddin't see one in the examples. Thanks.
 
create a variable, set the variable equal to:

#hasfeat[first one] + #hasfeat[second one] + etc.

then, put in an if statement that checks if the variable's total is >= 1, which will be true if the character has any of the feats.
 
Hi there, I put together some code:

var x as number

x = (#hasfeat[fGoodDev] + #hasfeat[fHealDev] + #hasfeat[fLawDev] + #hasfeat[fStrDev] + #hasfeat[fSunDev] + #hasfeat[fWarDev])

if (x >= 1) then
@valid = 1
endif

to check if any of the feats are chosen. it seems to work, but now I receive an error on the class. I have set the class to be a limit of 3 levels. I created a character and gave him 3 levels of the new class, but I receive an error saying that I can only give 3 levels. I'm not sure if a phantom 4th level is being detected someplace. Is the code above valid for determinign if the character has any of the specified feats? Thanks.
 
Each of those #hasfeat[] expressions will equal 1 if the character has the feat, and 0 if they do not. Therefore, x is the count of how many of those feats your character has. Since your class only cares about whether they have at least one, all you need to test for is x >= 1.

For your other question, where do you see the error? If you add 3 levels of your prestige class, does the error pop up in the validation list for the character, or do you mean that while you're looking at the class in the class selection list, once you add your third level of the class, the limit pops up as an error?
 
The eror I receive is at the bottom of the character page. and the 3 class levels are in red as well. they still seem to work fine so the error isnt a bad one. i'll play with it some more and see if i can get it to go away. since it doesnt impact play at all, i'm not to worried. thanks.
 
Chiefweasel, I believe I've sent you my email address in a PM before. Could you email me your prestige class, and I'll take a look at what's going wrong? Send me a PM if you need the address again.
 
What you sent along last time was for the Kensai prestige class, this problem is for the Shadowstriker prestige class. So different code involved. Since it still works and i wont be playing again before Gen Con, maybe i'll stop by a demo in the evening and bring the file with me. I'll play with it before then and see if I can get it to resolve. Thanks though.
 
What you sent along last time was for the Kensai prestige class, this problem is for the Shadowstriker prestige class. So different code involved. Since it still works and i wont be playing again before Gen Con, maybe i'll stop by a demo in the evening and bring the file with me. I'll play with it before then and see if I can get it to resolve. Thanks though.

Sorry, I meant that if you still have my email address, please send me the file you're currently having trouble with, and I'll take a look at it. If not, tell me and I'll send you a PM with my address (sorry for not posting it, I'd rather minimize spam).
 
Hey M, I have your email address. i was just going to mess with this one on my own for a bit. If i dont have it resolved by Gen Con i'll bring it along on a thumb drive, but thanks for the help.

Lawful_g, yes i am the CEO of Cheese Weasel Logistics, and we run the ConGames at Gen Con. Will be there again this year. Stop by and say hi, i'll be the guy with the large yellow ! over his head.

Lone Wolf Development is also participating (WOOT!!). I am hoping to pick up a copy of the Pathfinder RPG then heading over to the Lone Wolf booth and getting the system pack for it. I am also very interested in the D20pro software and how it interacts with the Hero Lab product.
 
I've gone to GenCon the last 3 years, and that is where I ran across HeroLab, back in its tender years. Can't make it this year because of summer classes and a lack of people to go with anyway. The tradition I've established is to bring back some cheese weasel merchandise for my sister whenever I return home. We've got magnets with cheese weasel Ninjas, Pirates, and Cyborgs thus far, and I think I still have about 50 of the wooden buttons with your logo on them.

Anyway. Maybe I'll see you in 2010, if I am not overseas by then.
 
Back
Top