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

▼YEP Class Change Core(Yanfly様作) - YEP_ClassChangeCore.js
https://plugin.fungamemake.com/archives/10506
職業変更のコマンドをメインメニューに追加等
ふりがな:くらすちぇんじこあ
機能概要: 職業変更のコマンドをメインメニューに追加等
利用規約(ライセンス):http://www.yanfly.moe/wiki/Category:Yanfly_Engine_Plugi…
作者:Yanfly
作者サイト:http://yanfly.moe/
解説ページ:https://fungamemake.com/archives/1391
ダウンロードページ:http://yanfly.moe/2015/11/27/yep-32-class-change-core/
ファイル名:YEP_ClassChangeCore.js
プラグインのヘルプ:
/*:ja * @plugindesc v1.13 職業変更のコマンドをメインメニューに追加します。 * @author Yanfly Engine Plugins * * @param ---一般--- * @default * * @param Class Command * @parent ---一般--- * @desc メニューコマンドの表示テキスト * @default 職業 * * @param Auto Add Menu * @parent ---一般--- * @desc メインメニューに職業コマンドを自動的に追加しますか? * NO - false YES - true * @default true * * @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 自動 * @off 手動 * @desc メニューの配置位置の決定方法 * 手動 - false 自動 - true * @default true * * @param Default Icon * @parent ---一般--- * @desc すべての職業のデフォルトアイコン * @default 78 * * @param Maintain Levels * @parent ---一般--- * @type number * @min 0 * @desc すべての職業を通してレベルを維持しますか? * NO - false YES - true Default: false * @default false * * @param Unlocked Classes * @parent ---一般--- * @desc デフォルトでロック解除されている職業。複数の職業IDを入れるには間にスペースを入れてください * @default 1 2 3 4 * * @param ---コマンド・ウィンドウ--- * @default * * @param Class Change Command * @parent ---コマンド・ウィンドウ--- * @desc 基本職業を変更するコマンドの表示テキスト * @default 職業変更 * * @param Show Class Change * @parent ---コマンド・ウィンドウ--- * @type boolean * @on 表示 * @off 非表示 * @desc デフォルトで職業変更コマンドを表示しますか? * 非表示 - false 表示 - true * @default true * * @param Enable Class Change * @parent ---コマンド・ウィンドウ--- * @type boolean * @on 有効 * @off 無効 * @desc デフォルトで職業変更コマンドを有効にしますか? * 無効 - false 有効 - true * @default true * * @param Show Skill Learn * @parent ---コマンド・ウィンドウ--- * @type boolean * @on 表示 * @off 非表示 * @desc スキルラーニングシステムを使っている場合、'Learn Skill'を表示しますか? * 非表示 - false 表示 - true * @default true * * @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 Current Class Color * @parent ---ウィンドウ設定--- * @type number * @min 0 * @max 31 * @desc 職業表示に使用されるテキスト色 * @default 17 * * @param Class Level Format * @parent ---ウィンドウ設定--- * @desc 職業レベルのテキストフォーマット * @default Lv %1 * * @param Class Level Font Size * @parent ---ウィンドウ設定--- * @type number * @min 1 * @desc 職業レベルのフォントサイズ * @default 20 * * @help * 翻訳:ムノクラ * https://munokura.tk/ * https://twitter.com/munokura/ * * ============================================================================ * Introduction * ============================================================================ * * このプラグインはプレーヤーがメインメニューからアクターの職業を * 自由に変える機能を追加します。 * 職業を変更する時、このスクリプトは開発者が職業がそれ自身のレベルを持っている * (アクターのレベルを職業のレベルにリセットさせる)か * 現在のレベルを維持するかを選択するオプションを与えます。 * * ============================================================================ * Notetags * ============================================================================ * * 以下はClass Change Coreプラグインで使えるメモタグです。 * * アクターのメモタグ: * <Unlock Class: x> * <Unlock Class: x, x, x> * <Unlock Class: x to y> * アクターの職業 x のロックを解除します。 * * <Cannot Change Class> * アクターが主職業を変更できなくなります。 * ただし、これはプラグインコマンドで逆になる可能性があります。 * * <Class x Character: filename y> * アクターの職業が x の場合、 * アクターの歩行キャラ画像は'filename'内の y 番目になります。 * * <Hero Character: filename y> * <Warrior Character: filename y> * 職業IDの代わりに職業名を使用したい場合、上記の形式を使用してください。 * アクターがこの職業の場合、 * アクターの歩行キャラ画像は'filename'内の y 番目になります。 * * <Class x Face: filename y> * アクターの職業がxの場合、アクターの顔画像は'filename'内の y 番目になります。 * * <Hero Face: filename y> * <Warrior Face: filename y> * 職業IDの代わりに職業名を使用したい場合、上記の形式を使用してください。 * アクターがこの職業の場合、 * アクターの顔画像は 'filename' 内の y 番目になります。 * * <Class x Battler: filename> * アクターの職業がxの場合、アクターのSV戦闘キャラ画像は'filename'になります。 * * <Hero Battler: filename> * <Warrior Battler: filename> * 職業IDの代わりに職業名を使用したい場合、上記の形式を使用してください。 * アクターがこの職業の場合、 * アクターのSV戦闘キャラ画像は'filename'になります。 * * 職業のメモタグ: * <Icon: x> * この職業のアイコンを x に設定します。 * このアイコンはClass Changeメニューリストで使用されています。 * * <Use Nickname> * 職業は、職業名の代わりにアクターのニックネームを使用します。 * * <Help Description> * Text * Text * </Help Description> * 職業のヘルプの説明を指定されたテキストに設定します。 * * <Level Unlock Requirements> * Class x: Level y * Class x: Level y * </Level Unlock Requirements> * 特定の職業をロック解除するための要件を設定します。 * 職業のロックを解除するには、職業 x をレベル y にする必要があります。 * 開始と終了の2つのメモタグの間に複数の文字列を挿入し、 * すべての職業レベルを満たすことを要求します。 * * <Level Unlock Requirements> * Hero: Level y * Warrior: Level y * </Level Unlock Requirements> * 職業IDの代わりに職業名を使用したい場合、上記の形式を使用してください。 * 指定した職業のレベル要件を y に設定します。 * 同じ名前の職業が複数ある場合、最も高いID値を持つ職業が採用されます。 * * ============================================================================ * Plugin Commands * ============================================================================ * * ゲームの職業変更を支援するための複数のプラグインコマンドがあります。 * * Plugin Command * OpenClass * - 職業変更メニューを開きます。 * * ShowClass * HideClass * - メインメニューから職業オプションを表示/非表示にします。 * * EnableClass * DisableClass * - 職業オプションが有効/無効になります。 * * UnlockClass 5 6 * - アクター5の職業6のロックを解除します。 * * RemoveClass 5 7 * - アクター5は職業7に職業変更できなくなります。 * * UnlockClassAll 8 * - 全アクターの職業8のロックを解除します。 * * RemoveClassAll 9 * - 全アクターが職業9に職業変更できなくなります。 * * EnablePrimaryClassChange 5 * DisablePrimaryClassChange 5 * - アクター5の基本職業の変更が可能/禁止になります。 * * ============================================================================ * Main Menu Manager - Positioning the Class Command * ============================================================================ * * Main Menu Manager を使用していて、Rowコマンドを好きな場所に配置したい場合、 * 次の形式を使用します。 * * Name: Yanfly.Param.CCCCmdName * Symbol: class * Show: $gameSystem.isShowClass() * Enabled: $gameSystem.isEnableClass() * Ext: * Main Bind: this.commandPersonal.bind(this) * Actor Bind: SceneManager.push(Scene_Class) * * Main Menu Manager のスロットに上記の設定を挿入します。 * 正確な設定を必要な場所にコピーすると、 * すべての命名の使用、有効化、無効化、非表示、 * プラグインパラメータによって行われた効果の表示中にその設定が表示されます。 * * プラグインパラメータから 'Auto Add Menu'をオフにするのを忘れないでください。 * * ============================================================================ * Changelog * ============================================================================ * * Version 1.13: * - Updated for RPG Maker MV version 1.5.0. * * Version 1.12: * - Optimization update. * * Version 1.11: * - Added <Use Nickname> notetag for classes. This will cause the class to use * the actor's nickname instead when listed in the class list. * * Version 1.10: * - Added <Cannot Change Class> notetag for actors and two plugin commands: * EnablePrimaryClassChange and DisablePrimaryClassChange for actors. * - Added 'Auto Add Menu' to plugin parameters. This way, users don't have to * make conflict with it if manually positioning the command with the Main Menu * Manager plugin. * * Version 1.09a: * - Optimization update. * - When switching classes to a globally unlocked class, actors won't unlock * those classes anymore. This is to keep the RemoveClassAll working without * having to manually use RemoveClass for all classes individually. * * Version 1.08: * - Updated for RPG Maker MV version 1.1.0. * * Version 1.07: * - Fixed a bug that carried over a previously changed actor's stats into the * stat comparison window. * * Version 1.06: * - Made an update to the 'Change Actor Images' to give changes to actor * images priority over class images. Setting the 'Change Actor Images' to * (None) will return it back to using class images. * * Version 1.05: * - If using the Skill Learn System and Skill Menu Integration, the * ”Learn Skill” command now carries over to the Skill menu itself to utilize * the integrated system. * * Version 1.04: * - Fixed a bug that would revive dead party members by changing their class. * * Version 1.03: * - Fixed a bug that would duplicate non-independent items. * - Fixed a bug that prevented visual appearances from updating until entering * a new map. * * Version 1.02a: * - Added a failsafe for users to prevent them from attempting to learn skills * from classes that don't exist. * * Version 1.01: * - Fixed an asynch issue with changing class images when moving to another * face graphic that isn't on the same image. * * Version 1.00: * - Finished Plugin! */