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

▼YEP Item Synthesis(Yanfly様作) - YEP_ItemSynthesis.js
https://plugin.fungamemake.com/archives/10579
アイテム合成システムを追加
ふりがな:あいてむしんせしず
機能概要: アイテム合成システムを追加
利用規約(ライセンス):http://www.yanfly.moe/wiki/Category:Yanfly_Engine_Plugi…
作者:Yanfly
作者サイト:http://yanfly.moe/
解説ページ:https://fungamemake.com/archives/1622
ダウンロードページ:http://yanfly.moe/2016/01/15/yep-58-item-synthesis/
ファイル名:YEP_ItemSynthesis.js
プラグインのヘルプ:
/*:ja * @plugindesc v1.11 アイテム合成システムを導入し、プレイヤーが自分のアイテムを作ることができます。 * @author Yanfly Engine Plugins * * @param ---一般--- * @default * * @param Synthesis Command * @parent ---一般--- * @desc アイテム合成メニューの表示テキスト * @default 合成 * * @param Show Command * @parent ---一般--- * @type boolean * @on 表示 * @off 非表示 * @desc デフォルトのメインメニューへ合成コマンドの表示設定(レシピを持っていないと表示されません) * 非表示 - false 表示 - true * @default true * * @param Enable Command * @parent ---一般--- * @type boolean * @on 有効 * @off 無効 * @desc メインメニューの合成コマンドのデフォルト有効設定 * 無効 - false 有効 - true * @default true * * @param Auto Place Command * @parent ---一般--- * @type boolean * @on YES * @off NO * @desc このプラグインがメニューの配置位置を決めることを許可しますか? * NO - false YES - true * @default true * * @param ---コマンドウィンドウ--- * @default * * @param Item Command * @parent ---コマンドウィンドウ--- * @desc アイテムを合成する表示テキスト * @default アイテム合成 * * @param Weapon Command * @parent ---コマンドウィンドウ--- * @desc 武器を合成する表示テキスト * @default 武器合成 * * @param Armor Command * @parent ---コマンドウィンドウ--- * @desc 防具を合成する表示テキスト * @default 防具合成 * * @param Finish Command * @parent ---コマンドウィンドウ--- * @desc 合成シーンを終了する表示テキスト * @default 完了 * * @param Text Alignment * @parent ---コマンドウィンドウ--- * @type combo * @option left * @option center * @option right * @desc コマンドウィンドウのテキスト揃え * left center right * @default center * * @param ---ステータスウィンドウ--- * @default * * @param Collected Recipes * @parent ---ステータスウィンドウ--- * @desc 入手したレシピの合計を表す表示タイトル。表示したくない場合、空白 * @default 入手レシピ * * @param Crafted Items * @parent ---ステータスウィンドウ--- * @desc 合成されたアイテムを表す表示タイトル。 表示したくない場合、空白 * @default 合成済アイテム * * @param Crafted Weapons * @parent ---ステータスウィンドウ--- * @desc 合成された武器を表す表示タイトル。 表示したくない場合、空白 * @default 合成済武器 * * @param Crafted Armors * @parent ---ステータスウィンドウ--- * @desc 合成された防具を表す表示タイトル。 表示したくない場合、空白 * @default 合成済防具 * * @param ---リストウィンドウ--- * @default * * @param Equipped Recipes * @parent ---リストウィンドウ--- * @type boolean * @on YES * @off NO * @desc 装備品からレシピをチェックしますか? * NO - false YES - true * @default true * * @param Mask Unknown * @parent ---リストウィンドウ--- * @type boolean * @on YES * @off NO * @desc 未合成のアイテム名を隠しますか? * NO - false YES - true * @default true * * @param Mask Text * @parent ---リストウィンドウ--- * @desc 未合成のアイテム名を隠すのに使用されます * @default ? * * @param Mask Italic * @parent ---リストウィンドウ--- * @type boolean * @on YES * @off NO * @desc 不明なアイテムの名前を斜体で表示します。 * @default true * * @param Mask Help Text * @parent ---リストウィンドウ--- * @desc アイテム名が不明の場合、ヘルプウィンドウに表示されるテキスト * @default このアイテムはまだ合成されていません。 * * @param Ingredients Text * @parent ---リストウィンドウ--- * @desc 材料リストの説明に使用されるテキスト * @default 材料 * * @param Amount Text * @parent ---リストウィンドウ--- * @desc 合成する金額に使用されるテキスト * @default 費用 * * @param Amount Format * @parent ---リストウィンドウ--- * @type boolean * @on 使用量/所持量 * @off 所持量/使用量 * @desc 材料数の表示方法 * true - 使用量/所持量 false - 所持量/使用量 * @default false * * @param Quantity Text Size * @parent ---リストウィンドウ--- * @type number * @min 1 * @desc 数量のテキストサイズ * Default: 28 * @default 20 * * @param ---音響--- * @default * * @param Default SE * @parent ---音響--- * @type file * @dir audio/se/ * @require 1 * @desc アイテム合成音デフォルトSE。ファイル名は大文字と小文字を区別し、拡張子を含めないでください。 * @default Twine * * @param Default Volume * @parent ---音響--- * @type number * @min 0 * @desc アイテム合成音のデフォルト音量 * @default 100 * * @param Default Pitch * @parent ---音響--- * @type number * @desc アイテム合成音のデフォルトピッチ * @default 100 * * @param Default Pan * @parent ---音響--- * @type number * @desc アイテム合成音のデフォルトパン * @default 0 * * @help * 翻訳:ムノクラ * https://munokura.tk/ * https://twitter.com/munokura/ * * ============================================================================ * Introduction * ============================================================================ * * アイテム合成は、レシピを入手した後にプレーヤーが自分のアイテムを * 作ることができるほとんどのRPGの今ではかなり一般的なシステムです。 * このプラグインはプレーヤーが調理法を得た後、 * それをすることを可能にする。 * レシピに転写されているものは、アイテム、武器、防具を作ることができます。 * これらのアイテムは、メインメニューや合成場所から作成できます。 * * ============================================================================ * Notetags * ============================================================================ * * プレイヤーが特定のアイテムを作ることができるようにするには、 * プレイヤーが持っているレシピノートに含まれていなければなりません。 * * アイテム、武器、防具のメモタグ * <Item Recipe: x> * <Item Recipe: x, x, x> * <Item Recipe: x to y> * アイテムをxアイテムのレシピに変更します。 * このアイテムがパーティー全体で所持している限り、 * プレイヤーが適切な量の材料を持っていれば、 * アイテムxをプレイヤーが合成することができます。 * *注: 名前のないエントリは含まれません。 * 合成コストと材料リストの両方がないエントリは含まれません。 * * <Weapon Recipe: x> * <Weapon Recipe: x, x, x> * <Weapon Recipe: x to y> * アイテムをx武器のレシピに変更します。 * このアイテムがパーティー全体で所持している限り、 * プレイヤーが適切な量の材料を持っていれば、 * 武器xをプレイヤーが合成することができます。 * *注: 名前のないエントリは含まれません。 * 合成コストと材料リストの両方がないエントリは含まれません。 * * <Armor Recipe: x> * <Armor Recipe: x, x, x> * <Armor Recipe: x to y> * アイテムをx防具のレシピに変更します。 * このアイテムがパーティー全体で所持している限り、 * プレイヤーが適切な量の材料を持っていれば、 * 防具xをプレイヤーが合成することができます。 * *注: 名前のないエントリは含まれません。 * 合成コストと材料リストの両方がないエントリは含まれません。 * * <Synthesis Ingredients> * item id * item id: x * weapon id * weapon id: x * armor id * armor id: x * gold: x * named item * named item: x * </Synthesis Ingredients> * アイテムに上記のタグを使用すると、 * それらのアイテムはプレイヤーが合成するのに必要な材料として設定されます。 * ”id”を適切なアイテム、武器、防具のIDに置き換えてください。 * ”: x”が使用されていない場合、 * データベースはそれをそのアイテムの1つだけを * 原料として必要とするものとして登録します。 * 'gold: x'が使用されている場合、 * アイテムを合成するのに必要なコストになります。 * * 名前付きエントリを使用している場合、 * アイテム、武器、防具の順で最も高いIDが優先されます。 * * *注: YEP_ItemCore.jsを使用している場合、 * 独立アイテムはレシピの材料になることはできないため、自動的に省略されます。 * * <Mask Name: x> * 未知のアイテムの名前を隠している場合、 * 未知のアイテムに対して表示されるテキストをxで変更できます。 * これにより、通常のマスク名の代わりのマスク名を使用します。 * プレイヤーは'奇妙な液体'や'奇妙なクリスタル'など、 * 合成している可能性があるものに一般的なアイデアを得ることができます。 * * ============================================================================ * Lunatic Mode - Custom Synthesis Effects * ============================================================================ * * JavaScript を使ったメモタグを使うことで、 * 特定のアイテムが合成された時、起こるカスタム効果を作ることができます。 * 例えば、ポーションが作られる時、 * 合成の副産物として空のボトルを与えることができます。 * * --- * * アイテム、武器、防具のメモタグ * * <Custom Synthesis Effect> * var bottle = $dataItems[123]; * $gameParty.gainItem(bottle, 2); * </Custom Synthesis Effect> * * このメモタグでは、'item'変数は合成されているアイテムを参照します。 * 変更しても何もしませんが、参照するための便利な変数として使用されます。 * * --- * * ============================================================================ * Plugin Commands * ============================================================================ * * 以下は、イベントで使用できるプラグインコマンドです。 * * Plugin Command: * OpenSynthesis フィールドから合成シーンを開きます。 * ShowSynthesis メインメニューから合成コマンドを表示します。 * HideSynthesis メインメニューから合成コマンドを隠します。 * EnableSynthesis メインメニューから合成コマンドを有効にします。 * DisableSynthesis メインメニューから合成コマンドを無効にします。 * * プレイヤーに特定のレシピのみを合成させたい場合、 * 次のコマンドを使用できます。 * * OpenSynthesis Item 15 Recipe * - or - * OpenSynthesis Weapon 20 Recipe * - or - * OpenSynthesis Armor 30 Recipe * * 合成メニューは、開かれた時、、 * アイテム15、武器20、防具30のレシピのみを必要とせず、 * プレイヤーのレシピアイテムのレシピも表示しないようになります。 * * ============================================================================ * Changelog * ============================================================================ * * Version 1.11: * - 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.10: * - Added 'Amount Format' plugin parameter. Now you can switch the way the * needed ingredients are shown between Need/Own and Own/Need. * * Version 1.09: * - Updated for RPG Maker MV version 1.5.0. * * Version 1.08: * - Lunatic Mode fail safes added. * * Version 1.07: * - Added <Custom Synthesis Effect> Lunatic Mode notetag. * * Version 1.06: * - Fixed an error with the calculation of total recipes. * * Version 1.05: * - Updated for RPG Maker MV version 1.1.0. * * Version 1.04: * - Added failsafes to prevent crashes from saved games that did not have this * plugin already installed. * * Version 1.03a: * - Fixed a bug that caused a crash for OpenSynthesis recipe commands. * - Fixed an issue with recipe counts not appearing right. * * Version 1.02: * - Added 'Equipped Recipes' plugin parameter. If enabled, this will allow the * Item Synthesis menu to check your party's equipment to see if any of them * are recipe holders. * * Version 1.01: * - Fixed a bug with the synthesis gold costs taking more than they should. * - Extended the OpenSynthesis plugin command. If you add Item, Weapon, or * Armor after the command along with an ID, the synthesis menu will only show * the items listed on the recipe for Item x, Weapon x, or Armor x. * * Version 1.00: * - Finished Plugin! */