public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

MVkotonoha* - Critical Animation, Actor State Color

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: kotonoha* - Critical Animation, Actor State Color
  • Original author: ovate
  • Original date: May 11, 2020
  • Source thread: https://forums.rpgmakerweb.com/threads/kotonoha-critical-animation-actor-state-color.121402/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)

Summary

CriticalAnimation - 2016/03/10 Creator name: kotonoha* Overview Animation plays when a critical hit happens

Archived First Post

CriticalAnimation - 2016/03/10

Creator name: kotonoha*

Overview
Animation plays when a critical hit happens

Feature
- You can set Animation ID through parameter

Animation ID plays when a critical hit occurs.

Note: applies to all critical attacks, including from enemies.

Preview
8YU4nWF.gif


HLd1gxV.gif


Credit and Thanks: kotonoha*

Terms of Use- Free for commercial and non-commercial use.

License - MIT License: http://opensource.org/licenses/mit-license.php

JavaScript:
// --------------------------------------------------------------------------
//
// CriticalAnimation
//
// Copyright (c) kotonoha*
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
// 2016/03/10 ver1.0 First release
//
// --------------------------------------------------------------------------
/*:
 * @plugindesc Animation plays when a critical hit happens
 * @author kotonoha* (http://ktnh5108.pw/)
 *
 * @help
 * As critical hit occur, an animation is added.
 *
 * @param AnimationID
 * @desc Animation ID plays when a critical hit occurs.
 * @default 0
 *
*/

(function() {

    var parameters = PluginManager.parameters('CriticalAnimation');
    var AnimationID = Number(parameters['AnimationID']);
    
    Sprite_Damage.prototype.setup = function(target) {
        var result = target.result();
        if (result.missed || result.evaded) {
            this.createMiss();
        } else if (result.hpAffected) {
            this.createDigits(0, result.hpDamage);
        } else if (target.isAlive() && result.mpDamage !== 0) {
            this.createDigits(2, result.mpDamage);
        }
        if (result.critical) {
            if (AnimationID != 0) {
                target.startAnimation(AnimationID, false, 0);
            }
            }
    };

})();

You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/dy2rjxpchgte2sv/CriticalAnimation.js?dl=1

__________

StateColor - 2016/03/03

Creator name: kotonoha*

Overview
Changes the character's color tone affected by status effects

Feature
Changes the color tone of character graphic affected by status effect.

In Note box for States you want to change, input color tone as shown below.

Changing color tone (Specify color tone: red, green, blue, gray with commas)
Code:
<chara_tone:***,***,***,***>

Example 1: Petrified (stone) character (gray)
Code:
<chara_tone:0,0,0,255>

Example 2: Zombie status character (green)
Code:
<chara_tone:-150,-100,-180,90>

※If stacking occur, first color applied state is the first priority.

Note: State Color applies to Actors only, not enemies.
While it's possible for enemy to change color as actors. Seen from MPP_VanishState (Translucent Effect)
Someone who's familiar with javascript have to modify this plugin feature in if they want to.

Credit and Thanks: kotonoha*

Terms of Use- Free for commercial and non-commercial use.

License - MIT License: http://opensource.org/licenses/mit-license.php

JavaScript:
//=============================================================================
//
// StateColor.js
//
// Copyright (c) kotonoha*
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
// 2016/03/03 ver1.0 First release
//
//=============================================================================

/*:
 * @plugindesc Changes the character's color tone affected by status effects
 * @author kotonoha* (http://ktnh5108.pw/)
 *
 * @help Changes the color tone of character graphic affected by status effect.
 * In Note box for States you want to change, input color tone as shown below.
 *
 * Changing color tone (Specify color tone: red, green, blue, gray with commas)
 * <chara_tone:***,***,***,***>
 *
 * Example 1: Petrified (stone) character (gray)
 * <chara_tone:0,0,0,255>
 *
 * Example 2: Zombie status character (green)
 * <chara_tone:-150,-100,-180,90>
 *
 * ※If stacking occur, first color applied state is the first priority.
 *
 */

(function() {

    var Sprite_Actor_prototype_refreshMotion = Sprite_Actor.prototype.refreshMotion;
    
    Sprite_Actor.prototype.refreshMotion = function() {
        Sprite_Actor_prototype_refreshMotion.call(this);
        
        var statesID = this._actor._states;
        
        if (statesID.length != 0) {
            for (var i=0,max=statesID.length; i<max; i++) {
                var nowStateID = statesID[i];
                if ($dataStates[nowStateID].meta.chara_tone !== undefined) {
                    var tone = $dataStates[nowStateID].meta.chara_tone.split(",");
                    this._mainSprite._colorTone = [tone[0],tone[1],tone[2],tone[3]];
                }
            }
        }else{
            this._mainSprite._colorTone = [0,0,0,0];
        }
    }

})();

You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/nvxs9g1wi6rryx5/StateColor.js?dl=1

Features Mentioned

  • You can set Animation ID through parameter
  • Animation ID plays when a critical hit occurs.
  • Note: applies to all critical attacks, including from enemies.
  • Preview
  • "lightbox_close": "Close",
  • "lightbox_next": "Next",
  • "lightbox_previous": "Previous",
  • "lightbox_error": "The requested content cannot be loaded. Please try again later.",
  • "lightbox_start_slideshow": "Start slideshow",
  • "lightbox_stop_slideshow": "Stop slideshow",
  • "lightbox_full_screen": "Full screen",
  • "lightbox_thumbnails": "Thumbnails",
  • "lightbox_download": "Download",
  • "lightbox_share": "Share",
  • "lightbox_zoom": "Zoom",
  • "lightbox_new_window": "New window",
  • "lightbox_toggle_sidebar": "Toggle sidebar"
  • Credit and Thanks: kotonoha

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

License / Terms Note

Credit and Thanks: kotonoha* Terms of Use- Free for commercial and non-commercial use. License - MIT License: http://opensource.org/licenses/mit-license.php JavaScript:

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.

#rmmv#plugin-archive

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar