(要 YEP_SkillCore.js)特定のスキルを戦闘で使用可能回数を限定するプラグイン – YEP_X_LimitedSkillUses.js

タイトル
(Requires YEP_SkillCore.js) Make certain skills havea limited amount of times they can be used in battle.
作者名
ヘルプ
============================================================================
Introduction
============================================================================

This plugin requires YEP_SkillCore.
Make sure this plugin is located under YEP_SkillCore in the plugin list.

This plugin enables you to set a limited amount of times certain skills (or
all skills) can be used per battle or ever. This adds a different type of
skill currency and balance mechanic in limiting the amount of times a skill
can be used without directly having to alter MP, TP, or the like.

============================================================================
Notetags
============================================================================

You can use these notetags to govern the various Limited Uses aspects of
your skills.

Skill Notetags:

<Unlimited Use>
If you've enabled 'Limit All Skills' in the plugin parameters, this will
forcefully make the skill unlimited use. If you use this notetag, it will
override any of the Limited Use settings.

<Limit Uses: x>
This will set the number of times the skill can be used to x. If the skill
has 0 charges left, the skill cannot be used.

<Recover All Uses>
<Not Recover All Uses>
When using the recover all command, depending on the settings within the
plugin parameters, all limited use charges are recovered or not. These
notetags will enable you to utilize the other setting for the skill.

<Victory Uses Recover: x>
<Escape uses Recover: x>
<Lose Uses Recover: x>
When the player wins a battle, escapes a battle, or loses a battle, the
skill use will recover x amount of uses for the respective outcome. If the
notetags aren't used, the amounts restored will be equal to settings made
in the plugin's parameters.

<After Battle Uses Recover: x>
This will set the recovery rate of victory, escape, or loss of battle to
be equal to x indiscriminately.

Skill and Item Notetags:

<Global Limited Uses: +x>
<Global Limited Uses: -x>
This will change the target's limited uses by +x or -x for all skills.
+x will increase the amount of times the skills can be used. -x will
decrease the amount of times the skills can be used.

<SType x Limited Uses: +y>
<SType x Limited Uses: -y>
This will change the target's limited uses by +y or -y for all skills of
the skill type x. +y will increase the amount of times the skills can be
used. -y will decrease the amount of times the skills can be used.

<Skill x Limited Uses: +y>
<Skill x Limited Uses: -y>
<Skill name Limited Uses: +y>
<Skill name Limited Uses: -y>
This will change the target's limited uses by +y or -y for skill x. If
you use the named notetag varient and have multiple skills in the database
with the same name, priority will be given to the skill with the highest
ID. +y will increase the amount of times the skills can be used. -y will
decrease the amount of times the skills can be used.

Actor, Class, Enemy, Weapon, Armor, and State Notetags:

<Global Use Max: +x>
<Global Use Max: -x>
A battler affected by this property will have any Limited Use skills alter
the maximum times used by +x or -x.

<SType x Use Max: +y>
<SType x Use Max: -y>
A battler affected by this property will have Limited Use skills from
skill type x alter the maximum times used by +y or -y.

