【汉化】YEP.161 – Lunatic Pack – Pas

2017-12-16  本文已影响1299人  沧笙

Introduction

This plugin requires the following plugins:
这个插件需要以下插件:
– Auto Passive States

Passive States can be a powerful addition to a game, but if they are always active throughout a battle, they can be a little too powerful. Sometimes, you will want to limit the extent at which your passive states will be active by imposing conditional cases upon them. If all of the passive’s conditional cases have been met, then the passive will become active. This plugin adds a multitude of conditional cases for you to be able to use in your game and limit certain passive states from having their effects active at all times.
被动状态为游戏补充了很多可玩性,但是如果他们在战斗中持续存在,可能会变得过于强大。有时候,你想通过限制被动状态的激活。如果所有条件都已经满足,那么被动状态将被激活。这个插件为你添加了许多条件情况,可以在你的游戏中使用,来限制被动状态始终处于活动。
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的用户,可以自定义效果

// -------------
// Switch On/Off
// -------------
if (data.match(/SWITCH[ ](\d+)[ ]ON/i)) {
  var switchId = parseInt(RegExp.$1);
  condition = $gameSwitches.value(switchId);

} else if (data.match(/SWITCH[ ](\d+)[ ]OFF/i)) {
  var switchId = parseInt(RegExp.$1);
  condition = !$gameSwitches.value(switchId);

...

// -------------------------------
// 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:
  --------------------   ---------------------------------------------------
  condition              Current condition setting. If it returns true, then
                         the current condition case passes. Otherwise, no.
                         The passive state needs all its condition cases to
                         to become an active passive state.

  a                      Returns the action user
  user                   Returns the action user
  subject                Returns the action user

  s[x]                   Return switch x (true/false)
  v[x]                   Return variable x's current value

  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!

上一篇下一篇

猜你喜欢

热点阅读