public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

MV [Solved] Yanfly Death Tip/Trick Help

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: MV [Solved] Yanfly Death Tip/Trick Help
  • Original author: Deleted member 113412
  • Original date: March 18, 2021
  • Source thread: https://forums.rpgmakerweb.com/threads/solved-yanfly-death-tip-trick-help.134524/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support

Summary

Death (MV Plugin Tips & Tricks) - Yanfly.moe Wiki www.yanfly.moe I've added everything. Spoiler: Screenshots

Archived First Post


I've added everything.

15-27-09.png



<Custom EXP Mastery Formula: level * 5>

<No Damage Mastery Effect>



// Display cost

<Custom Cost Display>

\fs[20]\c[23]All MP\c[0]\fr

</Custom Cost Display>



// Requires user to have at least 1 MP

<Custom Requirement>

value = user.mp > 0;

</Custom Requirement>



<Pre-Damage Eval>

// Check if the target isn't a boss

if (!target.isStateCategoryAffected('boss')) {

// Set the damage to 0

value = 0;

// Remove the HP popups

target.result().hpAffected = false;

}

</Pre-Damage Eval>



<Post-Damage Eval>

// Check if the target isn't a boss

if (!target.isStateCategoryAffected('boss')) {

// Remove the HP popups

target.result().hpAffected = false;

// Get the target's death state ID

var deathStateId = target.deathStateId();

// Calculate the chance based on the user's current MP%

var chance = user.mpRate();

// Alter that based on the target's death resistance

chance *= target.stateRate(deathStateId);

// Check RNG if it passed

if (Math.random() < chance) {

// Check if the target is temporarily immortal from action sequences

if (target.isImmortal()) {

// If it is, remove the temporary immortal status

target.removeImmortal();

}

// Add the death state

target.addState(deathStateId);

} else {

// Display a miss if RNG failed

target.result().missed = true;

}

}

</Post-Damage Eval>



<After Eval>

// Set user's MP to 0

user.setMp(0);

</After Eval>


15-28-23.png

15-29-15.png

Regardless, it still does visual damage and dosnt one shot this or any enemy without the Boss category.

Could this be colliding with another plugin?

Protected downloadProtected downloadProtected downloadProtected downloadProtected downloadProtected download

Thanks guys.

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

www.yanfly.moe
www.yanfly.moe
15-31-34.png
15-31-34.png
15-31-43.png
15-31-43.png
15-31-51.png
15-31-51.png
15-32-00.png
15-32-00.png
15-32-07.png
15-32-07.png
15-32-13.png
15-32-13.png
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rpg-maker-archive#js-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar