Hey everyone,
I have been messing around with the "Luck" (LuK) parameter, and apparently, having a high amount of luck also nullifies the probability of positive states, such as hp regen.
Especially if you use custom evaluation codes, such as yanflys lunatic state effects, luck has not the wished effect.
FIX:
Change the games source code.
Go to: [Game Folder]/ js/ rpg_objects.js
Open the file and search for "luk". (Strg+F)
You should find this:
The important line is
Unfortunately, RPG Maker calculates the luck rate when afflicting ANY state.
To change this, insert an if bracket that checks a notetag in the state notebox.
Be aware to check if any plugins edit the source code. I use a lot of Yanfly's scripts, and I edited "BattleEngineCore".
Simply search for this line and edit it like I have done.
Hope I could help you!
I have been messing around with the "Luck" (LuK) parameter, and apparently, having a high amount of luck also nullifies the probability of positive states, such as hp regen.
Especially if you use custom evaluation codes, such as yanflys lunatic state effects, luck has not the wished effect.
FIX:
Change the games source code.
Go to: [Game Folder]/ js/ rpg_objects.js
Open the file and search for "luk". (Strg+F)
You should find this:
The important line is
Unfortunately, RPG Maker calculates the luck rate when afflicting ANY state.
To change this, insert an if bracket that checks a notetag in the state notebox.
Be aware to check if any plugins edit the source code. I use a lot of Yanfly's scripts, and I edited "BattleEngineCore".
Simply search for this line and edit it like I have done.
Hope I could help you!