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,282
Reaction score
9,703
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,541
Reaction score
2,902
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,282
Reaction score
9,703
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

I think that this forum's member posts should include their Phone Number and Social Insurance Number.
My PC just broke with everything I've been working on, on it. I can't afford to replace it. Life is just wonderful....
More musics! Praise be to the winter towns!
i've had the ace attorney investigation theme stuck in my head ever since i woke up TT__TT
more opening cinematic work but i took out the text so you have no context AHAHAHAHAHA >:]]
image.png

Forum statistics

Threads
123,177
Messages
1,154,636
Members
161,544
Latest member
daydreamslug
Top