当サイトの運営者です。ゲーム制作とプラグイン開発が好きで、コミュニティに貢献したいと考えています。
RPGツクールMZでゲームを制作中です。
※プログラマ・エンジニアではありません。
NUUN バトラーMPゲージ - NUUN_BattlerMPGauge.js
シェア用テキスト:
▼NUUN バトラーMPゲージ(NUUN様作) - NUUN_BattlerMPGauge.js
https://plugin-mz.fungamemake.com/archives/5727
敵またはSVアクターのバトラー上にMPゲージを表示します。
ふりがな:ばとらーMPげーじ
機能概要: 敵またはSVアクターのバトラー上にMPゲージを表示します。
利用規約(ライセンス): MITライセンス
作者:NUUN
作者サイト:https://github.com/nuun888
ダウンロードページ:https://raw.githubusercontent.com/nuun888/mz/master/NUU…
ファイル名:NUUN_BattlerMPGauge.js
プラグインのヘルプ:
*: * @target MZ * @plugindesc バトラーMPゲージ * @author NUUN * @base NUUN_Base * @version 1.2.4 * @orderAfter NUUN_Base * * @help * 敵またはSVアクターのバトラー上にMPゲージを表示します。 * * 敵キャラまたはアクターのメモ欄 * <MPGaugeX:[position]> MPゲージのX座標を調整します。(相対座標) * <MPGaugeY:[position]> MPゲージのY座標を調整します。(相対座標) * [position]:座標 * * 敵キャラのメモ欄 * <NoMPGauge> MPゲージを表示しません。 * <MPGaugeLength:[width], [height]> MPゲージの幅を指定します。 * [width]:ゲージ横幅 * [height]:ゲージ縦幅 * * バトルイベントの注釈 * <MPGaugePosition:[Id],[x],[y]> 敵グループの[Id]番目のモンスターのゲージの位置を調整します。(相対座標) * [Id]:表示順番号 * [x]:X座標 * [y]:Y座標 * [id]は敵グループ設定で配置した順番のIDで指定します。モンスター画像の左上に番号が表示されますのでその番号を記入します。 * * 特徴を有するメモ欄 * <MPGaugeVisible> この特徴を持つアクターが存在すれば、敵のMPゲージが表示されます。 * <EnemyMPGaugeVisible> この特徴を持つ敵はMPゲージが表示されます。 * 敵のメモ欄 * <MPGaugeMask:[eval]> 条件に一致しなければMP値の表示を???にします。 * this 敵データ * this.enemy() 敵のデータベースデータ * 例 <MPGaugeMask:this.mp < this.mmp * 0.3> * 敵のMPが30%未満の時にMP値を表示します。 * * 初期MPゲージ表示 * <MPGaugeVisible>の特徴を持つアクターが戦闘メンバーにいるとき、または図鑑登録と連動している際に登録済みなら表示されます。 * 上記の特徴を使用する場合は初期MPゲージ表示を非表示に設定してください。 * * このプラグインはNUUN_Base Ver.1.2.0以降が必要です。 * * 疑似3Dバトルを入れている場合はこのプラグインを疑似3Dバトルを下に配置してください。 * ゲージ表示拡張プラグインで該当のゲージを設定している場合は、フォントサイズの設定はゲージ表示拡張プラグインで設定してください。 * * * 利用規約 * このプラグインはMITライセンスで配布しています。 * * 更新履歴 * 2023/8/3 Ver.1.2.4 * 一部のプラグインにてNoMPGaugeが機能していなかった問題を修正。 * 2023/7/7 Ver.1.2.3 * 一部プラグインで表示した敵キャラにゲージを表示されるとエラーが出る問題を修正。 * 2023/6/23 Ver.1.2.2 * NoMPGaugeが機能していなかった問題を修正。 * 2023/6/2 Ver.1.2.1 * 不具合の修正。 * 2023/6/2 Ver.1.2.0 * SVアクターにゲージを表示する機能を追加。 * 敵キャラ毎にHPゲージの横幅、縦幅を指定できる機能を追加。 * 2023/5/7 Ver.1.1.1 * MPゲージの表示をフェードアウト、フェードインさせるように修正。 * 2022/5/14 Ver.1.1.0 * バトラーの表示処理の定義大幅変更に関する定義変更。 * 2022/1/10 Ver.1.0.2 * 再修正。 * 2022/1/10 Ver.1.0.1 * ゲージがラベル表示でも座標0から表示されてしまう問題を修正。 * 2022/1/12 Ver.1.0.0 * 初版 * * @param EnemySetting * @text 敵設定 * @default ------------------------------ * * @param EnemyVisibleSetting * @text 表示設定 * @default ------------------------------ * @parent EnemySetting * * @param MPPosition * @desc 敵のMPゲージ位置 * @text MPゲージ位置 * @type select * @option 表示なし * @value -1 * @option 敵画像の上 * @value 0 * @option 敵画像の下 * @value 1 * @option 敵画像の中心 * @value 2 * @default 0 * @parent EnemyVisibleSetting * * @param MPVisible * @desc MPゲージの表示タイミング * @text MPゲージ表示タイミング * @type select * @option 常に表示 * @value 0 * @option 選択時 * @value 1 * @option MP変動時 * @value 2 * @option 選択時、MP変動時 * @value 3 * @default 0 * @parent EnemyVisibleSetting * * @param GaugeSetting * @text ゲージ設定 * @default ------------------------------ * @parent EnemySetting * * @param GaugeWidth * @desc ゲージの横幅を指定します。 * @text ゲージ横幅 * @type number * @default 128 * @min 0 * @parent GaugeSetting * * @param GaugeHeight * @desc ゲージの縦幅を指定します。 * @text ゲージ縦幅 * @type number * @default 12 * @min 0 * @parent GaugeSetting * * @param Gauge_X * @desc ゲージのX座標(相対座標)指定します。 * @text ゲージX座標 * @type number * @default 0 * @min -9999 * @parent GaugeSetting * * @param Gauge_Y * @desc ゲージのY座標(相対座標)指定します。 * @text ゲージY座標 * @type number * @default 0 * @min -9999 * @parent GaugeSetting * * @param MPLabelVisible * @text MPラベル表示 * @desc MPラベルを表示する。 * @type boolean * @default true * @parent GaugeSetting * * @param MPValueVisible * @text MP数値表示 * @desc MP数値を表示する。 * @type boolean * @default true * @parent GaugeSetting * * @param ValueFontSize * @desc 数値のフォントサイズ。(メインフォントサイズから) * @text 数値フォントサイズ * @type number * @default -6 * @min -9999 * @parent GaugeSetting * * @param LabelFontSize * @desc ラベルのフォントサイズ。(メインフォントサイズから) * @text ラベルフォントサイズ * @type number * @default -2 * @min -9999 * @parent GaugeSetting * * @param MaskValueName * @desc MPの数値を隠す時の文字。 * @text MPの数値を隠す時の文字 * @type string * @default ???? * @parent GaugeSetting * * @param SpecialSetting * @text 特殊設定 * @default ------------------------------ * @parent GaugeSetting * * @param MPVisibleMode * @desc 初期状態でのMPゲージの表示。特徴によってやMPゲージの表示タイミングによって表示されるようになります。 * @text MPゲージ表示 * @type select * @option 表示 * @value 0 * @option 非表示 * @value 1 * @default 0 * @parent SpecialSetting * * @param EnemyBookSetting * @text 図鑑連動設定 * @default ------------------------------ * @parent GaugeSetting * * @param MPEnemyBookVisible * @desc MPゲージの表示タイミング(モンスター図鑑) * @text MPゲージ表示タイミング(モンスター図鑑) * @type select * @option 指定なし * @value 0 * @option 図鑑登録後に表示 * @value 1 * @option 図鑑情報登録後に表示 * @value 2 * @default 0 * @parent EnemyBookSetting * * @param ActorSetting * @text アクター設定 * @default ------------------------------ * * @param ActorVisibleSetting * @text 表示設定 * @default ------------------------------ * @parent ActorSetting * * @param ActorMPPosition * @desc アクターのMPゲージ位置 * @text MPゲージ位置 * @type select * @option 表示なし * @value -1 * @option SV画像の上 * @value 0 * @option SV画像の下 * @value 1 * @default -1 * @parent ActorVisibleSetting * * @param ActorMPVisible * @desc MPゲージの表示タイミング * @text MPゲージ表示タイミング * @type select * @option 常に表示 * @value 0 * @option 選択時 * @value 1 * @option MP変動時 * @value 2 * @option 選択時、MP変動時 * @value 3 * @default 0 * @parent ActorVisibleSetting * * @param ActorGaugeSetting * @text アクターゲージ設定 * @default ------------------------------ * @parent ActorSetting * * @param ActorGaugeWidth * @desc アクターのゲージの横幅を指定します。 * @text ゲージ横幅 * @type number * @default 128 * @min 0 * @parent ActorGaugeSetting * * @param ActorGaugeHeight * @desc アクターのゲージの縦幅を指定します。 * @text ゲージ縦幅 * @type number * @default 12 * @min 0 * @parent ActorGaugeSetting * * @param ActorGauge_X * @desc アクターのゲージのX座標(相対座標)指定します。 * @text ゲージX座標 * @type number * @default 0 * @min -9999 * @parent ActorGaugeSetting * * @param ActorGauge_Y * @desc アクターのゲージのY座標(相対座標)指定します。 * @text ゲージY座標 * @type number * @default 0 * @min -9999 * @parent ActorGaugeSetting * * @param ActorMPLabelVisible * @text MPラベル表示 * @desc アクターのMPラベルを表示する。 * @type boolean * @default true * @parent ActorGaugeSetting * * @param ActorMPValueVisible * @text MP数値表示 * @desc アクターのMP数値を表示する。 * @type boolean * @default true * @parent ActorGaugeSetting * * @param ActorValueFontSize * @desc アクターの数値のフォントサイズ。(メインフォントサイズから) * @text 数値フォントサイズ * @type number * @default -6 * @min -9999 * @parent ActorGaugeSetting * * @param ActorLabelFontSize * @desc アクターの ラベルのフォントサイズ。(メインフォントサイズから) * @text ラベルフォントサイズ * @type number * @default -2 * @min -9999 * @parent ActorGaugeSetting * */