Hi,
For the game I'm working on, I used a parameters system similar to a post I found here :
https://forums.rpgmakerweb.com/index.php?threads/caethyrils-mz-plugins.125657/post-1337021
The idea is to replace the calculation of the base parameters MAT, MDF and LUK to become a % chance to Hit, Evade and Crit chance.
Céthyrille has provided a plugin solution that I'm currently using:
This formula suits me perfectly, but since I installed VisuStella core (and the other VisuStella basic plugins), the interaction of Hit chance and Evade has become strange. Every time an attack misses, it's translated into a dodge (in the log, and in the animation). Even with 0% chance of evade, the animation and log remain that of evade.
By deactivating all my other plugins except Céthyrille's plugin, hits that miss seem to miss normally. But just when I activate VisuStella Core, the bug occurs.
How can I fix this?
Could VisuStella Core allow me to modify the base parameters like with Céthyrille's plugin?
I absolutely want to keep the base parameters, I'm not interested in custom parameters. I have too many other plugins that interact with base parameters.
I just need VisuStella and the Céthyrille plugin to interact normally so that a miss becomes a miss and not an evade.
Or another solution to change base parameters formula like Céthyrille's plugin.
Thanks a lot in advance for your help.
For the game I'm working on, I used a parameters system similar to a post I found here :
https://forums.rpgmakerweb.com/index.php?threads/caethyrils-mz-plugins.125657/post-1337021
The idea is to replace the calculation of the base parameters MAT, MDF and LUK to become a % chance to Hit, Evade and Crit chance.
Céthyrille has provided a plugin solution that I'm currently using:
Code:
/*:
* @target MZ
* @plugindesc Change the EVA, HIT, and CRI formulae.
* @author Caethyril
* @url https://forums.rpgmakerweb.com/posts/1337081
* @help Free to use and/or modify for any project, no credit required.
*/
;void (alias => {
Game_BattlerBase.prototype.xparam = function(xparamId) {
// Get original value
const res = alias.apply(this, arguments);
// Add extra based on param ID
switch (xparamId) {
case 0: // HIT
return res + this.mat / 100;
case 1: // EVA
return res + this.mdf / 100;
case 2: // CRI
return res + this.luk / 100;
default:
return res;
}
};
})(Game_BattlerBase.prototype.xparam);
This formula suits me perfectly, but since I installed VisuStella core (and the other VisuStella basic plugins), the interaction of Hit chance and Evade has become strange. Every time an attack misses, it's translated into a dodge (in the log, and in the animation). Even with 0% chance of evade, the animation and log remain that of evade.
By deactivating all my other plugins except Céthyrille's plugin, hits that miss seem to miss normally. But just when I activate VisuStella Core, the bug occurs.
How can I fix this?
Could VisuStella Core allow me to modify the base parameters like with Céthyrille's plugin?
I absolutely want to keep the base parameters, I'm not interested in custom parameters. I have too many other plugins that interact with base parameters.
I just need VisuStella and the Céthyrille plugin to interact normally so that a miss becomes a miss and not an evade.
Or another solution to change base parameters formula like Céthyrille's plugin.
Thanks a lot in advance for your help.