「マップ画面でHUDを表示できるプラグイン」です。
元プラグイン・必要な画像ファイルは 下記ページで配布されています。
biud436.tistory.com/138
※配布元のバージョン数が小さいのは作者の記述ミスです。
戦闘HUDのみを有効にするとエラーが出る問題は解決されています。
どなたかのお役に立てば幸いです。
/*:ja * @target MZ * @plugindesc (v2.0.2) HUDを表示させるベースプラグイン <RS_HUD_4m> * @author biud436 * @url https://raw.githubusercontent.com/munokura/biud436-MZ-plugins-jp/master/HUD/RS_HUD_4m.js * * @param --- Image Name * @text >>> 画像名 * * @param EXP Gauge * @text EXPゲージ * @parent --- Image Name * @desc img/picturesフォルダからEXPを示す画像を指定 * @default exr * @require 1 * @dir img/pictures/ * @type file * * @param Empty Gauge * @text 空のゲージ * @parent --- Image Name * @desc 全てのゲージバー画像は空のゲージバーの上に表示 * ダメージを受けると画面に表示されます。 * @default gauge * @require 1 * @dir img/pictures/ * @type file * * @param HP Gauge * @text HPゲージ * @parent --- Image Name * @desc img/picturesフォルダからHPを示す画像を指定 * @default hp * @require 1 * @dir img/pictures/ * @type file * * @param MP Gauge * @text MPゲージ * @parent --- Image Name * @desc img/picturesフォルダからMPを示す画像を指定 * @default mp * @require 1 * @dir img/pictures/ * @type file * * @param HUD Background * @text HUDの背景 * @parent --- Image Name * @desc img/picturesフォルダから背景を示す画像を指定 * @default hud_window_empty * @require 1 * @dir img/pictures/ * @type file * * @param Masking * @text マスキング * @parent --- Image Name * @desc 顔画像を表示するには、顔画像からマスク画像の外側を減算 * @default masking * @require 1 * @dir img/pictures/ * @type file * * @param --- Image Custom Position * @text >>> 画像のカスタム位置 * * @param Face Position * @text 顔 位置 * @parent --- Image Custom Position * @desc スプライト変数x,y,visibleの値を決定 * 各変数をカンマ区切り * @default 0, 0, true * * @param HP Position * @text HP 位置 * @parent --- Image Custom Position * @desc スプライト変数x,y,visibleの値を決定 * 各変数をカンマ区切り * @default 160, 43, true * * @param MP Position * @text MP 位置 * @parent --- Image Custom Position * @desc スプライト変数 x, y, 可視の値を決定 * 各変数をカンマ区切り * @default 160, 69, true * * @param EXP Position * @text EXP 位置 * @parent --- Image Custom Position * @desc スプライト変数 x, y, 可視の値を決定 * 各変数をカンマ区切り * @default 83, 91, true * * @param HP Text Position * @text HP 文字位置 * @parent --- Image Custom Position * @desc 文字変数 x, y, 可視の値を決定 * 各変数をカンマ区切り * @default 160, 53, true * * @param MP Text Position * @text MP 文字位置 * @parent --- Image Custom Position * @desc 文字変数 x, y, 可視の値を決定 * 各変数をカンマ区切り * @default 160, 79, true * * @param Level Text Position * @text レベル 文字位置 * @parent --- Image Custom Position * @desc 文字変数 x, y, 可視の値を決定 * 各変数をカンマ区切り * @default 60, 80, true * * @param EXP Text Position * @text EXP 文字位置 * @parent --- Image Custom Position * @desc 文字変数 x, y, 可視の値を決定 * 各変数をカンマ区切り * @default 120.5, 93, true * * @param Name Text Position * @text 名前 文字位置 * @parent --- Image Custom Position * @desc 文字変数 x、y、および可視の値を決定 * 各変数をカンマ区切り * @default 54, 53, false * * @param --- Noraml * @text >>> ノーマル * * @param Width * @text 幅 * @parent --- Noraml * @desc デフォルトのスプライト・バッチを使用している場合、無変更 * デフォルト: 317 * @default 317 * * @param Height * @text 高さ * @parent --- Noraml * @desc デフォルトのスプライト・バッチを使用している場合、無変更 * デフォルト: 101 * @default 101 * * @param Margin * @text マージン * @parent --- Noraml * @type number * @min 0 * @desc HUDの境界線のマージンを指定 * @default 0 * * @param Gaussian Blur * @text ガウスぼかし * @parent --- Noraml * @type boolean * @desc ぼかし/非ぼかしを設定 * @default true * * @param Show * @text HUD表示 * @parent --- Noraml * @type boolean * @desc HUDを表示するかどうかを指定(デフォルトはtrue) * @default true * * @param Opacity * @text 不透明度 * @parent --- Noraml * @type number * @min 0 * @max 255 * @desc 不透明度の値を 0~255 の間で指定 * @default 255 * * @param Arrangement * @text 配置 * @parent --- Noraml * @type string[] * @desc 画面上の各HUD要素の位置のアンカーを指定 * @default ["LeftTop", "LeftBottom", "RightTop", "RightBottom"] * * @param Anchor * @text アンカー * @parent --- Noraml * @desc アンカーが見つからない場合、HUDはこのアンカーに指定 * @default LeftTop * * @param preloadImportantFaces * @text 顔画像プリロード * @parent --- Noraml * @type string[] * @desc マップを開始前に全ての顔画像を読み込み * @default ["Actor1", "Actor2", "Actor3"] * * @param Battle Only * @text HUDを戦闘限定 * @parent --- Noraml * @type boolean * @desc 戦闘時のみHUDを使用したい場合に使用 * デフォルト: false * @default false * * @param Show Comma * @text コンマを表示 * @parent --- Noraml * @type boolean * @desc 数字の値を3桁ごとにカンマで区別するかどうかを指定 * @default false * * @param Max Exp Text * @text 最大EXP文字 * @parent --- Noraml * @desc * @default ------/------ * * @param Max Members * @text 最大メンバー * @parent --- Noraml * @type number * @min 1 * @desc 画面に表示する HUD 要素の数を指定 * @default 4 * * @param --- Font * @text >>> フォント * * @param Chinese Font * @text 中国語フォント * @parent --- Font * @desc 希望するフォントを指定 * @default SimHei, Heiti TC, sans-serif * * @param Korean Font * @text 韓国語フォント * @parent --- Font * @desc 必要なフォントを指定 * @default NanumGothic, GameFont, Dotum, AppleGothic, sans-serif * * @param Standard Font * @text 標準フォント * @parent --- Font * @desc ./fonts フォルダからフォントファイルの css をインポートすることを指定 * @default GameFont * * @param Level Text Size * @text レベル文字サイズ * @parent --- Font * @desc レベルの文字サイズを指定 * @default 24 * * @param HP Text Size * @text HP 文字サイズ * @parent --- Font * @desc HP の文字サイズを指定 * @default 12 * * @param MP Text Size * @text MP 文字サイズ * @parent --- Font * @desc MP の文字サイズを指定 * @default 12 * * @param EXP Text Size * @text EXP 文字サイズ * @parent --- Font * @desc EXP の文字サイズを指定 * @default 12 * * @param Name Text Size * @text 名前 文字サイズ * @parent --- Font * @desc 名前の文字サイズを指定 * @default 12 * * @param --- Text Color * @text >>> 文字の色 * * @param HP Color * @text HP色 * @parent --- Text Color * @desc HP の文字色を指定 * @default #ffffff * * @param MP Color * @text MP色 * @parent --- Text Color * @desc MP の文字色を指定 * @default #ffffff * * @param EXP Color * @text EXP色 * @parent --- Text Color * @desc EXP の文字色を指定 * @default #ffffff * * @param Level Color * @text レベル色 * @parent --- Text Color * @desc レベルの文字色を指定 * @default #ffffff * * @param Name Color * @text 名前 色 * @parent --- Text Color * @desc 名前の文字色を指定 * @default #ffffff * * @param --- Text Outline Color * @text >>> 文字アウトラインの色 * * @param HP Outline Color * @text HPアウトライン色 * @parent --- Text Outline Color * @desc HP の文字色を指定 * @default rgba(0, 0, 0, 0.5) * * @param MP Outline Color * @text MPアウトライン色 * @parent --- Text Outline Color * @desc MP の文字アウトラインの色を指定 * @default rgba(0, 0, 0, 0.5) * * @param EXP Outline Color * @text EXPアウトライン色 * @parent --- Text Outline Color * @desc EXP の文字アウトラインの色を指定 * @default rgba(0, 0, 0, 0.5) * * @param Level Outline Color * @text レベルアウトライン色 * @parent --- Text Outline Color * @desc レベルの文字アウトラインの色を指定 * @default rgba(0, 0, 0, 0.5) * * @param Name Outline Color * @text 名前アウトライン色 * @parent --- Text Outline Color * @desc 名前の文字アウトラインの色を指定 * @default rgba(0, 0, 0, 0.5) * * @param --- Text Outline Width * @text >>> 文字アウトラインの幅 * * @param HP Outline Width * @text HP アウトライン幅 * @parent --- Text Outline Width * @desc HP の文字アウトラインの最大幅を指定 * @default 4 * * @param MP Outline Width * @text MP アウトライン幅 * @parent --- Text Outline Width * @desc MP の文字アウトラインの最大幅を指定 * @default 4 * * @param EXP Outline Width * @text EXP アウトライン幅 * @parent --- Text Outline Width * @desc EXP の文字アウトラインの最大幅を指定 * @default 4 * * @param Level Outline Width * @text レベル アウトライン幅 * @parent --- Text Outline Width * @desc レベルの文字アウトラインの最大幅を指定 * @default 4 * * @param Name Outline Width * @text 名前 アウトライン幅 * @parent --- Text Outline Width * @desc 名前の文字アウトラインの最大幅を指定 * @default 4 * * @param --- Custom Font * @text >>> カスタムフォント * * @param Using Custom Font * @text カスタムフォントの使用 * @parent --- Custom Font * @type boolean * @desc カスタムフォントを表示するかどうかを指定 * 指定する:true / 指定しない:false * @default false * * @param Custom Font Name * @text カスタムフォント名 * @parent --- Custom Font * @desc カスタムフォントの名前を指定 * @default NanumBrush * * @param Custom Font Src * @text カスタムフォントの作成元 * @parent --- Custom Font * @desc ゲームプロジェクトフォルダからフォントファイルのパスを指定 * @default fonts/NanumBrush.ttf * * @param --- Custom HUD Anchor * @text >>> カスタムHUDアンカー * * @param Custom Pos 1 * @text カスタム位置1 * @parent --- Custom HUD Anchor * @desc 定義済み変数 . W, H, PD, BW, BH * ヘルプ参照 * @default 0, (H * 0) + PD * * @param Custom Pos 2 * @text カスタム位置2 * @parent --- Custom HUD Anchor * @desc 定義済み変数 . W, H, PD, BW, BH * ヘルプ参照 * @default 0, (H * 1) + PD * * @param Custom Pos 3 * @text カスタム位置3 * @parent --- Custom HUD Anchor * @desc 定義済み変数 . W, H, PD, BW, BH * ヘルプ参照 * @default 0, (H * 2) + PD * * @param Custom Pos 4 * @text カスタム位置4 * @parent --- Custom HUD Anchor * @desc 定義済み変数 . W, H, PD, BW, BH * ヘルプ参照 * @default 0, (H * 3) + PD * * @param Custom Pos 5 * @text カスタム位置5 * @parent --- Custom HUD Anchor * @desc 定義済み変数 . W, H, PD, BW, BH * ヘルプ参照 * @default 0, (H * 4) + PD * * @param Custom Pos 6 * @text カスタム位置6 * @parent --- Custom HUD Anchor * @desc 定義済み変数 . W, H, PD, BW, BH * ヘルプ参照 * @default W + PD, (H * 0) + PD * * @param Custom Pos 7 * @text カスタム位置7 * @parent --- Custom HUD Anchor * @desc 定義済み変数 . W, H, PD, BW, BH * ヘルプ参照 * @default W + PD, (H * 1) + PD * * @param Custom Pos 8 * @text カスタム位置8 * @parent --- Custom HUD Anchor * @desc 定義済み変数 . W, H, PD, BW, BH * ヘルプ参照 * @default W + PD, (H * 2) + PD * * @param Custom Pos 9 * @text カスタム位置9 * @parent --- Custom HUD Anchor * @desc 定義済み変数 . W, H, PD, BW, BH * ヘルプ参照 * @default W + PD, (H * 3) + PD * * @param Custom Pos 10 * @text カスタム位置10 * @parent --- Custom HUD Anchor * @desc 定義済み変数 . W, H, PD, BW, BH * ヘルプ参照 * @default W + PD, (H * 4) + PD * * @help * 翻訳:ムノクラ * https://fungamemake.com/ * https://twitter.com/munokura/ * * 元プラグイン * https://raw.githubusercontent.com/biud436/MZ/master/HUD/RS_HUD_4m.js * * ========================================================================== * 導入事例 * ========================================================================== * * リソースをダウンロードして、img/picturesフォルダに配置してください。 * 全てのリソースは以下のリンクでダウンロードできます。 * リソースリンク : * https://www.dropbox.com/s/umjlbgfgdts2rf7/pictures.zip?dl=0 * * プラグインパラメータ'preloadImportantFaces' で指定します。 * * ========================================================================== * カスタム位置 * ========================================================================== * * 正しい位置に表示するために、利用可能な定義済み変数を知る必要があります。 * パラメータ'Custom Pos'という名前が付いています。 * そのため、HUD自体の位置を素早く設定することができます。 * * 定義済みの変数: * W - 'W' は 'Width' という名前のパラメータと同じです。 * H - 'H' は 'Height' という名前のパラメータと同じです。 * PD - 'PD' は 'Margin' という名前のパラメータと同じです。 * BW - 'BW' はゲームの最大幅と同じです。 * BH - 'BH' はゲームの高さの最大値と同じです. * * 各スプライトは背景のスプライトとの相対的な位置を変えて表示します。 * したがって、このカスタム位置はかなり重要な値です。 * * ========================================================================== * メモタグ * ========================================================================== * * 以下のように、マップのメモ欄に以下のメモタグを挿入します。 * <DISABLE_HUD> : 各HUDを作成したくないマップで使用できるメモタグです。 * * ========================================================================== * スクリプト * ========================================================================== * * -------------------------------------------------------------------------- * 不透明度の設定 * -------------------------------------------------------------------------- * HUDの不透明度をxに設定します。 * * gameHud.opacity = x. * * これは0から255の間の数値です。 * * 例えば、以下のようになります。 * 例: * $gameHud.opacity = 128; * * -------------------------------------------------------------------------- * 可視性の設定 * -------------------------------------------------------------------------- * この変数は、HUDの可視オプションを変更します。 * * $gameHud.show = true/false; * * 例: * $gameHud.show = false; * * -------------------------------------------------------------------------- * リフレッシュ文字 * -------------------------------------------------------------------------- * 一般的に文字やゲージのスプライトはリフレッシュすると更新されるので、 * こちらはフレーム毎に更新されるわけではありません。 * そのため、全ての文字を即座にリフレッシュする必要がある場合、 * 以下のようにします。 * * $gameTemp.notifyHudTextRefresh(); * * -------------------------------------------------------------------------- * 全てのHUDをクリアして作成 * -------------------------------------------------------------------------- * 全てのHUDをリフレッシュの必要がある場合、以下のようにします。 * * $gameTemp.notifyHudRefresh(); * * * 利用規約: * MITライセンスです。 * https://licenses.opensource.jp/MIT/MIT.html * 作者に無断で改変、再配布が可能で、 * 利用形態(商用、18禁利用等)についても制限はありません。 * * * @command opacity * @desc HUDの不透明度を変更できます。 * * @arg opacity * @type number * @desc HUD要素の不透明度を0~255の間で指定します。 * @default 200 * @min 0 * @max 255 * * @command visible * @desc HUDの可視性を変更できます。 * * @arg valid * @type boolean * @desc HUD要素の可視性を指定します。 * @default true * @on 表示 * @off 非表示 * * @command import * @desc HUDの設定をインポートできます。 * * @arg filename * @type string * @desc データファイル名を指定します。 * @default config * * @command export * @desc HUDの設定をエクスポートできます。 * * @arg filename * @type string * @desc データファイル名を指定します。 * @default config * */

コメントを投稿するにはログインしてください。