Okay, I've spent the last few days designing what I think is the perfect damage formula, that does everything I want it to do.
Unfortunately, I think it might be too complex for rpgmaker's editor.
The tricky bit is this; I want to roll an imaginary dice for the attacker's weapon power a number of times equal to the relevant attack stat, so if a character with strength 4 is using an axe with weapon power 10, the damage generation would look like 4d10. I know how to do random numbers in the damage box. What I don't know is how to tell the damage box to add a variable number of random numbers together. I tried to make a For...Next loop in the damage box and that didn't work.
I plan to have the target's defense process the same way, rolling [DefenseAttribute]d[ProtectionRating], and there's a couple other multipliers in there for elements and troop types, and some fudge factor multipliers to put the numbers in the right range. The complete formula is a Rube Goldberg nightmare...but it does exactly what I want it to do.
I could just admit defeat and do 4(Math.randomInt(10) +1)...but that's not the same thing, and it's not as neat and elegant with the statistical spread. Or I could just cut out the middle man and make myself a plug-in that'll do whatever crazy formulas I want, but that's a lot of work.
Unfortunately, I think it might be too complex for rpgmaker's editor.
The tricky bit is this; I want to roll an imaginary dice for the attacker's weapon power a number of times equal to the relevant attack stat, so if a character with strength 4 is using an axe with weapon power 10, the damage generation would look like 4d10. I know how to do random numbers in the damage box. What I don't know is how to tell the damage box to add a variable number of random numbers together. I tried to make a For...Next loop in the damage box and that didn't work.
I plan to have the target's defense process the same way, rolling [DefenseAttribute]d[ProtectionRating], and there's a couple other multipliers in there for elements and troop types, and some fudge factor multipliers to put the numbers in the right range. The complete formula is a Rube Goldberg nightmare...but it does exactly what I want it to do.
I could just admit defeat and do 4(Math.randomInt(10) +1)...but that's not the same thing, and it's not as neat and elegant with the statistical spread. Or I could just cut out the middle man and make myself a plug-in that'll do whatever crazy formulas I want, but that's a lot of work.