美文网首页
【汉化】YEP.159 – Lunatic Pack – Act

【汉化】YEP.159 – Lunatic Pack – Act

作者: 沧笙 | 来源:发表于2017-12-03 16:04 被阅读1741次

    Introduction

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

    Place this plugin beneath the above listed plugin(s) in the plugin manager.
    将此插件放置在插件管理器中的上述插件下方。
    Sometimes, we’d like to add additional effects to our actions in battle. These effects can range from adding more HP, applying a new state to the user after everything else has happened, removing debuffs, playing an animation, or even absorbing a fraction of all the total damage directly dealt by the action this turn. This Lunatic Pack provides a new batch of effects that you can use to empower your items and skills, or to even globalize them as a result of states.
    有时候,我们想为战斗中的行动添加额外的效果。例如增加更多的HP,施加新的状态,去除BUFF,播放动画,吸收伤害等。这个拓展包提供了一批新的效果,你可以用来强化你的物品和技能。
    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的用户,您可以添加自定义效果

    // ---------
    // Animation
    // ---------
    if (data.match(/ANIMATION[ ](\d+)/i)) {
      var animationId = parseInt(RegExp.$1);
      var mirror = data.match(/MIRROR/i);
      if (data.match(/DELAY[ ](\d+)/i)) {
        var delay = parseInt(RegExp.$1);
      } else {
        var delay = 0;
      }
      user.startAnimation(animationId, mirror, delay);
    
    ...
    
    // -------------------------------
    // 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:
      --------------------   ---------------------------------------------------
      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
    
      totalHpDamage          The total amount of HP damage dealt this action
      totalMpDamage          The total amount of MP damage dealt this action
    
      skip                   Default: false. If true, popups will show
    
    

    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!

    相关文章

      网友评论

          本文标题:【汉化】YEP.159 – Lunatic Pack – Act

          本文链接:https://www.haomeiwen.com/subject/eunabxtx.html