MZ用プラグイン

サイドビューバトルいい感じ - Sakura_SvBattleExtend.js

シェア用テキスト:
▼サイドビューバトルいい感じ(Sakurano様作) - Sakura_SvBattleExtend.js
https://plugin-mz.fungamemake.com/archives/8148
サイドビューバトルいい感じ

ふりがな:さいどびゅーばとるいいかんじ

機能概要: サイドビューバトルいい感じ

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

作者:Sakurano

解説ページ:https://github.com/Sakurano6130/SakuraPlugins/

ダウンロードページ:https://raw.githubusercontent.com/Sakurano6130/SakuraPl…

ファイル名:Sakura_SvBattleExtend.js

プラグインのヘルプ:

@help
 * サイドビューバトルをいい感じにします
 *
 * -------------------------------------------------
 * Sakura_SvBattleExtend
 * Copyright (c) 2024 Sakurano
 * This software is released under the MIT license.
 * http://opensource.org/licenses/mit-license.php
 * -------------------------------------------------
 * 2025/05/16 1.3.2 HP再生率が反映されていなかったため、再修正
 * 2025/05/16 1.3.1 HP再生率のある装備をしてマップを移動した場合、戦闘開始時にマップ上で発生した
 *                  HP再生が表示されてしまっていたため修正
 * 2025/02/24 1.3.0 機能ごとに個別にオンオフ指定できる機能を追加
 * 2024/12/17 1.2.1 スキル表示拡張機能をオフにしていた時に、スキル名が表示されていなかったので修正
 * 2024/11/22 1.2.0 トリアコンタン様の BattlerGraphicExtend.js でアクターが浮遊する設定をしていたときに
 *                  武器も浮遊するように機能追加
 * 2024/11/11 1.1.2 息遣いにも拡大縮小率を適用するように修正
 * 2024/11/11 1.1.1 トリアコンタン様の BattlerGraphicExtend.js でバトラーの拡大・縮小をしていたときに
 *                  拡大・縮小が維持されたまま息遣いするように機能追加
 * 2024/11/02 1.1.0 物理・魔法の判定方法を各スキルの命中タイプを元にするように変更
 *                  各スキルのメモ欄に<移動する>を書くと物理・魔法に関係なく移動する機能を追加
 *                  スキル使用時の武器の動きを修正
 * 2024/10/25 1.0.2 スキル使用の対象が自分1人だったときにジャンプしないように修正
 * 2024/10/09 1.0.1 バトルで投げる動作した直後に戦闘勝利し、その直後にメニューを開いた時に、
 *                  開いた時に、エラーになってしまうことがあったため修正
 *                  防御の動きを修正
 * 2024/10/07 1.0.0 公開
 * 2024/09/30 0.6.0 敵画像の上に線が出ていた不具合の対応
 *                  スキル表示のフキダシをオンオフにできるように
 *                  オフにするとツクールMZデフォルトのバトルログの
 *                  レイアウトになる
 *                  これにより他のプラグインの挙動を邪魔しないようにする
 * 2024/09/29 0.5.0 β版公開
 * -------------------------------------------------
 *
 * 使用方法:
 * https://github.com/Sakurano6130/SakuraPlugins/blob/main/Sakura_SvBattleExtend/Sakura_SvBattleExtend.md
 *
 * @command jump
 * @text 🦘 ジャンプ
 * @desc ジャンプ
 *
 * @arg anchor
 * @text 着地先(target:相手,self:自分)
 * @desc 着地先を決めてください。相手/自分
 * @type select
 * @default target
 * @option 相手
 * @value target
 * @option 自分
 * @value self
 *
 * @arg offsetX
 * @text 着地先からのX軸オフセット
 * @desc 着地先からのX軸オフセットです
 * @type number
 * @default 100
 * @min -9999
 * @max 9999
 *
 * @arg offsetY
 * @text 着地先からのY軸オフセット
 * @desc 着地先からのY軸オフセットです
 * @type number
 * @default 0
 * @min -9999
 * @max 9999
 *
 * @arg duration
 * @text かける時間(フレーム)
 * @desc かける時間です。
 * @type number
 * @default 20
 *
 * @arg jumpHeight
 * @text ジャンプの高さ(px)
 * @desc ジャンプの高さです。
 * @type number
 * @default 15
 *
 * @arg rotationAmount
 * @text 回転
 * @desc 1で左1回転、-1だと右1回転です。ただし対象がエネミーの時は逆になります
 * @type number
 * @default 0
 * @min -9999
 * @max 9999
 *
 * @command rotate
 * @text 🔄 回転
 * @desc 回転
 *
 * @arg anchor
 * @text 回転する対象(target:相手,self:自分)
 * @desc 回転する対象を決めてください。相手/自分
 * @type select
 * @default target
 * @option 相手
 * @value target
 * @option 自分
 * @value self
 *
 * @arg duration
 * @text かける時間(フレーム)
 * @desc かける時間です。
 * @type number
 * @default 20
 *
 * @arg rotationAmount
 * @text 回転
 * @desc 1で左1回転、-1だと右1回転です。ただし対象がエネミーの時は逆になります
 * @type number
 * @default 0
 * @min -9999
 * @max 9999
 *
 * @command stepForward
 * @text ⬅️ 一歩前進
 * @desc 一歩前進
 *
 * @arg duration
 * @text かける時間(フレーム)
 * @desc かける時間です。
 * @type number
 * @default 20
 *
 * @command stepBackward
 * @text ➡️ 一歩後退
 * @desc 一歩後退
 *
 * @arg duration
 * @text かける時間(フレーム)
 * @desc かける時間です。
 * @type number
 * @default 20
 *
 * @command teleport
 * @text 🌀 テレポート
 * @desc テレポート
 *
 * @arg anchor
 * @text 移動先(target:相手,self:自分)
 * @desc 移動先を決めてください。相手/自分
 * @type select
 * @default target
 * @option 相手
 * @value target
 * @option 自分
 * @value self
 *
 * @arg offsetX
 * @text 移動先からのX軸オフセット
 * @desc 移動先からのX軸オフセットです
 * @type number
 * @default 100
 * @min -9999
 * @max 9999
 *
 * @arg offsetY
 * @text 移動先からのY軸オフセット
 * @desc 移動先からのY軸オフセットです
 * @type number
 * @default 0
 * @min -9999
 * @max 9999
 *
 * @arg duration
 * @text かける時間(フレーム)
 * @desc かける時間です。
 * @type number
 * @default 60
 *
 * @command float
 * @text 🪶 浮遊
 * @desc 浮遊
 *
 * @arg anchor
 * @text 移動先(target:相手,self:自分)
 * @desc 移動先を決めてください。相手/自分
 * @type select
 * @default target
 * @option 相手
 * @value target
 * @option 自分
 * @value self
 *
 * @arg offsetX
 * @text 移動先からのX軸オフセット
 * @desc 移動先からのX軸オフセットです
 * @type number
 * @default 100
 * @min -9999
 * @max 9999
 *
 * @arg offsetY
 * @text 移動先からのY軸オフセット
 * @desc 移動先からのY軸オフセットです
 * @type number
 * @default 0
 * @min -9999
 * @max 9999
 *
 * @arg duration
 * @text かける時間(フレーム)
 * @desc かける時間です。
 * @type number
 * @default 20
 *
 * @arg floatHeight
 * @text 浮遊の高さ
 * @desc 浮遊の高さです
 * @type number
 * @default 100
 *
 * @command fall
 * @text 🪂 落下
 * @desc 浮遊状態から落下します
 *
 * @command motion
 * @text 🤸 モーション変更
 * @desc モーション変更
 *
 * @arg motionType
 * @text モーションタイプ
 * @desc モーションタイプです。
 * @type select
 * @default
 * @option 前進 @value walk
 * @option 突き @value thrust
 * @option 逃げる @value escape
 * @option 通常攻撃 @value attack
 * @option 振り @value swing
 * @option 勝利 @value victory
 * @option 詠唱待機 @value chant
 * @option 飛び道具 @value missile
 * @option 瀕死 @value dying
 * @option 防御 @value guard
 * @option 汎用スキル @value skill
 * @option 状態異常 @value abnormal
 * @option ダメージ @value damage
 * @option 魔法 @value spell
 * @option 睡眠 @value sleep
 * @option 回避 @value evade
 * @option アイテム @value item
 * @option 戦闘不能 @value dead
 *
 * @command animation
 * @text ✨ アニメーション表示
 * @desc アニメーション
 *
 * @arg animationId
 * @text アニメーション
 * @desc アニメーションです。
 * @type animation
 * @default 0
 *
 * @arg anchor
 * @text 表示する対象(target:相手,self:自分)
 * @desc 表示する対象を決めてください。相手/自分
 * @type select
 * @default target
 * @option 相手
 * @value target
 * @option 自分
 * @value self
 *
 * @command playSe
 * @text 🔊 SEの再生
 * @desc SEの再生
 *
 * @arg audioName
 * @text 再生するSE
 * @desc 再生するSEです
 * @type file
 * @dir audio/se
 * @default
 *
 * @arg volume
 * @text ボリューム
 * @desc ボリュームです
 * @type number
 * @default 80
 *
 * @arg pitch
 * @text ピッチ
 * @desc ピッチです
 * @type number
 * @default 100
 *
 * @arg pan
 * @text パン
 * @desc パンです
 * @type number
 * @default 0
 *
 * @command wait
 * @text ⏳ ウェイト
 * @desc ウェイト
 *
 * @arg waitTime
 * @text ウェイトする時間
 * @desc ウェイトする時間です。
 * @type number
 * @default 60
 *
 * @command throw
 * @text 🏹 投げる
 * @desc 投げる
 *
 * @arg anchor
 * @text 投げたものの着地点(target:相手,self:自分)
 * @desc 投げたものの着地点を決めてください。相手/自分
 * @type select
 * @default target
 * @option 相手
 * @value target
 * @option 自分
 * @value self
 *
 * @arg offsetX
 * @text 着地点からのX軸オフセット
 * @desc 着地点からのX軸オフセットです
 * @type number
 * @default 0
 * @min -9999
 * @max 9999
 *
 * @arg offsetY
 * @text 着地点からのY軸オフセット
 * @desc 着地点からのY軸オフセットです
 * @type number
 * @default 0
 * @min -9999
 * @max 9999
 *
 * @arg duration
 * @text かける時間(フレーム)
 * @desc かける時間です。
 * @type number
 * @default 20
 *
 * @arg jumpHeight
 * @text 投げる軌道の高さ
 * @desc 投げる軌道の高さです
 * @type number
 * @default 100
 *
 * @arg rotationAmount
 * @text 回転
 * @desc 1で左1回転、-1だと右1回転です。ただし投げる主体がエネミーの時は逆になります
 * @type number
 * @default 0
 *
 * @arg animationId
 * @text アニメーション
 * @desc 飛んでいる間に表示するアニメーションです
 * @type animation
 * @default 0
 *
 * @command applyDamage
 * @text 💥 ダメージ実行
 * @desc ダメージ実行
 *
 * @command changeOpacity
 * @text 🌫️ 不透明度の変更
 * @desc 不透明度の変更
 *
 * @arg anchor
 * @text 不透明度を変える対象(target:相手,self:自分)
 * @desc 不透明度を変える対象を決めてください。相手/自分
 * @type select
 * @default self
 * @option 相手
 * @value target
 * @option 自分
 * @value self
 *
 * @arg opacity
 * @text 不透明度
 * @desc 不透明度です。
 * @type number
 * @default 255
 * @max 255
 *
 * @command attackMotion
 * @text ⚔️ 武器を振る
 * @desc 武器を振る動作をします
 *
 * @command showMessage1
 * @text 💬 スキルメッセージ1表示
 * @desc スキルメッセージ1表示をします(スキルのメッセージ1の内容を表示します)
 *
 * @arg duration
 * @text かける時間(フレーム)
 * @desc かける時間です。
 * @type number
 * @default 120
 *
 * @command showMessage2
 * @text 💬 スキルメッセージ2表示
 * @desc スキルメッセージ2表示をします(スキルのメッセージ2の内容を表示します)
 *
 * @arg duration
 * @text かける時間(フレーム)
 * @desc かける時間です。
 * @type number
 * @default 120
 *
 * @command showFreeMessage
 * @text 💬 フリーメッセージ表示
 * @desc フリーメッセージ表示をします
 *
 * @arg message
 * @text チャット内容
 * @desc チャット内容です。
 * @type string
 * @default
 *
 * @arg duration
 * @text かける時間(フレーム)
 * @desc かける時間です。
 * @type number
 * @default 120
 *
 * @command callOtherAction
 * @text 📞 他アクション呼び出し
 * @desc 他アクション呼び出しをします
 *
 * @arg callActionName
 * @text 呼び出すアクション名(マップイベント名)
 * @desc 呼び出すアクション名(マップイベント名)です。
 * @type string
 * @default
 *
 * @command execScript
 * @text 💻 スクリプト
 * @desc スクリプトを実行します(thisは実行しているバトラーになります)
 *
 * @arg script
 * @text script内容
 * @desc script内容です。
 * @type multiline_string
 * @default
 *
 * @param layoutDamagePop
 * @text 💥 ダメージアニメ連動機能設定 ---
 *
 * @param enabledDamage
 * @parent layoutDamagePop
 * @text ⏻ ダメージアニメ連動機能のオンオフ
 * @desc ダメージアニメ連動機能のオンオフです。他プラグインをお使いで邪魔されたくない方はオフにしてください。
 * @type boolean
 * @default true
 *
 * @param fontFile
 * @parent layoutDamagePop
 * @desc 使用するフォントのファイル名
 * @text 使用するフォントのファイル名(拡張子.ttfまで含みます)
 * @type string
 * @default
 *
 * @param damagePopMainFontSize
 * @parent layoutDamagePop
 * @text ダメージポップメインフォントサイズ
 * @desc ダメージポップメインフォントサイズです
 * @type number
 * @default 32
 *
 * @param damagePopSubFontSize
 * @parent layoutDamagePop
 * @text ダメージポップサブフォントサイズ
 * @desc ダメージポップサブフォントサイズです(WEAK!などの文字のことです)
 * @type number
 * @default 16
 *
 * @param durationOfDamagePop
 * @parent layoutDamagePop
 * @text ダメージポップの表示時間
 * @desc ダメージポップの表示時間です
 * @type number
 * @default 200
 *
 * @param textForMiss
 * @parent layoutDamagePop
 * @text ミスのときに表示する文字
 * @desc ミスのときに表示する文字です
 * @type string
 * @default MISS!
 *
 * @param textForEvade
 * @parent layoutDamagePop
 * @text 回避のときに表示する文字
 * @desc 回避のときに表示する文字です
 * @type string
 * @default DODGE!
 *
 * @param textForWeak
 * @parent layoutDamagePop
 * @text 弱点をついたときに表示する文字
 * @desc 弱点をついたときに表示する文字です
 * @type string
 * @default WEAK!
 *
 * @param textForReduce
 * @parent layoutDamagePop
 * @text 耐性があったときに表示する文字
 * @desc 耐性があったときに表示する文字です
 * @type string
 * @default REDUCE!
 *
 * @param textForCritical
 * @parent layoutDamagePop
 * @text クリティカルときに表示する文字
 * @desc クリティカルときに表示する文字です
 * @type string
 * @default CRITICAL!
 *
 * @param lineSpace
 * @parent layoutDamagePop
 * @text 同時にダメージがあったときの行間
 * @desc 同時にダメージがあったときの行間です
 * @type number
 * @min -9999
 * @max 9999
 * @default 24
 *
 * @param weaponDisplay
 * @text ⚔️ 武器表示設定 ---
 *
 * @param enabledWeapon
 * @parent weaponDisplay
 * @text ⏻ 武器表示機能のオンオフ
 * @desc 武器表示機能のオンオフです。他プラグインをお使いで邪魔されたくない方はオフにしてください。
 * @type boolean
 * @default true
 *
 * @param settingBareHands
 * @parent weaponDisplay
 * @text 素手
 * @desc 素手
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-10","offsetY":"-38","angle":"0"}
 *
 * @param settingDagger
 * @parent weaponDisplay
 * @text 短剣
 * @desc 短剣
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-10","offsetY":"-38","angle":"0"}
 *
 * @param settingSword
 * @parent weaponDisplay
 * @text 剣
 * @desc 剣
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-10","offsetY":"-38","angle":"0"}
 *
 * @param settingFlail
 * @parent weaponDisplay
 * @text フレイル
 * @desc フレイル
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-10","offsetY":"-38","angle":"0"}
 *
 * @param settingAxe
 * @parent weaponDisplay
 * @text 斧
 * @desc 斧
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-6","offsetY":"-38","angle":"0"}
 *
 * @param settingWhip
 * @parent weaponDisplay
 * @text ムチ
 * @desc ムチ
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-10","offsetY":"-38","angle":"0"}
 *
 * @param settingStaff
 * @parent weaponDisplay
 * @text 杖
 * @desc 杖
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-10","offsetY":"-38","angle":"0"}
 *
 * @param settingBow
 * @parent weaponDisplay
 * @text 弓
 * @desc 弓
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-14","offsetY":"-22","angle":"-60"}
 *
 * @param settingCrossbow
 * @parent weaponDisplay
 * @text クロスボウ
 * @desc クロスボウ
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-14","offsetY":"-24","angle":"0"}
 *
 * @param settingGun
 * @parent weaponDisplay
 * @text 銃
 * @desc 銃
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-6","offsetY":"-28","angle":"20"}
 *
 * @param settingClaw
 * @parent weaponDisplay
 * @text 爪
 * @desc 爪
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-4","offsetY":"-28","angle":"20"}
 *
 * @param settingGlove
 * @parent weaponDisplay
 * @text グローブ
 * @desc グローブ
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-6","offsetY":"-28","angle":"20"}
 *
 * @param settingSpear
 * @parent weaponDisplay
 * @text 槍
 * @desc 槍
 * @type struct<WeaponDisplaySetting>
 * @default {"offsetX":"-10","offsetY":"-28","angle":"20"}
 *
 * @param enemyBreathing
 * @text ⚡ 敵の息遣い ---
 *
 * @param enabledEnemyBreathing
 * @parent enemyBreathing
 * @text ⏻ 敵息遣い機能のオンオフ
 * @desc 敵息遣い機能のオンオフです。他プラグインをお使いで邪魔されたくない方はオフにしてください。
 * @type boolean
 * @default true
 *
 * @param dynamicAction
 * @text ⚡ 敵前への移動 ---
 *
 * @param enabledDynamicAction
 * @parent dynamicAction
 * @text ⏻ 敵前への移動機能のオンオフ
 * @desc 敵前への移動機能のオンオフです。他プラグインをお使いで邪魔されたくない方はオフにしてください。
 * @type boolean
 * @default true
 *
 * @param skillDisplay
 * @text ⚡ スキル表示設定 ---
 *
 * @param showSkillNameExtend
 * @parent skillDisplay
 * @text ⏻ スキル表示拡張機能のオンオフ
 * @desc スキル表示拡張機能のオンオフです。オフにするとデフォルトのログ表示になります。他プラグインをお使いで邪魔されたくない方はオフにしてください。
 * @type boolean
 * @default true
 *
 * @param skillDisplayFontSize
 * @parent skillDisplay
 * @text スキル表示のフォントサイズ
 * @desc スキル表示のフォントサイズです
 * @type number
 * @default 16
 *
 * @param skillDisplayFontColorByEnemy
 * @parent skillDisplay
 * @text 敵のスキル表示の文字色
 * @desc 敵のスキル表示の文字色です
 * @type color
 * @default 20
 *
 * @param skillDisplayFontColorForAttack
 * @parent skillDisplay
 * @text 味方の通常攻撃のスキル表示の文字色
 * @desc 味方の通常攻撃のスキル表示の文字色です
 * @type color
 * @default 0
 *
 * @param skillDisplayFontColorForFriend
 * @parent skillDisplay
 * @text 味方の味方へのスキル表示の文字色
 * @desc 味方の味方へのスキル表示の文字色です
 * @type color
 * @default 24
 *
 * @param skillDisplayFontColorForEnemy
 * @parent skillDisplay
 * @text 味方の敵へのスキル表示の文字色
 * @desc 味方の敵へのスキル表示の文字色です
 * @type color
 * @default 6
 *
 * @param battleLog
 * @text 📜 バトルログ設定 ---
 *
 * @param showBattleLog
 * @parent battleLog
 * @text バトルログを表示するかどうか
 * @desc バトルログを表示するかどうかです。
 * @type boolean
 * @default true
 *
 * @param actionDefinition
 * @text 📜 アクション定義設定 ---
 *
 * @param actionMapId
 * @parent actionDefinition
 * @text アクション定義を登録するマップID
 * @desc アクション定義を登録するマップID
 * @type number
 * @default 0
 *
 * @param otherSettings
 * @text ⚙️ その他設定 ---
 *
 * @param reflectAnimation
 * @parent otherSettings
 * @text 魔法反射時のアニメーション
 * @desc 魔法反射時のアニメーションです
 * @type animation
 * @default 53
 *

スポンサードリンク

スポンサードリンク

-MZ用プラグイン

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