Introduction
This plugin requires the following plugins:
– Battle Engine Core
– Buffs & States Core
這個(gè)插件需要下面的插件支持:
戰(zhàn)斗核心
狀態(tài)核心
Place this plugin beneath the above listed plugins in the plugin manager. This plugin allows you to add a variety of protection effects to your states to allow them to reduce HP or MP damage in more unique ways, from cutting off a percentage of the original damage, blocking off damage entirely once certain break points are met, capping damage in certain ways, and surviving fatal damage. And should any of those effects trigger, you can set the state to perform special effects, too!
將此插件放置在插件管理器中的上述插件下方魄咕。這個(gè)插件可以為狀態(tài)增加各種保護(hù)效果博脑,讓他們以更獨(dú)特的方式減少HP或MP傷害虐译,例如百分比保護(hù)白华,特定值保護(hù)勾笆,傷害上限等荤崇。如果這些效果觸發(fā),您可以設(shè)置狀態(tài)來執(zhí)行特殊效果!
NOTE: This plugin is best used with RPG Maker MV version 1.5.0+. You can still use this plugin with a lower version number, but you will have a much harder time altering the plugin parameters without it.
注意:這個(gè)插件用于RPG Maker MV版本1.5.0+吹榴。
Notetags
For updated versions of the notetags, please refer to the plugin’s helpfile.
對(duì)于備注命令,請(qǐng)查看插件幫助文件
Lunatic Mode – Effect Code
For experienced users that know JavaScript and have RPG Maker MV 1.5.0+, you can add new notetag effects that can be used by the plugin or alter the effects of currently existing notetag effects from the plugin parameters entry: Effect Code. It should look something like this:
對(duì)于熟悉JavaScript的用戶滚婉,您可以自定義效果
—
// ----------------
// Damage Reduction
// ----------------
if (data.match(/DAMAGE CUT[ ](\d+)([%%])/i)) {
rate = parseFloat(RegExp.$1) * 0.01;
blocked = originalValue * rate;
value -= blocked;
value = Math.max(value, 0);
} else if (data.match(/DAMAGE BLOCK[ ]([\+\-]\d+)/i)) {
blocked = parseInt(RegExp.$1);
value -= blocked;
value = Math.max(value, 0);
...
// -------------------------------
// Add new effects above this line
// -------------------------------
} else {
skip = true;
}
—
Here’s what each of the variables used in this code bit refer to:
以下是每個(gè)變量的含義:
-------------------- ---------------------------------------------------
Variable: Refers to:
-------------------- ---------------------------------------------------
state The state this effect belongs to
stateId The state ID this effect belongs to
value The HP/MP damage being affected by this effect. Any
changes made to this value will be permanent unless
the effect is skipped.
originalValue The original HP/MP damage before any of the protect
state effects have been applied.
item The item being used by this action
skill The skill being used by this action
isItem Returns true if action is an item
isSkill Returns true if action is a skill
a Returns the action user
user Returns the action user
subject Returns the action user
b Returns the action's current target
target Returns the action's current target
s[x] Return switch x (true/false)
v[x] Return variable x's current value
user._result The current results for the user
target._result The current results for the target
userPreviousResult The results for the user before any changes
targetPreviousResult The results for the target before any changes
animation The animation to be played.
triggered Returns if any of this state's protection effects
have been triggered (true) or not (false)
skip Default: false. If true, skips popups & animations
—
If you need to revert the Effect Code back to its original state, delete the plugin from your plugin manager list and then add it again. The code will be back to default.
如果您需要將效果恢復(fù)到原始狀態(tài)图筹,請(qǐng)從插件管理器列表中刪除插件,然后重新添加让腹。代碼將恢復(fù)為默認(rèn)值远剩。