Minimum Damage YEP DamageCore

Zanoth

Noob
Member
Joined
Jan 25, 2020
Messages
7
Reaction score
3
First Language
English
Primarily Uses
RMMV
I feel like an idiot because I've been stuck for an entire day trying to make the minimum damage for any/all attacks be 1 instead of 0. I have Yanfly's damage Core plugin, i see that the last line has SOMETHING to do with minimum damage, but for the life of me I can't figure it out.

I've done some searching today and only came up with a solution of "use a plugin or edit rpg_objects.js". I HAVE a plugin that could change it, i think. And when i attempted to edit the .js file, nothing happened (likely due to the plugin Damage Core overriding it).

I'm pretty new to programming in general and have only put like 70hrs into tinkering with RPG Maker, so i'd appreciate it if any solutions provided are clear on where certain things should go.
 
Last edited:

Jeremiah Eastman

Gladiator
Veteran
Joined
Apr 24, 2017
Messages
481
Reaction score
263
First Language
English
Primarily Uses
RMMV
Hey there I use Link to make this happen. It should work for what you want. Just make sure it's under all the yanfly plugins.
 

Zanoth

Noob
Member
Joined
Jan 25, 2020
Messages
7
Reaction score
3
First Language
English
Primarily Uses
RMMV
Thank you very much, this worked! :D

However, if anyone can tell me how to use YEP_DamageCore to set min damage to 1, that'd also be appreciated. I also wanted to take this opportunity to learn more, and the less non-yanfly plugins i use, the less likely i'll come into plugin conflict problems.
 

Jeremiah Eastman

Gladiator
Veteran
Joined
Apr 24, 2017
Messages
481
Reaction score
263
First Language
English
Primarily Uses
RMMV
Happy it worked I recently searched for the same thing and came up with no way of using yanflys plugins directly without a rewrite or addon. That plugin I linked to you is pretty small maybe you could take a look at its code and see how to make adjustments to yanflys.
 

TSR

The Northern Frog
Veteran
Joined
Nov 14, 2019
Messages
134
Reaction score
74
First Language
French
Primarily Uses
RMMV
Hello, just add this in the last line of YEP Damage Core:
Code:
if (value <= 1) {value =1};
 

Zanoth

Noob
Member
Joined
Jan 25, 2020
Messages
7
Reaction score
3
First Language
English
Primarily Uses
RMMV
Thank you TSR, that did the trick!
Edit: Actually, it seems to make potions deal damage.
 
Last edited:

TSR

The Northern Frog
Veteran
Joined
Nov 14, 2019
Messages
134
Reaction score
74
First Language
French
Primarily Uses
RMMV
Edit: Actually, it seems to make potions deal damage.
Yeah... didn't think of that. This should work:
Code:
if (value === 0) {value = 1};
 

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

Latest Threads

Latest Posts

Latest Profile Posts

You know what really grinds my gears? Websites that block your access completely if you have an AdBlocker on...

I would rather skip the site than endure some popups that may give me a gnarly virus!
Guys this thread is so good and you should be reading it.
Once again have another case of an Android user losing all of their save files for all of my games after a single game update. Apparently even Yanfly's Save Core can't prevent it. Very frustrating.
Question! If anyone here has any of the Time Fantasy tiles, or the Omega Modern one, do they include character templates/bases/whatever the term is?
Had to edit the water tiles of Jason Perry's (final boss blues) beach tile set. I'm an animator now. :guffaw:

Forum statistics

Threads
94,488
Messages
921,347
Members
124,332
Latest member
oracle509
Top