kotonoha* - Counter Animation (Battle)

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
803
Reaction score
1,349
First Language
English
Primarily Uses
N/A
CounterAnimation - 2016/05/18 ver1.1

Creator name: kotonoha*

Overview
Plays an animation when a counterattack was about to happen.
If you have an animation of reflect barrier for physical attack would fit.

Feature
- You can set Animation ID through parameter
- AnimationWait param for animation delay

Note: Animation ID is 0 by default, be sure to change it

Preview


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:
// --------------------------------------------------------------------------
//
// CounterAnimation
//
// Copyright (c) kotonoha*
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
// 2016/05/18 ver1.1 Implemented AnimationWait param
// 2016/04/06 ver1.0 First release
//
// --------------------------------------------------------------------------
/*:
* @plugindesc Plays an animation for counterattack in battle
* @author kotonoha (http://ktnh5108.pw/)
*
* @help
* Animation for battle when counterattacking.
*
* @param AnimationID
* @desc Animation ID set for counterattack.
* @default 0
*
* @param AnimationWait
* @desc Delay time after animation was used.
* @default 60
*
*/

(function() {

    var parameters = PluginManager.parameters('CounterAnimation');
    var AnimationID = Number(parameters['AnimationID']);
    var AnimationWait = Number(parameters['AnimationWait']);

    BattleManager.invokeCounterAttack = function(subject, target) {
        var action = new Game_Action(target);
        if (AnimationID !== 0) {
            target.startAnimation(AnimationID, false, 0);
            this._logWindow.push('wait');
            if (AnimationWait !== 0) {
                this._logWindow._waitCount = AnimationWait;
            }
            action.setAttack();
            action.apply(subject);
            this._logWindow.displayCounter(target);
            this._logWindow.displayActionResults(subject, subject);
        }
    };
   
})();
You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/lhgq4xjdhym93is/CounterAnimation.js?dl=1
 

Attachments

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

Latest Threads

Latest Profile Posts

To composers out there, what are atleast 4 instruments overall I need to have to make my music not feeling empty? I'm here stuck trying to make my own battle music but it kinda sounds... Not intense?
My computer broke yesterday, so no RPG maker for at least a week until I can get it repaired. :(
Just wanted to share how my game won 1st place in a game jam for itch.io. Everyone else used Unreal, Unity, GMS2, Godot, etc but I used RPG Maker 2003 :guffaw: It just shows that you can create a good game and it doesn't matter which engine you use
Working on cutscenes~

if your game is the first (or ONLY) in a series and still has a colon in its title, you are a bad person and I hate you...... jk.

who could ever hate BETWEEN: TWO SOULS?

Forum statistics

Threads
107,405
Messages
1,029,444
Members
139,504
Latest member
lobsterknees
Top