じ☆ve冰风 发表于 2026-7-30 10:42:00

Damaged Battle Sprites Plugin (MV)

Introduction

This plugin allows you to add damaged phases to enemy or actor battle sprites. Think of it like those games where the girls progressively lose clothes as their HP depletes. Of course you could do a lot of other stuff with it too!
Also, if the battler recovers enough HP it will change back to its previous battle sprite. (including the default battle sprite if HP returns to 100%)


Usage

For every phase you will need to specify a corresponding sprite name in the battler's notes, like so:
                JavaScript:       
// Place this in the actor or enemy's notes:
    <Damaged Sprite: SpriteA, 60%/>
    <Damaged Sprite: SpriteB, 33.3%/>


In this example, the battler's sprite will change to "SpriteA.png" once it reaches 60% or lower HP and to "SpriteB.png" once it reaches 33.3% or lower. It's that simple!

The game will search for the sprites inside their default battler sprite folders.

As an added bonus, you can now easily change a battle sprite with script calls:
                JavaScript:       
//Change an actor or enemy sprite
   Game_Battler.setBattlerImage(spriteName)
//Return an actor's sprite back to default
   Game_Battler.setBattlerImage(this.actor().battlerName)
// For enemies
   Game_Battler.setBattlerImage(this.enemy().battlerName)



Terms of service

- Free to use in Commercial Projects, no credit required;
- To avoid outdated versions, please don't repost and instead link to this thread.


本贴来自国际rpgmaker官方论坛作者:0zuma处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/damaged-battle-sprites-plugin-mv.116443/
页: [1]
查看完整版本: Damaged Battle Sprites Plugin (MV)