当サイトの運営者です。ゲーム制作とプラグイン開発が好きで、コミュニティに貢献したいと考えています。
RPGツクールMZでゲームを制作中です。
※プログラマ・エンジニアではありません。
YEP Equip Core - YEP_EquipCore.js

▼YEP Equip Core(Yanfly様作) - YEP_EquipCore.js
https://plugin.fungamemake.com/archives/10592
職業毎に独自の装備スロットを設定
ふりがな:いくいっぷこあ
機能概要: 職業毎に独自の装備スロットを設定
利用規約(ライセンス):http://www.yanfly.moe/wiki/Category:Yanfly_Engine_Plugi…
作者:Yanfly
作者サイト:http://yanfly.moe/
解説ページ:https://fungamemake.com/archives/1062
ダウンロードページ:http://yanfly.moe/2015/10/15/yep-10-equip-core/
ファイル名:YEP_EquipCore.js
備考:準公式採用プラグインのアップデート
プラグインのヘルプ:
/*:ja * @plugindesc v1.18 クラスごとに独自の装備スロットを提供し、 * 装備のシステムをより柔軟なものにできます。 * @author Yanfly Engine Plugins * * @param ---一般--- * @default * * @param Text Align * @parent ---一般--- * @type combo * @option left * @option center * @option right * @desc コマンドウィンドウでのテキストの配置を変更します。 * left center right * @default center * * @param Finish Command * @parent ---一般--- * @desc 装備シーンから出るときのテキストを指定します。 * @default 完了 * * @param Remove Text * @parent ---一般--- * @desc 装備アイテムリストで”外す”を表すテキストを指定します。 * @default 外す * * @param Remove Icon * @parent ---一般--- * @type number * @min 0 * @desc 装備アイテムリストで”外す”を表すアイコンを指定します。 * @default 16 * * @param Empty Text * @parent ---一般--- * @desc 装備リストで、装備品が空であることを表すテキストを指定します。 * @default <空き> * * @param Empty Icon * @parent ---一般--- * @type number * @min 0 * @desc 装備リストで、装備品が空であることを表すアイコンを指定します。 * @default 16 * * @param ---ルール--- * @default * * @param Non-Removable Types * @parent ---ルール--- * @type number * @min 1 * @max 100 * @desc ここで指定したタイプは常に何かアイテムを装備していなければなりません。 * 複数のタイプIDを指定する場合はスペースで区切ってください。 * @default 1 * * @param Non-Optimized Types * @parent ---ルール--- * @type number * @min 1 * @max 100 * @desc 最強装備の機能使用時に、ここで指定したタイプを無視させます。 * 複数のタイプIDを指定する場合はスペースで区切ってください。 * @default 5 * * @help * 翻訳:ムノクラ * https://munokura.tk/ * https://twitter.com/munokura/ * * ============================================================================ * Introduction * ============================================================================ * * このプラグインでは、装備のハンドリングに関するいくつかの要素を変更します。 * 詳細は下記を参照してください: * * 1. Scene_Equip * Scene_Equipは見た目の変更を行います。主にメインメニューの見た目を統一して * プレイヤーにとって親しみやすいものへと変更します。更に、今後リリースされる * 拡張プラグインにもきちんと対応できるように、コマンドウィンドウについても * 最適化されています。 * * 2. 装備タイプの扱い * 職業のノートにいくつかメモタグを加えるだけで、異なる職業がそれぞれの * セッティングを持つことができるようになります。以前は、マッチした名前を持った * 装備タイプは、単独としてバラバラに扱われていました。このプラグインでは、 * 同じタイプの物として扱うことができます。 * * 3. 装備ルール * 特定の装備タイプは外すことができなくなります。例として、このプラグインでは * 「武器スロットには常に何かしら装備していなくてはならない」というような設定が * 可能で、プレイヤーは武器を勝手に外すことはできなくなります。(イベントを通して * 解除させることもできます。) それに加えて、特定の装備タイプを指定して、 * 最強装備を制限することもできます。アクセサリーのような装備品タイプに関しては * 手動で決定させた方が良いでしょう。 * * 4. パラメータコントロール * メモタグを用いることで、装備パラメータに、大きな値やカスタマイズされた値を * 付与することができます。(コードを通して実行されます) * 装備品は固定の性能を持ったアイテムではなくなり、これにより、ゲームを通して * 性能が変動するようなものとなります。 * * Note: アイテムコア(Item Core)を使用してる方々へ * アイテムコアのプラグイン、または更新されてるItem Sceneレイアウトオプション * を使っている方へ。「Item Info Window」は「Equip Scene」に移動されました。 * 左・右キー、タブキー、またはそれぞれのウィンドウをクリックするとパラメータを * 比べるウィンドウとInfoウィンドウが表示されます。 * * ============================================================================ * Notetags * ============================================================================ * * 職業の装備設定を変更するには、下記のメモタグを用いてください。 * * 職業のメモタグ: * <Equip Slot: x> 例: <Equip Slot: 1, 2, 3, 4, 5, 5, 5, 5> * <Equip Slot: x, x, x> * 職業の装備スロットを x に変更してください。繰り返し同じ番号を使うことにより * 装備タイプを複製し、その職業は同タイプの装備を複数着けることができます。 * タイプIDを見つけるには、データベースのタイプタブを参照してください。 * * 上記の方法が気に入らない場合は、下記のメモタグを代わりに用いてください。 * * <Equip Slot> 例: <Equip Slot> * string Weapon * string Armor * string Accessory * string Accessory * </Equip Slot> </Equip Slot> * 'string'を装備タイプの名前に変えてください。非常に正確な照合のため、 * 名前欄が完璧にマッチしない場合は、スロットはその職業と認められません。 * 複数コピーされた名前欄は、その職業がそのタイプの装備を複数持てることを * 表しています。全て、前述のメモタグと同様に動作します。 * * 武器と防具のメモタグ: * <stat: +x> * <stat: -x> * 武器もしくは防具のステータスを、 x だけ増加・減少させます。 * ”stat”の部分を”hp”, ”mp”, ”atk”, ”def”, ”mat”, ”mdf”, ”agi”, ”luk” * のような特定のステータスに変更してください。この機能は、デフォルトの * 最大値の上限を無視して使うことができます。 * ここで成された変更は、ベースのパラメータを上書きします。 * * ============================================================================ * Lunatic Mode - Custom Parameters * ============================================================================ * * <Custom Parameters> 例: <Custom Parameters> * code atk = $gameVariables.value(1); * code mat = atk / 2; * code all = $gameParty.members().length; * code </Custom Parameters> * </Code Parameters> * パラメータに、コードによって適用されたレートを設定することができます。 * 次のパラメータが定義されます: 'maxhp', 'maxmp', 'atk', 'def', 'mat', 'mdf', * 'agi', 'luk', and 'all' * 'all' のパラメータは、全てのパラメータに作用します。 * ここでの変更はベースのパラメータを上書きしませんが、追加保存されます。 * * ============================================================================ * Changelog * ============================================================================ * * Version 1.18: * - Bypass the isDevToolsOpen() error when bad code is inserted into a script * call or custom Lunatic Mode code segment due to updating to MV 1.6.1. * * Version 1.17: * - Updated for RPG Maker MV version 1.5.0. * * Version 1.16: * - Lunatic Mode fail safes added. * * Version 1.15: * - Optimization update. * * Version 1.14: * - Added an actor refresh upon listing the various equip slots to ensure that * all slots are updated in case any cache'd instances may have been missed. * * Version 1.13: * - Fixed a bug that caused a crash for those who weren't using the Item Core * in addition to this plugin. * * Version 1.12: * - Added optional functionality. Leaving 'Finish Command' empty will remove * it from being added to the command list. * * Version 1.11: * - Updated for RPG Maker MV version 1.1.0. * * Version 1.10: * - Fixed a bug that did not clear changes made to an actor's stats after * having unequipped them and then switching actors. * * Version 1.09: * - For users using the Item Core plugin and the new Item Scene layout option, * the Item Info Window is now added to the Equip Scene. Pressing Left/Right * will toggle the stat comparison window with the info window. Pressing Tab on * the keyboard will also switch them as well as clicking on those windows. * * Version 1.08: * - Fixed a bug where changing an actor's equips would revive them if dead. * * Version 1.07: * - Fixed a bug with 'Optimize' and 'Remove All' not refreshing windows. * * Version 1.06: * - Fixed a bug with 'Change Equipment' event where it would only change the * slot of the marked equipment rather than the slot type. * * Version 1.05: * - Fixed an issue where unequipping items can kill actors. * * Version 1.04a: * - Fixed a bug and rewrote the initializing equipment process. * * Version 1.03: * - Fixed an bug that resulted in null object errors. * * Version 1.02: * - Fixed an issue that did not keep HP and MP rates the same when using the * optimize and clear commands. * * Version 1.01: * - Fixed a bug that did not update the stats properly when compared. * * Version 1.00: * - Finished plugin! */