【RPGツクールMZ/MV】Warhost 軍勢どうしの合戦を描くバトルプラグイン
- ダウンロード商品¥ 2,300






Warhost は、RPGツクールMZ のゲームに「軍勢どうしの合戦」を追加するプラグインです(RPGツクールMV 1.6 にも対応)。いくつもの連隊からなる二つの軍勢が、シード値から生成された戦場でぶつかり合います。 ・兵士はすべてプラグインが描画します:歩兵、槍兵、弓兵、騎兵、魔法兵の5兵種を、それぞれの軍の色で描きます ・各連隊の旗の紋章は連隊名から生成されます。同じ名前なら必ず同じ紋章になります ・戦場は草原、ステップ、雪原、砂漠、荒野の5種類です ・プレイヤーは横列・楔形・方陣・散開の4つの陣形から一つを選ぶだけで、あとは兵士一人ひとりが動く合戦が自動で進みます。矢は弧を描いて飛び、魔法は炸裂し、騎兵は突撃し、崩れた連隊は敗走します ・戦いのあとは戦況の推移をグラフにした戦記の画面が表示され、生き残った兵数は変数に書き戻されます ・勝敗はスイッチと変数(1=勝利、2=敗北、3=決着なし)に、味方の戦死者数も変数に入るので、イベントで分岐できます。シード値を指定すると同じ戦いを再現できます 画像ファイル、戦闘背景、スプライトシートは一切読み込みません。絵はすべてプラグインが描きます。新規プロジェクトでも、プラグインを有効にした瞬間から動作します。 相性:槍兵は騎兵を止め、騎兵は弓兵と魔法兵を蹴散らします。陣形にも相性があり、横列は散開に、楔形は横列に、方陣は楔形に強く、散開は弓兵か魔法兵がいれば方陣に強くなります。ただし一番効くのは兵数で、相性は少ない兵で勝つための手段です。 導入方法 1. WarhostCore.js、WarhostDraw.js、Warhost.js をプロジェクトの js/plugins/ フォルダにコピーし、プラグイン管理で有効にします(順番は問いません)。 2. イベントコマンド「プラグインコマンド」で、プラグイン「Warhost」のコマンド「Start Army Battle」を実行します。 RPGツクールMV 1.6 では、同梱の CSAF_MVBridge.js も js/plugins/ にコピーしてプラグイン管理の一番上に置き、イベントコマンド「プラグインコマンド」に「Warhost battle」と入力します(引数は name=value の形で後ろに続けます)。 ダウンロード内容:Warhost_plugin.zip(45 KB) Warhost.js、WarhostCore.js、WarhostDraw.js、CSAF_MVBridge.js、Readme_for_Users.md(英語の説明書)、LICENSE.txt 難読化していない、読めるJavaScriptのままお届けします。 できないこと・注意点 ・MZ標準の戦闘シーンやマップを置き換えることはしません。独自のシーンを一つ追加し、戦いが終わると元のマップに戻ります。 ・戦闘画面に表示される文字(VICTORY/DEFEAT、陣形カードの LINE・WEDGE・SQUARE・LOOSE、「Choose your order.」、戦記の「THE COURSE OF THE BATTLE」など)は英語で固定されており、日本語に切り替える設定はありません。自由に設定できるのは戦いの題名、両軍の名前、連隊の名前です(題名を空欄にすると「The Battle of マップ名」と表示されます)。プラグインパラメータ名とプラグインコマンドの引数名も英語です。 ・画面に描かれる兵士は1軍につき最大240体です。それより大きな軍は1体が複数の兵士を表しますが、変数に読み書きされる数は兵士単位で正確です。 ・効果音(Horn、Blow3、Bow1、Fire1、Horse)と音楽(勝利・敗北のME:Victory1、Defeat1/戦闘BGM:Battle2)は、初期設定でRPGツクールMZ付属のRTP素材の名前を指定しています(音声ファイルは同梱していません)。プラグインパラメータで変更でき、空欄にすると効果音は無音、MEは鳴らさず、戦闘BGMは今流れている曲のままになります。戦いのあとはマップのBGMに戻ります。 ・すべての他社製プラグインとの組み合わせは検証していません。 ライセンス:商用・非商用を問わず、本数の制限なく、使用料なしでRPGツクールのゲームに使用でき、自分のプロジェクト用に改変もできます。クレジット表記は必須ではありません(表記していただけると嬉しいです)。プラグインが描いた兵士・旗・戦場・カード・戦記画面は、ゲームの一部として公開・販売できます。ゲームに組み込んで配布するのは問題ありませんが、ソースを(改変の有無を問わず)プラグイン単体やプラグイン集として再配布・再販することは禁止です。 AIについて:このプラグインのコード(兵士・旗・戦場を描く描画コードを含む)、商品画像、表紙イラストは、AIの支援を受けて制作しました。 English Warhost adds army battles to RPG Maker MZ and MV 1.6 games: two hosts of regiments meet on a field generated from a seed. Every soldier is drawn by the plugin: foot, pikes, archers, horse and mages, in each army's colours. Every regiment carries a banner whose arms are generated from its name, so the same name always flies the same arms. Five fields: meadow, steppe, snow, desert and moor. The player picks one of four formations (line, wedge, square, loose), then the battle runs by itself, soldier by soldier: volleys arc overhead, spells burst, cavalry charges, broken regiments flee. A war record closes it with the course of the battle charted, and the survivors go back into your variables. Victory, defeat or a draw and your fallen go into a switch and variables for your events, and a fixed seed replays the same battle. Counters: pikes stop horse, and horse runs down archers and mages. The formations counter each other in a ring: line beats loose, wedge beats line, square beats wedge, and loose beats square when the army has archers or mages on the field. Numbers still matter most; the counter is how a smaller army gets a chance. It loads no image files, no battlebacks and no sprite sheets: every picture is drawn by the plugin. It works in a new project the moment it is on. Install: copy WarhostCore.js, WarhostDraw.js and Warhost.js into js/plugins and turn them on in any order, then run the Warhost plugin command Start Army Battle from an event. In MV 1.6, also copy CSAF_MVBridge.js into js/plugins, put it at the top of the Plugin Manager list, and type Warhost battle into a Plugin Command (arguments follow as name=value). Download: Warhost_plugin.zip (45 KB) with Warhost.js, WarhostCore.js, WarhostDraw.js, CSAF_MVBridge.js, Readme_for_Users.md (English) and LICENSE.txt. Readable JavaScript, not obfuscated. Limits: it replaces no battle scene or map; it adds one scene and returns to the same map. All battle screen text is fixed English (VICTORY, DEFEAT, the formation cards, the war record), and the plugin parameters are in English. You set the battle title, the army names and the regiment names; a blank title reads The Battle of and the map's name. Up to 240 figures a side are drawn; a bigger army is carried at several soldiers per figure, and every number read back is still in soldiers. Default sounds (Horn, Blow3, Bow1, Fire1, Horse) and music (Victory1, Defeat1, Battle2) name RTP files that ship with RPG Maker MZ; no audio files are included. Change or blank them in the plugin parameters; the map's music comes back after the battle. It has not been tested with every plugin from other authors. Licence: use it in unlimited commercial or free RPG Maker games with no royalty, and modify it for your own projects; credit is appreciated but not required. Everything it draws may be shown and sold as part of your game. Shipping it inside your game is fine; do not redistribute or resell the source, modified or not, on its own or in a plugin collection. The plugin code, the store images and the cover were made with AI assistance. Core Systems Asset Factory (CSAF).





