RPGツクールMV用プラグイン投稿・告知サイト

#ツクプラ

VE Counter Actions - VE_CounterActions.js

シェア用テキスト:
▼VE Counter Actions(Victor Sant様作) - VE_CounterActions.js
https://plugin.fungamemake.com/archives/26945
反撃に様々なカスタマイズができます。特定のスキルや属性が命中するなど、反撃の様々なトリガーを設定できます。また、反撃が発生したときにアクションが使用されるように設定することもできます。火と反撃を嫌う氷の敵を作ることができます。または、自動ポーション効果により、アクターが反撃にポーションを使用できるようになります。

ふりがな:かうんたーあくしょん

機能概要: 反撃に様々なカスタマイズができます。特定のスキルや属性が命中するなど、反撃の様々なトリガーを設定できます。また、反撃が発生したときにアクションが使用されるように設定することもできます。火と反撃を嫌う氷の敵を作ることができます。または、自動ポーション効果により、アクターが反撃にポーションを使用できるようになります。

利用規約(ライセンス):https://fungamemake.com/victor-engine-jaspanese

作者:Victor Sant

作者サイト:https://victorenginescripts.wordpress.com/

ダウンロードページ:https://fungamemake.com/archives/10003

ファイル名:VE_CounterActions.js

プラグインのヘルプ:

