I'm working on a game where spells have casting times. While the CTB Has a built in delay function, it's based around the user's AGI. A mages AGI would have nothing to do with their casting time.
I'd like to be able to make casting time formulas. There are formulas for delaying the opponent in lunatic mode, but there's really nothing for altering Pre-Cast delay.
Ideally, I'd like to be able to delay by turns instead of by speed, and augment that by the user's MAT.
<Charge Turns: Formula>
And just to show what I want to do with said formula
<Charge Turns: Math.Max(0, x - Math.floor(user.mat/10)) >
Where x is the number of turns to send the user back before the skill is cast.
This creates a system where spells have innate casting time in CTB Turns, which could be augmented by being a skilled mage with a high MAT stat.
<Charge Turns: Math.Max(0, 3 - Math.floor(7/10)) > = 3 Turn Delay.
<Charge Turns: Math.Max(0, 3 - Math.floor(27/10)) > = 1 Turn Delay
<Charge Turns: Math.Max(0, 3 - Math.floor(107/10)) > = 0 Turn Delay
And changing the mat divisor or the base turn delay would give the user full control over how much delay a spell should have and how well it would scale to the user's MAT.
I'd like to be able to make casting time formulas. There are formulas for delaying the opponent in lunatic mode, but there's really nothing for altering Pre-Cast delay.
Ideally, I'd like to be able to delay by turns instead of by speed, and augment that by the user's MAT.
<Charge Turns: Formula>
And just to show what I want to do with said formula
<Charge Turns: Math.Max(0, x - Math.floor(user.mat/10)) >
Where x is the number of turns to send the user back before the skill is cast.
This creates a system where spells have innate casting time in CTB Turns, which could be augmented by being a skilled mage with a high MAT stat.
<Charge Turns: Math.Max(0, 3 - Math.floor(7/10)) > = 3 Turn Delay.
<Charge Turns: Math.Max(0, 3 - Math.floor(27/10)) > = 1 Turn Delay
<Charge Turns: Math.Max(0, 3 - Math.floor(107/10)) > = 0 Turn Delay
And changing the mat divisor or the base turn delay would give the user full control over how much delay a spell should have and how well it would scale to the user's MAT.