RPG Maker MV

RPG Maker MV

Regrettucini Apr 28, 2021 @ 3:00pm
Disable luck stat?
I want to use luck as a second magic attack stat and I don't want it to affect crit rate, state chance, etc. how do I disable the luck stat from doing all the luck stat things?
< >
Showing 1-9 of 9 comments
JohnDoeNews Apr 28, 2021 @ 3:09pm 
And then have all skills be landing 100% of the time?

Give all skills a traid: "Hitrate * 9999%"
Give all the actors and all enemies "Evasionrate * 0%"

This should cancle out the effect luck has on ALL skills.


Edit: I did not know LUK only affect states casted by physical or magical skills. If that is indeed the case, then what I said is complete nonsense. Oops.
Last edited by JohnDoeNews; Apr 30, 2021 @ 8:25am
JohnDoeNews Apr 28, 2021 @ 3:10pm 
I didn't test it though... But I think this works.
Caethyril Apr 29, 2021 @ 9:56am 
Without plugins, luck only affects the chance of applying a state via Physical Hit or Magical Hit. (Edit: I double-checked the core scripts and it looks like it also affects the chance of applying a debuff, regardless of hit type.)

Didn't you ask this just a couple of days ago? Link to discussion:
My response:
Originally posted by Caethyril:
A plugin again:
Game_BattlerBase.prototype.lukEffect = function(target) { return 1; };
Normally this method returns a value that depends on the luck of the user and target. This simply changes it to always return 100%, i.e. no effect~

Plaintext-to-plugin instructions:
Originally posted by Caethyril:
  1. Copy + paste the code into a text editor (e.g. Notepad).
  2. File > Save As:
    • File Type: All Files
    • Filename: whatever.js
    (This works because .js files are plaintext.)
  3. Import that file as a plugin.
  4. Save your project to apply Plugin Manager changes.
  5. Test!
Last edited by Caethyril; Apr 30, 2021 @ 9:33am
Regrettucini Apr 29, 2021 @ 4:35pm 
I don't know how to make plugins.
Regrettucini Apr 29, 2021 @ 6:31pm 
Originally posted by Caethyril:
Without plugins, luck only affects the chance of applying a state via Physical Hit or Magical Hit.
Let's say hypothetically, I didn't have a brain and I didn't know how to make .js files. how do I disable luck from doing this?
Elriadon Apr 29, 2021 @ 10:35pm 
Originally posted by Cringejuice:
Originally posted by Caethyril:
Without plugins, luck only affects the chance of applying a state via Physical Hit or Magical Hit.
Let's say hypothetically, I didn't have a brain and I didn't know how to make .js files. how do I disable luck from doing this?

Literally all you have to do to make a .js file is to save one with a name that includes .js at the end. Like luckplugin.js or textfile.js and also to choose the All Files instead of Text Files option when saving it.

You should really do it that way. It's by far the simplest and most effective way.

The only other options you have here are either to modify the code directly (which I wouldn't advise). Or just paste the code change to a Scrip event command (which doesn't persist between save games and as such, you would need to find a way to constantly refresh it, like you could make a parallel Common Event that constantly runs in the background with said script call, but that would be a pretty bad way of doing this, especially performace-wise).
Last edited by Elriadon; Apr 29, 2021 @ 10:41pm
JohnDoeNews Apr 30, 2021 @ 8:20am 
Originally posted by Cringejuice:
Originally posted by Caethyril:
Without plugins, luck only affects the chance of applying a state via Physical Hit or Magical Hit.
Let's say hypothetically, I didn't have a brain and I didn't know how to make .js files. how do I disable luck from doing this?

Step 1: Open notepad (assuming you don't have coding software, otherwise you don't ask for this.)
Step 2: Copy the line of code into the blanco notepad file.
Step 3: Save it as NAME.js (Replace NAME with anything you want.)

Now install it like you would install any other plugin.
Dusk_Army Apr 30, 2021 @ 12:41pm 
Originally posted by JohnDoeNews:
Originally posted by Cringejuice:
Let's say hypothetically, I didn't have a brain and I didn't know how to make .js files. how do I disable luck from doing this?

Step 1: Open notepad (assuming you don't have coding software, otherwise you don't ask for this.)
Step 2: Copy the line of code into the blanco notepad file.
Step 3: Save it as NAME.js (Replace NAME with anything you want.)

Now install it like you would install any other plugin.
To expand slightly, since I'm not sure Cringejuice knows how to install a plugin:

Step 4: Place the file in the plugins folder of the game you want to install it in
Step 5: Open the project, click the plugin manager icon (looks like two puzzle pieces)
Step 6: Double-click an empty line, and select the plugin from the list that pops up
Last edited by Dusk_Army; Apr 30, 2021 @ 3:04pm
Regrettucini May 1, 2021 @ 10:13am 
Originally posted by JohnDoeNews:
Originally posted by Cringejuice:
Let's say hypothetically, I didn't have a brain and I didn't know how to make .js files. how do I disable luck from doing this?

Step 1: Open notepad (assuming you don't have coding software, otherwise you don't ask for this.)
Step 2: Copy the line of code into the blanco notepad file.
Step 3: Save it as NAME.js (Replace NAME with anything you want.)

Now install it like you would install any other plugin.
Thanks.
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Apr 28, 2021 @ 3:00pm
Posts: 9