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,691
Reaction score
9,863
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,964
Reaction score
3,155
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,691
Reaction score
9,863
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 Profile Posts

Whoever decided that the 5th area of Xenoblade 3 had to be THAT big and be explored in the manner it does needs to be shot. My OCD cannot leave a tiny shard of the map hidden and those controls can go right on and f*** themselves. -.-

/rant off
Raggon wrote on NoPatience's profile.
:kaohi:
Anyone know of any good guides for editing the UI in RMMV?

Forum statistics

Threads
124,434
Messages
1,163,603
Members
163,244
Latest member
Robertini224
Top