スキルコスト拡張 - RX_T_MpTpCostEX.js
シェア用テキスト:
▼スキルコスト拡張(TYPE74RX-T様作) - RX_T_MpTpCostEX.js
https://plugin.fungamemake.com/archives/27411
特殊なスキルコストの設定ができるようになります。 また、この機能を無視してレベルだけを設定することもできます。
ふりがな:すきるこすとかくちょう
機能概要: 特殊なスキルコストの設定ができるようになります。 また、この機能を無視してレベルだけを設定することもできます。
利用規約(ライセンス): MITライセンス
作者:TYPE74RX-T
作者サイト:https://mdc-light.jpn.org/TYPE74RX-T/
ダウンロードページ:https://w.atwiki.jp/type74rx-t/pages/255.html
ファイル名:RX_T_MpTpCostEX.js
プラグインのヘルプ:
//============================================================================= // Plugin_Name : スキルコスト拡張 // File_Name : RX_T_MpTpCostEX.js // Version : 1.00 // Copylight : 2015,2020 TYPE74RX-T //============================================================================= //============================================================================= /*: * @target MV MZ * @plugindesc You will be able to set special skill costs. * @author TYPE74RX-T * @url https://mdc-light.jpn.org/TYPE74RX-T/ * * @param EnemyLevelSetuped * @text Enemy Lv reference method * @desc Enemy level reference system with * level-dependent skill cost * @type select * @default 0 * @option Enemy's notes only * @value 0 * @option Set a new param called "Lv" and see the notes field * @value 1 * @option Lv is already set. See the notes field * @value 2 * @option Set only the level * @value 3 * * @param SystemWord in Notes1 * @text System word * @desc System word to fill in the notes field * @default MpPctCost * * @param SystemWord in Notes2 * @text System word * @desc System word to fill in the notes field * @default HpRestPctMpCost * * @param SystemWord in Notes3 * @text System word * @desc System word to fill in the notes field * @default VarMpCost * * @param SystemWord in Notes4 * @text System word * @desc System word to fill in the notes field * @default StepsMpCost * * @param SystemWord in Notes5 * @text System word * @desc System word to fill in the notes field * @default LvPctMpCost * * @param SystemWord in Notes6 * @text System word * @desc System word to fill in the notes field * @default TpRestPctMpCost * * @param SystemWord in Notes7 * @text System word * @desc System word to fill in the notes field * @default VarTpCost * * @param SystemWord in Notes8 * @text System word * @desc System word to fill in the notes field * @default StepsTpCost * * @param SystemWord in Notes9 * @text System word * @desc System word to fill in the notes field * @default LvPctTpCost * * @param SystemWord in Notes10 * @text System word * @desc System word to fill in the notes field * @default TPBGaugeCost * * @param SystemWord in Notes11 * @text System word * @desc System word to fill in the notes field * @default Lv * * @help Skill Cost Type Expansion * * This plugin is compatible with RPG Maker MV and RPG Maker MZ. * * ◆Summary * You will be able to set special skill costs. * * ◆Usage * 【Configuring Plug-in Parameters】 * ★Enemy Lv reference method * This is basically the only thing you need to set in the plugin parameters. * You don't need to care about the other parameters unless you are willing to * set them yourself. * * ・Enemy's notes only * If the level setting described below is in the notes field, the level only * refers to the notes field. * If you don't set the level parameters in another plugin or if you don't set * the level parameters by yourself, etc., please keep the settings as * they are, i.e., leave them in the default state. * * ・Set a new param called "Lv" and see the notes field * If the level setting described below is in a notes field, the level refers * to the notes field, but a new parameter called "level" is set for the enemy. * This means that you can also use ".level" in the damage calculation formula * for skills used only by enemy characters in the database. * * ・Lv is already set. See the Notes field * The function is almost the same as "Set a new param called "Lv" and see the * notes field" above, but this one is only for those who have already set the * level parameters by another plugin or their own work. * When you select this option, please place this plugin below the relevant * plugin. * * ・Set only the level * It allows you to set only the level without applying the original * functionality of this plugin. * This means that in the database, ".level" can be used in the damage * calculation formula for skills used only by enemies, that's all. * * 【Database Settings】 * Describe everything in the notes section. * * * The set MP cost is a percentage of the user's maximum MP, and if it is set * to 100, the user consumes MP for the maximum MP value. * * or * The percentage of HP remaining is a percentage of the user's maximum MP/TP. * According to the specifications of this plugin, the less HP left, the less * the MP/TP cost will be, and when the HP is full, the MP/TP cost will be * equal to the maximum value of MP/TP. * * or * The value you set for the n-th game variable is the MP/TP cost. * You can create skills that allow you to fluctuate your MP/TP cost in events. * However, the TP cost is limited to a maximum of 100. * * or * The MP/TP cost will be the "number of steps" divided by the "set MP/TP * cost". * However, if you want your enemies to use it, it will remain at the MP/TP * you set, as it has no concept of steps. * Also, due to the specifications calculated by the above formula, if you set * the MP/TP cost to 0, the cost of that skill will be zero. * This is to prevent the number of steps from being divided by 0. * However, the TP cost is limited to a maximum of 100. * * or * The MP/TP cost is calculated by multiplying the User's Level by the * MP/TP cost you set. * If you do not have an enemy's level set, the MP/TP consumption of an enemy * will be 0 when used. * However, the TP cost is limited to a maximum of 100. * * * Sets the level of the enemy. * If you don't have a level-dependent consumption-based skill set, you don't * need to set it. * * * This setting is for MZ's TPB mode only. It can also be applied to items. * The value of n is a percentage. This consumes a set percentage. * The less this value is, the less time it takes for the next turn to arrive. * * ◆License * This plugin is released under MIT license. * http://opensource.org/licenses/mit-license.php */ /*:ja * @target MV MZ * @plugindesc 特殊なスキルコストの設定ができるようになります。 * @author TYPE74RX-T * @url https://mdc-light.jpn.org/TYPE74RX-T/ * * @param EnemyLevelSetuped * @text 敵キャラのレベル参照 * @desc レベル依存のスキルコストで * 敵キャラのレベルをどう参照するか * @type select * @default 0 * @option 敵キャラのメモ欄のみ * @value 0 * @option レベルを設定し、メモ欄参照 * @value 1 * @option 既にレベルを設定済み・メモ欄参照 * @value 2 * @option レベルだけを設定する。メモ欄は参照。 * @value 3 * * @param SystemWord in Notes1 * @text システムワード * @desc メモ欄に記入するシステムワード * @default MP割合消費 * * @param SystemWord in Notes2 * @text システムワード * @desc メモ欄に記入するシステムワード * @default MPHP残量割合消費 * * @param SystemWord in Notes3 * @text システムワード * @desc メモ欄に記入するシステムワード * @default MP変数消費 * * @param SystemWord in Notes4 * @text システムワード * @desc メモ欄に記入するシステムワード * @default MP歩数消費 * * @param SystemWord in Notes5 * @text システムワード * @desc メモ欄に記入するシステムワード * @default MPLV依存消費 * * @param SystemWord in Notes6 * @text システムワード * @desc メモ欄に記入するシステムワード * @default TPHP残量割合消費 * * @param SystemWord in Notes7 * @text システムワード * @desc メモ欄に記入するシステムワード * @default TP変数消費 * * @param SystemWord in Notes8 * @text システムワード * @desc メモ欄に記入するシステムワード * @default TP歩数消費 * * @param SystemWord in Notes9 * @text システムワード * @desc メモ欄に記入するシステムワード * @default TPLV依存消費 * * @param SystemWord in Notes10 * @text システムワード * @desc メモ欄に記入するシステムワード * @default 消費TPB * * @param SystemWord in Notes11 * @text システムワード * @desc メモ欄に記入するシステムワード * @default Lv * * @help スキルコスト拡張 * * このプラグインはRPGツクールMV、RPGツクールMZに対応しています。 * * ◆概要 * 特殊なスキルコストの設定ができるようになります。 * * ◆使い方 * 【プラグインパラメータの設定】 * ★敵キャラのレベル参照 * プラグインパラメータで設定する必要があるのは基本的にここだけです。 * 他のパラメータは自分で設定したい場合以外気にする必要はありません。 * * ・敵キャラのメモ欄のみ * 後述するレベル設定がメモ欄にされている場合 * レベルはメモ欄を参照するだけです。 * 別のプラグイン、もしくは自作等でレベルのパラメータを設定しない場合は * 設定はデフォルトである、この状態のままにしてください。 * * ・レベルを設定し、メモ欄参照 * 後述するレベル設定がメモ欄にされている場合、レベルはメモ欄を参照しますが * 敵キャラにパラメータとしてレベルが新たに設定されます。 * つまり、データベースで敵キャラだけが使うスキルのダメージ計算式にも * 「.level」が使えるようになります。 * * ・既にレベルを設定済み・メモ欄参照 * 上記「レベルを設定し、メモ欄参照」と機能はほぼ同じですが * こちらは別のプラグイン、もしくは自作等でレベルのパラメータを * 既に設定済みの方専用の設定です。 * 該当のプラグインより下に本プラグインを配置した上で * こちらを選択してください。 * * ・レベル設定のみ * 本プラグイン本来の機能を適用せず、レベルだけを設定できるようにします。 * つまり、データベースで敵キャラだけが使うスキルのダメージ計算式にも * 「.level」が使えるようになるだけの機能です。 * * 【データベースでの設定】 * すべてメモ欄に記述します。 * * * 最大MPの設定した消費MP%分、MPを消費します。 * * もしくは * HPの残量の割合に応じて消費MP/TPが決まります。 * 本プラグインの仕様ですと、残りHPが少ないほど、消費MP/TPが少なくなります。 * * もしくは * 消費MP/TPがn番の変数に設定した数になります。 * イベントで消費MP/TPを自由に変動させるスキルを作れます(※)。 * * もしくは * 消費MP/TPが「歩数÷設定した消費MP/TP」になります(※)。 * 敵キャラに使わせる場合は、歩数の概念がないため * 設定した消費MP/TPのままになります。 * また、上記の計算式で算出される仕様上、消費TP/MPを0に設定すると * 0での割り算を阻止するため、そのスキルのコストは0になります。 * * もしくは * 消費MP/TPが「使用者のレベル×設定した消費MP/TP」になります(※)。 * 敵キャラのレベル設定をしていない場合、敵キャラが使った場合の消費MP/TPは * 0になります。 * * ※:消費TPは最大でも100までとなります。 * * * 敵キャラのレベルを設定します。 * LV依存消費系のスキルを設定しない場合は設定不要です。 * * * こちらはMZのTPBモード専用の設定です。また、アイテムにも適用可能です。 * nの値はパーセンテージです。設定したパーセンテージだけ消費します。 * 少ない数字ほど、次にターンが来るまでの時間が短くなります。 * * ◆ライセンス * このプラグインはMITライセンスで公開されています。 * http://opensource.org/licenses/mit-license.php */