MZ用プラグイン

足音をかなり詳細に設定可 - PlayStepSeMZ.js

シェア用テキスト:
▼足音をかなり詳細に設定可(神無月サスケ様作) - PlayStepSeMZ.js
https://plugin-mz.fungamemake.com/archives/733
プレイヤーとイベントの足音を演奏します

ふりがな:あしおとをかなりしょうさいにせっていか

機能概要: プレイヤーとイベントの足音を演奏します

利用規約(ライセンス): MITライセンス

作者:神無月サスケ

作者サイト:https://twitter.com/ktakaki00

ダウンロードページ:https://forum.tkool.jp/index.php?threads/4357/

ファイル名:PlayStepSeMZ.js

プラグインのヘルプ:

/*:ja
 * @target MZ
 * @plugindesc [Ver1.1.0]プレイヤーとイベントの足音を演奏します
 * @author 神無月サスケ
 * 
 * @param Play Player Step SE
 * @text プレイヤーの足音ON?
 * @desc デフォルトでプレイヤーの足音を出す?
 * @type boolean
 * @on する
 * @off しない
 * @default false
 * 
 * @param Default SE Filename
 * @text デフォルトの足音SE
 * @desc デフォルトの足音SEファイル名
 * @default Equip2
 * @require 1
 * @dir audio/se/
 * @type file
 * 
 * @param Default Volume
 * @text 足音ボリューム
 * @parent Default SE Filename
 * @desc デフォルトの足音ボリューム 
 * @type number
 * @min 0
 * @max 100000
 * @default 20
 * 
 * @param Default Pitch
 * @text 足音ピッチ
 * @parent Default SE Filename
 * @desc デフォルトの足音ピッチ
 * @type number
 * @min 0
 * @max 100000
 * @default 60
 * 
 * @param Default Interval
 * @text インターバル歩数
 * @desc デフォルトのインターバル。n歩ごとにSEを演奏
 * @type number
 * @min 1
 * @default 1
 * 
 * @param Enable in EventRunning
 * @text イベント中演奏?
 * @desc イベント中に音を出すか
 * @type boolean
 * @on する
 * @off しない
 * @default false
 * 
 * @param Original Situation Switch ID
 * @text 浮遊時スイッチID
 * @desc このスイッチがONの際、浮遊状態とみなされ、オリジナルの足音を演奏します。0の時は常になりません。
 * @type switch
 * @min 0
 * @default 1

 * @param Original Situation SE Filename
 * @text 浮遊時の足音SE
 * @desc 浮遊時の足音SEファイル名
 * @parent Original Situation Switch ID
 * @default Down2
 * @require 1
 * @dir audio/se/
 * @type file
 * 
 * @param Original Situation Volume
 * @text 浮遊時のボリューム
 * @parent Original Situation Switch ID
 * @desc 浮遊時の足音ボリューム 
 * @type number
 * @min 0
 * @max 100000
 * @default 90
 * 
 * @param Original Situation Pitch
 * @text 浮遊時の足音ピッチ
 * @parent Original Situation Switch ID
 * @desc 浮遊時の足音ピッチ
 * @type number
 * @min 0
 * @max 100000
 * @default 150
 *
 * @param Original Situation Interval
 * @text 浮遊時インターバル歩数
 * @parent Original Situation Switch ID
 * @desc 浮遊時のインターバル。n歩ごとにSEを演奏
 * @type number
 * @min 1
 * @default 1
 * 
 * @command setStepSound
 * @text デフォルト足音の一時的変更
 * @desc 
 *
 * @arg target
 * @text ターゲット
 * @desc 足音変更対象
 * @type select
 * @option デフォルト
 * @value default
 * @option プレイヤー
 * @default player
 * @option イベント
 * @default event
 * @default default
 *
 * @arg eventId
 * @text イベントID
 * @desc ターゲットをイベントにした時のIDです。
 * それ以外では無視されます。
 * @type number
 * @min 1
 * @default 1
 *
 * @arg se
 * @text 変更後SE
 * @desc 変更するSEとインターバル
 * @type struct<Audio>
 * @default
 * 
 * @command resetStepSound
 * @text デフォルト足音のリセット
 * @desc 
 *
 * @arg target
 * @text ターゲット
 * @desc 足音リセット対象
 * @type select
 * @option デフォルト
 * @value default
 * @option プレイヤー
 * @default player
 * @option イベント
 * @default default
 *
 * @arg eventId
 * @text イベントID
 * @desc ターゲットをイベントにした時のIDです。
 * それ以外では無視されます。
 * @type number
 * @min 1
 * @default 1
 *
 * @command setRegionStepSound
 * @text リージョン関係の足音の一時的変更
 * @desc 
 *
 * @arg regionId
 * @text リージョンID
 * @desc 足音を変更するリージョンID
 * @type number
 * @min 1
 * @default 1
 *
 * @arg target
 * @text ターゲット
 * @desc 足音変更対象
 * @type select
 * @option 共通
 * @value default
 * @option プレイヤー
 * @value player
 * @option イベント
 * @value event
 * @option 全て
 * @value all
 * @default all
 *
 * @arg eventId
 * @text イベントID
 * @desc ターゲットをイベントにした時のIDです。
 * それ以外では無視されます。
 * @type number
 * @min 1
 * @default 1
 *
 * @arg se
 * @text 変更後SE
 * @desc 変更するSEとインターバル
 * @type struct<Audio>
 * @default
 * 
 * @command resetRegionStepSound
 * @text リージョン関係の足音のリセット
 * @desc 
 *
 * @arg regionId
 * @text リージョンID
 * @desc 足音をリセットするリージョンID
 * @type number
 * @min 1
 * @default 1
 *
 * @arg target
 * @text ターゲット
 * @desc 足音リセット対象
 * @type select
 * @option デフォルト
 * @value default
 * @option プレイヤー
 * @value player
 * @option イベント
 * @value event
 * @option そのリージョンの全て
 * @default all
 *
 * @arg eventId
 * @text イベントID
 * @desc ターゲットをイベントにした時のIDです。
 * それ以外では無視されます。
 * @type number
 * @min 1
 * @default 1
 *
 * @command playOrStop
 * @text 設定音の演奏開始・停止
 * @desc
 *
 * @arg isPlay
 * @text 開始?終了?
 * @desc true=開始、false=終了
 * @type boolean
 * @on 演奏開始
 * @off 終了
 * @default true
 *
 * @arg targetEventId
 * @text イベントID
 * @desc 対象のイベントID。-1を指定するとプレイヤーになります。
 * @type number
 * @min -1
 * @default -1
 *
 * @command playOnEvent
 * @text イベント中の足音設定変更
 * @desc
 *
 * @arg doesPlay
 * @text 演奏する?
 * @desc イベント中にも足音を演奏するか
 * @type boolean
 * @on する
 * @off しない
 * @default false
 *
 * @help
 * このプラグインは、RPGツクールMZに対応しています。
 *
 * プレイヤーとイベントの足音の設定を行います。
 * リージョン毎の指定も可能なのが特徴です。
 * 優先順位順にプラグインコマンド、マップやイベントでのメモ、
 * パラメータでの設定が可能です。
 * 
 * [パラメータ]
 * - デフォルトのSEおよびプレイヤーの演奏の是非を設定
 * - メモやプラグインコマンドに設定がある場合、そちらが優先
 * 
 * [メモ]
 * ・マップ
 * <StepSE:filename,volume,pitch,interval> マップ内のデフォルトの足音を設定
 * <StepRegion<regionId>SE:filename,volume,pitch,interval> マップ内の
 *  指定したリージョンでの足音を設定
 * 
 * - StepSE設定のないマップでは「パラメータまたはプラグインコマンドで設定した
 *   デフォルト」に
 * - マップのメモに設定があっても、自動的にはONにならない。
 *   プラグインコマンドで各キャラをONにする必要あり
 * - StepRegion<regionId>SE とは、StepRegion1SE やStepRegion255SE のように
 *   RegionIdを指定する形式のこと
 * - <StepSE><StepRegion10SE>のように : 以下を省略した場合、無音が設定される
 * 
 * ・イベント
 * <StepSE:filename,volume,pitch,interval> イベントのデフォルトの足音を設定
 * <StepRegion<regionId>SE:filename,volume,pitch,interval>
 *  イベントの指定したリージョンでの足音を設定
 * 
 * - イベントのメモに設定がある場合、デフォルトで足音ON。そうでない場合、OFF
 * - イベントのメモ欄に多数は書けないので、
 *   イベントのリージョンを多数指定したい場合、
 *   いくつかはプラグインコマンドで書くといい
 * 
 * ・メモ共通
 * - リージョンは複数指定可能。指定のないリージョンではデフォルトの足音を採用
 * - filename,volume,pitch,interval は省略可。
 *  省略の場合 空文字,100,90,1が設定される。
 *  interval とは何歩毎にSEを演奏するか
 * 
 * 例:
 * <StepSe:Coin,100>
 * <StepRegion12SE:Coin,90,150>
 * <StepRegion5SE:Noise,20,150,3>
 * 
 * [プラグインコマンド]
 * 以下のコマンドが準備されています。
 * ・デフォルト足音の一時的変更
 *   対象:デフォルト、プレイヤー、イベント
 * ・デフォルト足音のリセット
 * ・リージョン関係の足音の一時的変更
 *   リージョンを選択して足音を変更します。
 *   対象:デフォルト、プレイヤー、イベント、全て
 *   - イベントの設定は、マップ移動が行われると、自動的にリセット
 *   - プレイヤー、リージョンの設定はマップ移動が行われても持続。
 *     よってマップの設定に変更したい場合下記のコマンドでリセットを行うこと
 * ・リージョン関係の足音のリセット
 * ・設定音の演奏・停止の変更
 *   対象:プレイヤー、イベント
 *   - プレイヤーの設定は持続する。イベントの設定はマップ移動で自動的にリセット
 * ・イベント中足音演奏・停止の変更
 *
 * [拡張機能]
 * オプションに特別な状態(例:浮遊状態)用のスイッチを追加。
 * プレイヤーの足音演奏時、この設定が最優先されます。
 * 
 * [足音決定の優先順位の整理]
 * 設定がいろいろ複雑なので、優先順位を確認してください。
 * これで不便な場合、プラグイン作者までご連絡ください。
 * 
 * ・プレイヤーの足音を演奏するか
 *  - プラグインコマンドでの設定が優先
 *  - プラグインコマンドで設定しない場合、パラメータの設定
 * ・イベントの足音を演奏するか
 *  - プラグインコマンドでの設定が優先
 *  - プラグインコマンドで設定していない場合、イベントのメモに記述があればON、
 *    なければOFF
 * ・プレイヤーの足音
 *  - 浮遊時のスイッチONの際の足音(Ver1.1.0で追加)
 *  - プラグインコマンドでのプレイヤーのリージョンSE
 *    (set で設定、 reset で設定解除。以下のプラグインコマンドも同様)
 *  - プラグインコマンドでの共通リージョンのSE
 *  - マップのメモのStepRegion???SE
 *  - プラグインコマンドでのプレイヤーのSE
 *  - マップのメモのStepSE
 *  - プラグインコマンドでのデフォルトのSE
 *  - パラメータ(デフォルトの足音SE)
 * ・イベントの足音
 *  - プラグインコマンドでのイベントのリージョンSE
 *  - イベントのメモでのStepRegion???SE
 *  - プラグインコマンドでの共通リージョンSE
 *  - マップのメモのStepRegion???SE
 *  - プラグインコマンドでのイベントのSE
 *  - イベントのメモでのStepSE
 *  - マップのメモのStepSE
 *  - プラグインコマンドでのデフォルトのSE
 *  - パラメータ(デフォルトの足音SE)
 * 
 * [注意]
 * - プラグインコマンドやメモで設定したSEファイルは不要ファイル削除ツールに
 *   必要ファイルとして登録されない。不要ファイル削除ツールを使う想定の場合
 *   ダミーのイベントを作成し、そこで設定するなど工夫が必要
 *
 * [連携可能なプラグイン] (Ver1.1.0以降)
 * くらむぼん様の AudioSource.js と併用が可能です。
 * https://forum.tkool.jp/index.php?threads/4260/
 * AudioSource.js は音源の位置を設定し、そのキャラのいる場所に基づいて
 * ボリュームや位相を変更するプラグインです。
 *
 * [ライセンス表記]
 * このプラグインは MIT ライセンスで配布されます。
 * ご自由にお使いください。
 * http://opensource.org/licenses/mit-license.php
 */

スポンサードリンク

スポンサードリンク

-MZ用プラグイン

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