<Skill x Use Max: +y>
<Skill x Use Max: -y>
<Skill name Use Max: +y>
<Skill name Use Max: -y>
A battler affected by this property will have Limited Use for skill x (or
named if you're using that version of the notetag instead) alter the
maximum times used by +y or -y. If you are using the named version of the
notetag and have multiple skills in the database with the same name, then
priority will be given to the skill with the highest ID.

============================================================================
Lunatic Mode - Altering Target's Limited Uses
============================================================================

For those with JavaScript proficiency, you can use the following notetags to
perform conditional changes to the target's Limited Uses.

Skill and Item Notetags:

--- --- ---

<Custom Global Limited Uses>
value += user.level;
</Custom Global Limited Uses>
The 'value' variable is the number of uses the user will gain for all
Limited Use skills.

--- --- ---

<Custom SType x Limited Uses>
value += user.level;
</Custom SType x Limited Uses>
The 'value' variable is the number of uses the user will gain for all
Limited Use skills of skill type x.

--- --- ---

<Custom Skill x Limited Uses>
value += user.level;
</Custom Skill x Limited Uses>

or

<Custom Skill name Limited Uses>
value += user.level;
</Custom Skill name Limited Uses>

The 'value' variable is the number of uses the user will gain for all
Limited Use skills of skill x. If you are using the named version of the
notetag and you have multiple skills in your database with the same name,
priority will be given to the skill with the highest ID.

--- --- ---

============================================================================
Lunatic Mode - Conditional Max Uses
============================================================================

For those with JavaScript proficiency, you can use the following notetags to
perform conditional changes to the target's Limited Use Maximums.

Actor, Class, Enemy, Weapon, Armor, State Notetags:

--- --- ---

<Custom Global Use Max>
value += user.level;
</Custom Global Use Max>
The 'value' variable is the maximum uses the target will gain for all
Limited Use skills.

--- --- ---

<Custom SType x Use Max>
value += user.level;
</Custom SType x Use Max>
The 'value' variable is the maximum uses the target will gain for all
Limited Use skills of skill type x.

--- --- ---

<Custom Skill x Use Max>
value += user.level;
</Custom Skill x Use Max>

or

<Custom Skill name Use Max>
value += user.level;
</Custom Skill name Use Max>

The 'value' variable is the maximum uses the target will gain for all
Limited Use skills of skill x. If you are using the named version of the
notetag and you have multiple skills in your database with the same name,
priority will be given to the skill with the highest ID.

--- --- ---

Note: Keep in mind that none of the adjustments here will bypass the
'Absolute Max' setting in the plugin parameters. That is the ceiling.

============================================================================
Changelog
============================================================================

Version 1.02a:
- Updated for RPG Maker MV version 1.1.0.
- Fixed notetag category in documentation for Lunatic Mode - Conditional Max
Uses. Updated from Skill and Items to Actor, Class, Enemy, Weapon, Armor,
and State Notetags.

Version 1.01a:
- Optimization Update.
- Various functions in the skill window will now return their x positions.

Version 1.00:
- Finished Plugin!
パラメータ
param ---General---
default
param Limited Use Icon
desc The icon used for limited uses. Set 0 to hide.
default 160

param Font Size
desc Font size used for limited uses.
Default: 28
default 20

param Text Color
desc The text color used for limited uses.
default 0

param Cost Format
desc The text format for limited uses. Leave empty to hide.
%1 - Current %2 - Maximum
default %1/%2

param Empty Icon
desc The icon used for empty limited uses. Set 0 to hide.
default 168

param Empty Text
desc The text displayed when a skill's uses are used up.
default Empty

param Absolute Max
desc This is the absolute maximum value Limited Uses can
go up to and cannot go past.
default 100

param Bypass Limits
desc This is a list of skills that cannot be limited.
Separate each skill ID with a space.
default 1 2 3 4 5 6 7

param ---Defaults---
default
param Limit All Skills
desc Give limits to all skills by default?
NO - false YES - true
default false

param Limit Charges
desc The default amount of limit charges for skills.
default 2

param Recover All
desc Restore all charges when using Recover All event?
NO - false YES - true
default true

param Victory Recover
desc How many uses are recovered after winning a battle.
default 10

param Escape Recover
desc How many uses are recovered after escaping a battle.
default 5

param Lose Recover
desc How many uses are recovered after losing a battle.
default 5

ライセンス表記
This plugin enables you to set a limited amount of times certain skills (or
skill currency and balance mechanic in limiting the amount of times a skill
You can use these notetags to govern the various Limited Uses aspects of
<Unlimited Use>
If you've enabled 'Limit All Skills' in the plugin parameters, this will
forcefully make the skill unlimited use. If you use this notetag, it will
override any of the Limited Use settings.
<Limit Uses: x>
plugin parameters, all limited use charges are recovered or not. These
<Global Limited Uses: +x>
<Global Limited Uses: -x>
This will change the target's limited uses by +x or -x for all skills.
<SType x Limited Uses: +y>
<SType x Limited Uses: -y>
This will change the target's limited uses by +y or -y for all skills of
<Skill x Limited Uses: +y>
<Skill x Limited Uses: -y>
<Skill name Limited Uses: +y>
<Skill name Limited Uses: -y>
This will change the target's limited uses by +y or -y for skill x. If
A battler affected by this property will have any Limited Use skills alter
A battler affected by this property will have Limited Use skills from
A battler affected by this property will have Limited Use for skill x (or
Lunatic Mode - Altering Target's Limited Uses
perform conditional changes to the target's Limited Uses.
<Custom Global Limited Uses>
</Custom Global Limited Uses>
Limited Use skills.
<Custom SType x Limited Uses>
</Custom SType x Limited Uses>
Limited Use skills of skill type x.
<Custom Skill x Limited Uses>
</Custom Skill x Limited Uses>
<Custom Skill name Limited Uses>
</Custom Skill name Limited Uses>
Limited Use skills of skill x. If you are using the named version of the
perform conditional changes to the target's Limited Use Maximums.
Limited Use skills.
Limited Use skills of skill type x.
Limited Use skills of skill x. If you are using the named version of the
Yanfly Engine Plugins - Skill Core Extension - Limited Skill Uses
YEP_X_LimitedSkillUses.js

紹介ページ https://github.com/suppayami/yami-engine-delta/blob/master/demo/js/plugins/YEP_X_LimitedSkillUses.js