じ☆ve冰风 发表于 2026-7-26 10:07:20

kotonoha* - VictoryRecoverAll

VictoryRecoverAll ver1.0 - 2016/10/20

Creator name: kotonoha*

Overview
Plugin that fully recover party members after a battle victory.

Features
- Plugin and play
- Short code length

Credit and Thanks: kotonoha*

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

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

                Code:       
// --------------------------------------------------------------------------
//
// VictoryRecoverAll
//
// Copyright (c) kotonoha*
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
// 2016/10/20 ver1.0 First release
//
// --------------------------------------------------------------------------
/*:
* @plugindesc Plugin that fully recover party members after a battle victory.
* @author kotonoha*
*
* @help Plugin and play
*
*/

(function() {

    Game_Party_prototype_performVictory = Game_Party.prototype.performVictory;

    Game_Party.prototype.performVictory = function() {
      Game_Party_prototype_performVictory.call(this);
      this.members().forEach(function(actor) {
            actor.performVictory();
            actor.recoverAll();
       });
    };

})();


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

Note- Extra amount of HP gained through level up doesn't count as full recover. However there's a plugin that's suitable for it: Heal on Level Up by Shaz


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