Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Base Classes and Prestige Classes mix help (http://forums.wolflair.com/showthread.php?t=59759)

Frodie December 13th, 2017 02:56 PM

Base Classes and Prestige Classes mix help
 
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.

Mathias December 13th, 2017 03:10 PM

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.

Frodie December 13th, 2017 03:16 PM

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!


All times are GMT -8. The time now is 06:06 AM.

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