首页 热点资讯 义务教育 高等教育 出国留学 考研考公
您的当前位置:首页正文

【汉化】YEP.158 – Lunatic Pack – Cri

2024-12-20 来源:化拓教育网

Introduction

This plugin requires the following plugins:
这个插件需要以下插件:
– Battle Engine Core
– Damage Core
– Critical Control

Place this plugin beneath the above listed plugins in the plugin manager.
将此插件放置在插件管理器中的上述插件下方。
Ever wanted to have a bit more variety in how critical hits are determined in your game? This plugin gives you the ability to sway the critical hit rate of skills, items, and states in your game! Users affected by it can have their actions result in criticals based off their own HP values or the enemy’s! Or perhaps the idea of linking the critical hit rate to the element rate of the action, too? You can also alter the critical hit rate based off the number of states, buffs, or debuffs on either the user or the target!
有没有想过在你的游戏中致命一击的重要性?这个插件可以让你在游戏中不仅可以依靠技能,物品和状态的设置,还可以通过自己的HP值或敌人的行动设置。你还可以根据用户或目标的状态,来改变致命一击率!
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.
注意:这个插件用于RPG Maker MV版本1.5.0+。

Notetags

For updated versions of the notetags, please refer to the plugin’s helpfile.
有关备注代码的版本,请参阅插件的帮助文件。

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:
对于熟悉JavaScript的用户,您可以自定义效果

// ----------
// Flat Gains
// ----------
if (data.match(/([\+\-]\d+)[ ]HP/i)) {
  value = parseInt(RegExp.$1);
  user.gainHp(value);
  animation = animation || hpAnimation;

} else if (data.match(/([\+\-]\d+)[ ]MP/i)) {
  value = parseInt(RegExp.$1);
  user.gainMp(value);
  animation = animation || mpAnimation;
// -------------------------------
// Add new effects above this line
// -------------------------------
} else {
  skip = true;
}

Here’s what each of the variables used in this code bit refer to:
以下是代码中使用的每个变量的含义:

  --------------------   ---------------------------------------------------
  Variable:              Refers to:
  --------------------   ---------------------------------------------------
  rate                   The current critical hit rate to be returned

  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

  nonstack               Returns if effect's nonstacking or not (true/false)
  stackCheck             If true, it will autoskip the current effect

  skip                   Default: false. If true, returns the previous rate

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.
如果您需要将效果代码恢复到原始状态,请从插件管理器列表中删除插件,然后重新添加。代码将恢复为默认值。

Happy RPG Making!

显示全文