xiamumomo

Veteran
Veteran
Joined
Sep 30, 2020
Messages
143
Reaction score
42
First Language
日语
Primarily Uses
RMMV
A friend of mine asked me how to customize the success rate of skills. I tried to modify data. It didn't seem to work. I was in rpg_objects.js didn't find what he needed. He wanted to make a successrate = user Hprate, I don't know if anyone knows how to solve it
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,277
Reaction score
9,700
First Language
German
Primarily Uses
RMMV
is your friend talking about skill success rate or skill hit probability?
those are NOT the same.

I suggest you check this flowchart of skill calculatios to see what he really meant.

 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
4,524
Reaction score
2,888
First Language
English
Primarily Uses
RMMV
I was in rpg_objects.js didn't find what he needed.
Code:
Game_Action.prototype.itemHit = function(target) {
    if (this.isPhysical()) {
        return this.item().successRate * 0.01 * this.subject().hit;
    } else {
        return this.item().successRate * 0.01;
    }
};

If you know any JavaScript, it should be pretty straightforward to use the eval of a notetag there.

If you're not sure how to do that, just ask.

Edit: Also, I just Googled "RPG Maker MV hit rate plugin" and Victor Engine has a Hit Formula plugin that allows you to put custom hit rates into individual skills.
 

xiamumomo

Veteran
Veteran
Joined
Sep 30, 2020
Messages
143
Reaction score
42
First Language
日语
Primarily Uses
RMMV
Code:
Game_Action.prototype.itemHit = function(target) {
    if (this.isPhysical()) {
        return this.item().successRate * 0.01 * this.subject().hit;
    } else {
        return this.item().successRate * 0.01;
    }
};

If you know any JavaScript, it should be pretty straightforward to use the eval of a notetag there.

If you're not sure how to do that, just ask.

Edit: Also, I just Googled "RPG Maker MV hit rate plugin" and Victor Engine has a Hit Formula plugin that allows you to put custom hit rates into individual skills.
I'm talking about the success rate of skill use, not the hit rate of skills. In fact, I've thought about changing the success rate of some specific skills because of players' factors before
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,277
Reaction score
9,700
First Language
German
Primarily Uses
RMMV
I'm talking about the success rate of skill use
yes, but that is exactly what you have been given.

there is a reason why I linked you to the flowchart: success rate and hit rate are handled in specific ways.

the default success rate is a fixed value of the skill, and the code you were given is exactly the place where that fixed value is used in the process.


if you want more help, you have to explain how you would use the success rate in the damage flow - where do you want to check it, and for what results?
 

Latest Threads

Latest Posts

Latest Profile Posts

The main game of my trilo/saga 50%OFF on Steam..... its now or never more
I swap between Ace and MZ so I can stay fresh but - what do you mean you can use subfolders in the plugin's folder for easier organization!?
Did some new music again, praise be. To the next song!
Watch Studio Blue play Numina by starlit in our latest RPG Maker Games Critique stream starting NOW!

Forum statistics

Threads
123,139
Messages
1,154,242
Members
161,474
Latest member
nugogo555
Top