• 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

Base Classes and Prestige Classes mix help

Frodie

Well-known member
Ok, I am not sure how to tackle this one. So, any ideas on a direction that would be very cool.

I have a feat (that can be taken multiple times) that grants an extra class custom ability (a modern Talent). The script works fine. The issue is it is for multiple classes with a mix of base classes and prestige classes. (This is for the MSRD classes of the modern files).

I have each class scripted and with a custom tag, all works great if there is only one class. The issue is when you start mixing classes.

The feat gives a class, one extra class custom ability, each time you take it. But if you have two classes, the feat gives a bonus to each class.

So any ideas on a direction to handle this.

I thought about a feat for each class, but I want to keep it down to a min.
 
Last edited:
I'm not sure what error you're encountering - is the feat supposed to grant a bonus to all of them, and it's currently only altering a random one? In that case, sounds like you need a foreach. Is it altering all of them, and is supposed to select only one (chosen in a drop-down on that feat)? If so, then you'll need code that counts the number of classes on the character, builds a menu if there's more than one, and then either sets a focus to the selected class, or if there's only one class, uses findchild to set a focus to that class. Once you have the focus set up, then you can make whatever adjustments you need to do.
 
The drop box, thank you! I should have thought of that. IDK sometimes it's right there and you just can't see it. Thank you again!
 
Back
Top