Hello, my game will feature large numbers of characters, many of whom share classes. Each character has randomly generated stats, and I would like to also assign each character a stat curve relative to their base stats.
What is the best way to go about doing something like this? Are there any plugins that could help, or can it be done with variables?
In a regular project one main purpose of the class is to define the stat curves.
There are several ways to change that, but before we can point you in any direction we need more details on what you want for your engine.
What is the purpose of a class for you? what is it supposed to define for those actors that still share a class?
How do you want the stat curves to be? How do you want the numbers to be defined?
Most important, what stats are you describing as relative to the random base stats, and what are the base stats you want as random numbers?
Method 1: Clone your classes. Give each version a different curve.
Method 2: Use an event to grow the characters' stats at the beginning of the game. This gives them a unique base, but leaves the overall curve intact.
How much randomization? You don't actually need infinite possibilities, unless you have infinite variance in the final values. This method could easily produce three Fighters with Attack 30 -> 99, 32 -> 98 and 40 -> 102, plus a random growth of 1 to 5, generating Attack of anywhere from 31-> 107 to 40 -> 99. That is admittedly only fifteen possibilities with such a narrow range. How much variance do you want?
The stats are: Attack, Defense, M. Attack, M. Defense, Agility, Luck. I didn't realize that would be a source of confusion.
Nothing needs to be relative to these except the growth curve, which means how much these numbers increase on level up.
So if my attack stat is 10 at level 1, I would like it to be 100 at level 100. If the attack stat is 15, I would like it to be 150. If it's 25, I would like it to be 250, and so on.
Hope that helps.
Yes, because it means that things are a lot easier to handle if you don't go over the stats but over the traits.
You can give an actor a trait of for example ATK * 150% and it will have a faktor of 1.5 to the atk at all levels.
So you make all classes have always a base curve of 10 or so, and then either give the actor the trait to multiply the parameters or use a plugin for dynamic traits and have a random faktor added on game start with an event.
Yeah, to do that is extremely simple, you can just "roll" their stats at the beginning of the game and apply a random stat rate.
Can anyone recommend a dynamic trait plugin that can do what's recommended here?
Edit: Galv's didn't work for this, but Shaz's did.