yingkui 发表于 2016-1-21 15:27
好伤心,找到那个Heal on level up似乎可用,作者也说自由使用,但是下载地址要科学上网才行。。。VPN前 ...
[fold=Heal on Level Up][pre lang="javascript"]//=============================================================================
// Heal on Level Up
// by Shaz
// Last Update: 2015.10.25
//=============================================================================
/*:
* @plugindesc Allows you to heal actors on level up
* @author Shaz
*
* @param All HP
* @desc Heal HP for all party members (Y/N)
* @default Y
*
* @param All MP
* @desc Heal MP for all party members (Y/N)
* @default Y
*
* @param All States
* @desc Remove states for all party members (Y/N)
* @default Y
*
* @help This plugin does not provide plugin commands
*
* If you only want to set SOME actors to have the above properties, add
* the following tags to the actor notebox:
* <LUHealHP>
* <LUHealMP>
* <LUHealStates>
*/
(function() {
var parameters = PluginManager.parameters('HealOnLevelUp');
var healHP = (parameters['All HP'].toUpperCase() || '') === 'Y';
var healMP = (parameters['All MP'].toUpperCase() || '') === 'Y';
var healStates = (parameters['All States'].toUpperCase() || '') === 'Y';
var _Game_Actor_levelUp = Game_Actor.prototype.levelUp;
Game_Actor.prototype.levelUp = function() {
_Game_Actor_levelUp.call(this);
if (healHP || this.actor().meta.LUHealHP) {
this._hp = this.mhp;
}
if (healMP || this.actor().meta.LUHealMP) {
this._mp = this.mmp;
}
if (healStates || this.actor().meta.LUHealStates) {
this.clearStates();
}
};
})();[/pre][/fold]
[fold= Level Up Events][pre lang="javascript"/*:
-------------------------------------------------------------------------
@title Level Up Events
@author Hime --> HimeWorks (http://himeworks.com)
@date Nov 30, 2015
@filename HIME_LevelUpEvents.js
@url http://himeworks.com/2015/10/level-up-events/
If you enjoy my work, consider supporting me on Patreon!
-------------------------------------------------------------------------
@plugindesc Allows you to run common events when an actor levels up
@help
-------------------------------------------------------------------------
== Description ==
When an actor levels up, you may want to execute some custom logic.
Rather than writing a plugin to handle all of the possible behavior,
this plugin lets you build common events that will execute when an
actor levels up.
Each actor has their own level up common event, so you can easily
organize what should happen for each individual actor.
It is highly recommended that you install Common Event Queue as well
so that you can properly handle multiple level up's.
== Terms of Use ==
- Free for use in non-commercial projects with credits
- Contact me for commercial use
== Change Log ==
Nov 30, 2015
- added conditions where level up event should not be reserved
Nov 5, 2015
- Fixed error where I cleared out Imported
Oct 27, 2015
- Initial release
== Usage ==
Note-tag actors with
<level up event: COMMON_EVENT_ID>
Where the COMMON_EVENT_ID is the number of your common event.
For example you might say
<level up event: 2>
To run the second common event in your database.
-------------------------------------------------------------------------
*/
var Imported = Imported || {}
var TH = TH || {};
Imported.LevelUpEvents = 1;
TH.LevelUpEvents = TH.LevelUpEvents || {};