Altering the luck stat help

longlivejuggs

Veteran
Veteran
Joined
Mar 14, 2015
Messages
43
Reaction score
8
Primarily Uses
Id like to change the luck stat to be used in damage formulas under the name of a different stat. The only problem is I remember reading somewhere that luck effects different stats, like heal amounts and buff/debuff resists.
So im wondering how I would remove all the hidden bonuses associated with the luck stat so that I can use the luck stat for other purposes?
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,226
Reaction score
603
First Language
English
Primarily Uses
RMMV
With default MV luck only slightly affects the application of states I think, and it's such a small amount that no one would really even notice. Other than that, I don't believe there are any other uses for the luck stat in MV, hidden or otherwise.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA
A property called "lukEffectRate" is used by MV automatically that uses the caster's and target's LUK to slightly modify the chance of applying states to foes:

Game_Action.prototype.lukEffectRate = function(target) {
return Math.max(1.0 + (this.subject().luk - target.luk) * 0.001, 0.0);
};

The good news is that if you modify this method to simply return 1.0, you effectively remove the effects of LUK from everything in the game, except wherever you choose to use it in your damage formulas, of course! Either modify this method in rpg_objects.js, or simply paste it into your own mini-plugin and turn that mini-plugin ON in your plugin editor:

Game_Action.prototype.lukEffectRate = function(target) {
return 1.0;
};
 

longlivejuggs

Veteran
Veteran
Joined
Mar 14, 2015
Messages
43
Reaction score
8
Primarily Uses
Perfect! Thanks for the quick reply guys. My issue is resolved
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top