MZ YS_Death&Flee (perfect for roguelike games)

YS Death & Flee Penalty
DOWNLOAD


DEATH.png

Death&Flee Penalty is a comprehensive consequence system for RPG Maker MZ that adds weight and risk to defeat and retreat. Designed to integrate seamlessly with a "Rogue Like" project, this plugin transforms traditional Game Over into a resource management and "Loss Data Collapse" mechanic.

Key features​

  • Data Collapse: Upon being defeated, the player loses a percentage of their Gold and/or Items.
  • Flee Penalty: Escaping a fight penalize the actors' data, causing a loss of current XP without the risk of downgrading.
  • Newbie Protection: It allows you to activate an option so that the first kill of the game does not apply any penalty, making it easier to enter the world.
  • Data Logging: The plugin tracks the historical total of lost Gold and stores it in an RPG Maker variable for use in alternate events or endings.

Setup Guide​

1. Notetags for Items, Weapons and Armor​

Configure the behavior of your objects in the event of a "Data Collapse":
  • <DeathDrop>: Mark the item as likely to be lost upon death.
  • <DeathDropSafe>: The object will NEVER be lost, ignoring any other rules or percentages.
  • <DeathDropRate: N>: Overwrites the overall loss percentage for this object only (e.g. 50 for a 50% chance).
*BiTs is the Gold in my game, it's a lot of work to change it right now. I'm sorry.

Plugin Commands (Events)​

Use these commands in your common defeat events or after fleeing an encounter:

Command - Function
ApplyDeathPenalty - Runs the loss logic of Gold and Items based on the current streak.
ApplyFleePenalty - Applies XP reduction to all party members after a retreat.

Example: High Risk Settings
If you want objects to be lost more easily in a specific area and the "Data Collapse" to be more aggressive:

  1. In the Database: Label your consumables with . <DeathDrop>
  2. In the Plugin: Set to 30 and activate the 2.ItemLossPercentDeathStreakThreshold

Compatibility​

  • Visustella MZ: Fully compatible (does not override the Battle Core).

License and Credits​

  • Author: YamiSakin.
  • Free for use in commercial and non-commercial projects.
  • Please include YamiSakin in your game credits if you use this plugin.
  • For this demo some plugins from Oc_Ram were used, they are their exclusive property. OcRam-Codes.NET
  • For this demo some VisuStella plugins were used. They are his exclusive property. VisuStella - itch.io
Spoiler: DESCRIPCIÓN EN ESPAÑOL
YS Death & Flee Penalty es un sistema integral de consecuencias para RPG Maker MZ que añade peso y riesgo a la derrota y la retirada. Diseñado para integrarse perfectamente con un proyecto "Rogue Like", este plugin transforma el Game Over tradicional en una mecánica de gestión de recursos y "Data Collapse"

Características Principales​

  • Data Collapse (Muerte): Al ser derrotado, el jugador pierde un porcentaje de su Oro y/o Items.
  • Penalización por Huida (Flee): Escapar de un combate penaliza los actores, provocando una pérdida de EXP actual sin riesgo de bajar de nivel.
  • Protección de Novatos: Permite activar una opción para que la primera muerte de la partida no aplique ninguna penalización, facilitando la introducción al mundo.
  • Registro de Datos: El plugin rastrea el total histórico de Oro perdido y lo almacena en una variable de RPG Maker para su uso en eventos o finales alternativos.

Guía de Configuración​

1. Notetags para Items, Armas y Armaduras​

Configura el comportamiento de tus objetos ante un "Data Collapse":

  • <DeathDrop>: Marca el objeto como susceptible de perderse al morir.
  • <DeathDropSafe>: El objeto NUNCA se perderá, ignorando cualquier otra regla o porcentaje.
  • <DeathDropRate: N>: Sobreescribe el porcentaje de pérdida global solo para este objeto (ej. 50 para un 50% de probabilidad).
*BiTs es el Oro en mi juego, es mucho trabajo cambiarlo ahora mismo. Lo siento.

Comandos de Plugin (Eventos)​

Utiliza estos comandos en tus eventos comunes de derrota o tras huir de un encuentro:

Comando - Función
ApplyDeathPenalty -
Ejecuta la lógica de pérdida de Oro e Items según la racha actual.
ApplyFleePenalty - Aplica la reducción de EXP a todos los miembros del grupo tras una retirada.

​

Ejemplo: Configuración de Riesgo Alto​

Si deseas que en una zona específica los objetos se pierdan con mayor facilidad y el "Data Collapse" sea más agresivo:
  1. En la Base de Datos: Etiqueta tus consumibles, armas y equipos con <DeathDrop>.
  2. En el Plugin: Configura ItemLossPercent en 30 y activa el DeathStreakThreshold en 2.

Compatibilidad​

  • Visustella MZ: Totalmente compatible (no sobreescribe el Battle Core).

Licencia y Créditos​

  • Autor: YamiSakin.
  • Gratis para uso en proyectos comerciales y no comerciales.
  • Por favor, incluye a YamiSakin en los créditos de tu juego si utilizas este plugin.
  • Para esta demo se usaron algunos plugins de Oc_Ram, Son de su exclusiva propiedad. OcRam-Codes.NET
  • Para esta demo se usaron algunos plugins de VisuStella. Son de su exclusiva propiedad. VisuStella - itch.io

Original thread: https://forums.rpgmakerweb.com/threads/ys_death-flee-perfect-for-roguelike-games.183341/