/*:ja
 * @plugindesc v1.10 反撃に様々なカスタマイズができます
 * @author Victor Sant
 *
 * @param Counter Animation
 * @text 反撃アニメーション
 * @type animation
 * @require 1
 * @desc アクションが反撃された時の表示アニメーションID
 * デフォルト: 0 (アニメーションなし)
 * @default 0
 *
 * @help
 * 翻訳:ムノクラ
 * https://fungamemake.com/
 * https://twitter.com/munokura/
 *
 * 元プラグイン:
 * https://victorenginescripts.wordpress.com/rpg-maker-mv/counter-actions/
 *
 *
 * ===========================================================================
 * 必要プラグイン
 * ===========================================================================
 *
 * このプラグインを使用するには、下記のプラグインが必要です。
 * - VE_BasicModule
 *
 *
 * ===========================================================================
 *  メモタグ
 * ===========================================================================
 *
 * ===========================================================================
 *  反撃 (アクター・職業・敵キャラ・武器・防具・ステート)
 * ---------------------------------------------------------------------------
 *  <action counter: trigger, action, rate[, priority]>
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  カスタム反撃効果を設定します。
 *    trigger  : 反撃のトリガーとなるアクション (後述)
 *    action   : 反撃として使用されるアクション (後述)
 *    rate     : 発動確率 0-100
 *    priority : 反撃の優先度 (後述)
 * ===========================================================================
 *
 * ===========================================================================
 *  カスタム反撃 (アクター・職業・敵キャラ・武器・防具・ステート)
 * ---------------------------------------------------------------------------
 *  <custom action counter: trigger, action[, priority]>
 *   result = code
 *  </custom action counter>
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  カスタム 反撃効果を設定するためのスクリプト コードを処理します。
 *    trigger  : 反撃のトリガーとなるアクション (後述)
 *    action   : 反撃として使用されるアクション (後述)
 *    priority : 反撃の優先度 (後述)
 *    code     : 発動確率を返すコード
 * ===========================================================================
 *
 * ===========================================================================
 *  反撃を無視 (スキル、アイテムのメモタグ)
 * ---------------------------------------------------------------------------
 *  <ignore counter>
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *   このアクションは常に対象が持っているカスタム反撃を無視します。
 * ===========================================================================
 *
 * ===========================================================================
 *  追加情報
 * ---------------------------------------------------------------------------
 *
 * コードではダメージ式と同じ値を使っているので、使用者には'a'、対象には'b'、
 * 変数には'v[x]'、アイテムオブジェクトには'item'を使います。
 * 結果'は0から100までの数値を返す必要があります。
 * (この範囲外の値は冗長です)
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *  - Counter Triggers
 *  トリガーとして使用できる値は以下のいずれかです。
 *      skill x   : スキルIDx使用時に反撃
 *      item x    : アイテムIDx使用時に反撃
 *      stype x   : スキルタイプIDx使用時に反撃
 *      itype x   : アイテムタイプIDx使用時に反撃
 *      element x : 属性IDxのアクション使用時に反撃
 *      attack    : 通常攻撃を使用時に反撃
 *      guard     : 防御使用時に反撃
 *      physical  : 物理スキル使用時に反撃
 *      magical   : 魔法スキル使用時に反撃
 *      damage    : 何らかのダメージを受けた時に反撃
 *      any       : 全アクション使用時に反撃
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *
 *  - Counter Actions
 *   アクションとして使用できる値は以下のいずれかです。
 *      attack  : 基本攻撃で反撃
 *      guard   : 防御で反撃
 *      skill X : スキルIDxで反撃
 *      item X  : アイテムIDxで反撃
 *      event X : コモンイベントIDxを実行で反撃(アクションは使用しない)
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *
 *  - Counter Priority
 * 優先度は任意の値で、複数の異なるアクションが反撃として使用可能な場合、
 * どのスキルが優先されるかを定義します。
 * 優先度の高いものが優先されます。
 * 複数のアクションが同じ優先度を持っている場合、
 * 最も高いIDを持つものが使用されます。
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *
 * 各反撃ソースは分離して計算されます。
 * 50%の反撃を与える2つのエフェクトがある場合、
 * それらのソースが全く同じ設定であっても、100%の反撃を持つことはありません。
 *
 * 反撃アクションは使える状態の必要があり、コストは消費されます。
 * 敵はアイテムを使用できません。
 *
 * デフォルトでは味方のアクションも反撃されることがありますが、
 * それを避けるために発動率コードに'a.isOpponentOf(b)'を使用できます。
 *
 * ===========================================================================
 *
 * ===========================================================================
 *  メモタグの例
 * ---------------------------------------------------------------------------
 *
 *   <action counter: physical, attack, 20%>
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *
 *   <action counter: damage, item 1, 50%, 10>
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *
 *   <action counter: skill 1, item 3, 25%>
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *
 *   <action counter: element 1, guard, 30%>
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *
 *   <custom action counter: stype 1, skill 3>
 *    result = a.level;
 *   </custom action counter>
 *
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 *
 *   <custom action counter code: any, attack>
 *    result = a.isOpponent(b) ? 50 : 0;
 *   </custom action counter>
 *
 * ===========================================================================
 *
 * ===========================================================================
 *  互換性
 * ---------------------------------------------------------------------------
 * このプラグインと一緒に使用する場合、
 * 以下のプラグインは、このプラグインの下に配置する必要があります。
 *     VE - Retaliation Damage
 *     VE - FollowUp Skills
 *     VE - Damage Popup
 *     VE - Dual Wield
 * ===========================================================================
 *
 * ===========================================================================
 *  Version History:
 * ---------------------------------------------------------------------------
 *  v 1.00 - 2015.12.04 > First release.
 *  v 1.01 - 2015.12.07 > Compatibility with VE - Retaliation Damage.
 *                      > Addeded counter animation.
 *  v 1.02 - 2015.12.21 > Compatibility with Basic Module 1.04.
 *  v 1.03 - 2015.12.26 > Fixed issue with item counter.
 *  v 1.04 - 2016.01.20 > Compatibility with Basic Module 1.08.
 *  v 1.05 - 2016.01.24 > Compatibility with Basic Module 1.09.
 *  v 1.06 - 2016.03.04 > Improved code for better handling script codes.
 *  v 1.07 - 2016.03.15 > Added common event counter.
 *                      > Added ignore counter notetag.
 *                      > Compatibility with YEP_BattleEngineCore.
 *  v 1.08 - 2016.03.18 > Compatibility with Dual Wield.
 *  v 1.09 - 2016.03.23 > Fixed issue with counters not working without the
 *                        plugin Retaliation Damage.
 *  v 1.10 - 2016.05.31 > Compatibility with Battle Motions.
 * ===========================================================================
 */

スポンサードリンク

スポンサードリンク

Copyright© #ツクプラ , 2025 All Rights Reserved.