For my project's battle system, I want the player to be able to choose how much power goes into using a Skill, changing its Power and Action Speed. The idea is similar to how in Dungeons and Dragons, you can cast a spell at a higher level to boost its power. Or, maybe a better example, the mechanic in Pokémon Legends Arceus that lets you deal less damage to take another turn sooner, or deal more damage at the cost of losing your next turn. Except, this would have more than 3 options, using a broader sliding scale.
Basically, when you select a Skill, you then choose how much MP you'll spend to cast it. Spending less MP will result in lower Power but higher Action Speed, and vice versa if you spend more. Each skill would have a given minimum and maximum amount of MP to spend, and will default to the middle value if you're button-mashing.
I imagine the easiest way to implement this would be to make each variation of a skill its own separate skill. So you'd still have Spark I, Spark II, Spark III, etc., but you'd learn all of them at once, and they'd appear in the menu grouped together as "Spark." Then a custom UI would be used to select which variation is being used, under the guise of choosing how much MP you're spending.
But that would take up entirely too many skill slots, considering that this mechanic would be used for almost every skill in the game. Is there any way to give a skill varying formulas and properties based on a player choice?
Basically, when you select a Skill, you then choose how much MP you'll spend to cast it. Spending less MP will result in lower Power but higher Action Speed, and vice versa if you spend more. Each skill would have a given minimum and maximum amount of MP to spend, and will default to the middle value if you're button-mashing.
I imagine the easiest way to implement this would be to make each variation of a skill its own separate skill. So you'd still have Spark I, Spark II, Spark III, etc., but you'd learn all of them at once, and they'd appear in the menu grouped together as "Spark." Then a custom UI would be used to select which variation is being used, under the guise of choosing how much MP you're spending.
But that would take up entirely too many skill slots, considering that this mechanic would be used for almost every skill in the game. Is there any way to give a skill varying formulas and properties based on a player choice?