(要 YEP_SkillCore.js)パーティー全体のスキルリソースは、ユニットの全メンバーからアクセス可能にするプラグイン – YEP_X_PartyLimitGauge.js

タイトル
(Requires YEP_SkillCore.js) A party-wide skillresource is accessible across all members of a unit.
作者名
ヘルプ
============================================================================
Introduction
============================================================================

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

This plugin enables a Party Limit Gauge for both the player party and the
enemy party. These gauges will fill up or decrease depending on what actions
take place. The amounts they raise can be adjusted within the plugin's
parameters to your liking. Once a party has enough of the Party Limit Gauge,
members from that party can use it as a skill resource to unleash powerful
actions in battle!

============================================================================
Instructions - Limit Gain
============================================================================

There are various ways for the Party Limit Gauge to raise. The settings are
adjusted in the plugin parameters but here will be a detailed explanation of
what each parameter does:

Reset Gauge
- If set to true, then the Party Limit Gauge will empty out at the start
of each battle. If set to false, the Party Limit Gauge will carry to each
battle for the player party. The enemy party will always empty out.

Battle Start
- This determines how much of the Party Limit Gauge will be gained when a
new battle has been started.

Take HP Damage
- This is how much the Party Limit Gauge will increase when an ally takes
HP damage dealt by the opposing team.

Deal HP Damage
- This is how much the Party Limit Gauge will increase when an ally deals
HP damage to the opposing team.

Heal HP Damage
- This is how much the Party Limit Gauge will increase whenever an ally
receives HP healing through actions. Healing done through trait effects
will not apply here.

Take MP Damage
- This is how much the Party Limit Gauge will increase when an ally takes
MP damage dealt by the opposing team.

Deal MP Damage
- This is how much the Party Limit Gauge will increase when an ally deals
MP damage to the opposing team.

Heal MP Damage
- This is how much the Party Limit Gauge will increase whenever an ally
receives MP healing through actions. Healing done through trait effects
will not apply here.

Gain State
- This is how much the Party Limit Gauge will increase whenever an ally
receives a non-death state from the opposing team.

Deal State
- This is how much the Party Limit Gauge will increase whenever an ally
inflicts a non-death state to the opposing team.

Killed Ally
- This is how much the Party Limit Gauge will increase whenever an ally
dies in battle.

Killed Foe
- This is how much the Party Limit Gauge will increase whenever a foe
dies in battle.

Win Battle
- This is how much the Party Limit Gauge will increase for the player's
party when the player wins a battle.

Flee Battle
- This is how much the Party Limit Gauge will increase for the player's
party when the player escapes a battle.

Lose Battle
- This is how much the Party Limit Gauge will increase for the player's
party when the player loses a battle.

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

You can use these notetags to adjust the Party Limit Gauge aspects.

Skill Notetags:

<Party Limit Cost: x>
Adds a Party Limit Gauge cost to this skill. This skill will require x
increments of the Party Limit Gauge to be able to use it.

<Party Limit Cost: x%>
Adds a party Limit Gauge cost to this skill equal to x% of the total max
gauge size of the battler's party max limit gauge size. The cost is always
rounded upward.

Skill and Item Notetags:

<Ally Party Limit Gauge: +x>
<Ally Party Limit Gauge: -x>
Using this skill will cause the user's party limit gauge to increase or
decrease by x. This is the point value cost and not the increment value.

<Foe Party Limit Gauge: +x>
<Foe Party Limit Gauge: -x>
Using this skill will cause the foe's party limit gauge to increase or
decrease by x. This is the point value cost and not the increment value.

Actor and Enemy Notetag:

<Party Limit: x>
Increases the Party Limit Gauge by x when this party member is present in
battle (dead or alive). If this notetag isn't used, the value will default
to the settings in the plugin parameters.

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

<Party Limit: +x>
<Party Limit: -x>
Increases or decreases the Party Limit Gauge by x if the related unit has
is that actor, class, enemy, or has the weapon or armor equipped, or is
affected by that state.

<Party Limit Cost: x%>
Sets the party limit costs paid by this actor to x%. The modifications are
are multiplicative. The final cost is always rounded upward.

============================================================================
Lunatic Mode - Custom Party Limit Changes
============================================================================

For those with JavaScript experience, you can implement conditional costs
for the Party Limit costs of skills, how much is gained or lost for user
and/or target(s).

Skill Notetags:

<Custom Party Limit Cost>
cost = user.friendsUnit().members().length;
</Custom Party Limit Cost>
The 'cost' variable will reference the original cost of the skill, and can
be modified to add more or less than original amount. The cost value will
be the finalized amount for the skill but rounded upward if the cost is a
decimal value. This is the increment cost.

<Custom Ally Party Limit Gauge>
value += user.level;
</Custom Ally Party Limit Gauge>
The 'value' variable determines how much of the gauge will be added to the
user's Party Limit Gauge. This is not an increment value but the raw value
added to the amount.

<Custom Foe Party Limit Gauge>
value -= target.level;
</Custom Foe Party Limit Gauge>
The 'value' variable determines how much of the gauge will be added to the
target's Party Limit Gauge. This is not an increment value but the raw
value added to the amount.

============================================================================
Lunatic Mode - New JavaScript Functions
============================================================================

Those using JavaScript functions can make some use out of some new functions
added with this plugin. Whenever the word "unit" appears, replace it with
either $gameParty or $gameTroop depending on which you want to affect.

unit.partyLimitGauge()
- Returns the raw value of the unit's Party Limit Gauge.

unit.partyLimitGaugeMax()
- Returns the raw maximum cap of the Party Limit Gauge.

unit.setPartyLimitGauge(x)
- Sets the raw value of the Party Limit Gauge to x for that unit.

unit.gainPartyLimitGauge(x)
- Causes the unit to gain x Party Limit Gauge in raw value.

unit.losePartyLimitGauge(x)
- Causes the unit to lose x Party Limit Gauge in raw value.

unit.partyLimitGaugeCurrent()
- Returns the unit's number of usable increments of the Party Limit Gauge.

unit.partyLimitGaugeIncrements()
- Returns the unit's number of max increments of the Party Limit Gauge.

unit.setPartyLimitGaugeIncrement(x)
- Sets the unit's Party Limit Gauge to exactly x increments.

unit.gainPartyLimitGaugeIncrement(x)
- Causes the unit to gain exactly x increments of the Party Limit Gauge.

unit.losePartyLimitGaugeIncrement(x)
- Causes the unit to lose exactly x increments of the Party Limit Gauge.

============================================================================
Plugin Commands
============================================================================

You can use plugin commands inside events to alter the amount of Party Limit
Gauge the player's party or enemy party has.

Plugin Command

SetPartyLimitGaugeValue x
SetTroopLimitGaugeValue x
- Sets the player party's or enemy party's raw Party Limit Gauge
value to x.

GainPartyLimitGaugeValue x
GainTroopLimitGaugeValue x
- The player party's or enemy party's raw Party Limit Gauge gains
x value.

LosePartyLimitGaugeValue x
LoseTroopLimitGaugeValue x
- The player party's or enemy party's raw Party Limit Gauge gains
x value.

SetPartyLimitGaugeIncrement x
SetTroopLimitGaugeIncrement x
- Sets the player party's or enemy party's Party Limit Gauge value
to x increments.

GainPartyLimitGaugeIncrement x
GainTroopLimitGaugeIncrement x
- The player party's or enemy party's Party Limit Gauge gains
x increments.

LosePartyLimitGaugeIncrement x
LoseTroopLimitGaugeIncrement x
- The player party's or enemy party's Party Limit Gauge gains
x increments.

ShowPartyLimitGauge
HidePartyLimitGauge
ShowTroopLimitGauge
HideTroopLimitGauge
- Shows or hides the Party/Troop Limit Gauge.

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

Version 1.07:
- Fixed a bug that didn't apply the 'Party Max Bonus' parameter properly.

Version 1.06:
- Fixed a bug that caused some of the Plugin Commands to not work properly.

Version 1.05:
- Fixed a bug that caused the enemy troops to have the same settings as the
player team.

Version 1.04:
- Updated for RPG Maker MV version 1.1.0.

Version 1.03:
- Fixed a bug with some damage formulas being unable to use 'user'.

Version 1.02a:
- Fixed a bug that caused certain notetags to crash the game.
- Battle Engine Core's 'Hide Battle HUD' will now hide the Party Limit Gauge
as well.

Version 1.01:
- Added 'ShowPartyLimitGauge', 'HidePartyLimitGauge', 'ShowTroopLimitGauge',
'HideTroopLimitGauge' Plugin Commands to hide/show the Party Limit Gauges
while midgame.

Version 1.00:
- Finished Plugin!
パラメータ
param ---General---
default
param Gauge Increments
desc How much is each gauge increment?
default 100

param Party Text Size
desc Text size used for the Party Gauge.
Default: 28
default 28

param Draw Cost Icon
desc Draw the cost icon for Party Limit costs?
NO - false YES - true
default true

param Cost Color
desc The text color used for Party Limit costs.
default 6

param Cost Format
desc The text format used for Party Limit costs.
%1 - Cost %2 - Current %3 - Max
default %1

param Cost Font Size
desc The text font size used for Party Limit costs.
Default: 28
default 20

param ---Party---
default
param Show Party Gauge
desc Show the player's party gauge in battle?
NO - false YES - true
default true

param Per Party Member
desc Amount of Party Limit Gauge Max granted per party member.
This is a formula.
default 100

param Party Max Bonus
desc This is a maximum bonus added independent of party size.
This is a formula.
default 0

param Party Gauge X
desc Formula for the gauge x position for the player party.
default Graphics.boxWidth - width - 4

param Party Gauge Y
desc Formula for the gauge y position for the player party.
default Graphics.boxHeight - statusHeight - height - 4

param Party Width
desc Formula for the gauge width for the player party.
default max.clamp(100, 400)

param Party Gauge Color 1
desc Color 1 used for the Party Limit Gauge.
default 14

param Party Gauge Color 2
desc Color 2 used for the Party Limit Gauge.
default 6

param Party Gauge Icon
desc Icon used for the player party.
default 310

param Party Icon Align
desc Where do you want the icon to be aligned?
left center right
default right

param Party Text Buffer X
desc How much do you want to buffer the text X by?
default 0

param Party Text Buffer Y
desc How much do you want to buffer the text Y by?
default 8

param ---Troop---
default
param Show Troop Gauge
desc Show the enemy's party gauge in battle?
NO - false YES - true
default true

param Per Troop Member
desc Amount of Party Limit Gauge Max granted per enemy member.
This is a formula.
default 100

param Troop Max Bonus
desc This is a maximum bonus added independent of troop size.
This is a formula.
default 0

param Troop Gauge X
desc Formula for the gauge x position for the enemy party.
default 4

param Troop Gauge Y
desc Formula for the gauge y position for the enemy party.
default Graphics.boxHeight - statusHeight - height - 4

param Troop Width
desc Formula for the gauge width for the enemy party.
default max.clamp(100, 400)

param Troop Gauge Color 1
desc Color 1 used for the Party Limit Gauge.
default 10

param Troop Gauge Color 2
desc Color 2 used for the Party Limit Gauge.
default 2

param Troop Gauge Icon
desc Icon used for the player party.
default 309

param Troop Icon Align
desc Where do you want the icon to be aligned?
left center right
default left

param Troop Text Buffer X
desc How much do you want to buffer the text X by?
default 0

param Troop Text Buffer Y
desc How much do you want to buffer the text Y by?
default 8

param ---Limit Gain---
default
param Reset Gauge
desc Reset the Party Limit Gauge each battle?
NO - false YES - true
default false

param Battle Start
desc Formula for how much Party Limit Gauge is gained
at the start of each battle.
default 0

param Take HP Damage
desc Formula for how much Party Limit Gauge is gained
whenever a party member takes HP damage.
default Math.floor(25damage / user.mhp).clamp(10, 25)

param Deal HP Damage
desc Formula for how much Party Limit Gauge is gained
whenever a party member deals HP damage.
default Math.floor(10damage / target.mhp).clamp(5, 10)

param Heal HP Damage
desc Formula for how much Party Limit Gauge is gained
whenever a party member heals HP.
default Math.floor(-5damage / target.mhp).clamp(3, 5)

param Take MP Damage
desc Formula for how much Party Limit Gauge is gained
whenever a party member takes MP damage.
default Math.floor(25damage / user.mmp).clamp(10, 25)

param Deal MP Damage
desc Formula for how much Party Limit Gauge is gained
whenever a party member deals MP damage.
default Math.floor(10damage / target.mmp).clamp(5, 10)

param Heal MP Damage
desc Formula for how much Party Limit Gauge is gained
whenever a party member heals MP.
default Math.floor(-5damage / target.mmp).clamp(3, 5)

param Gain State
desc Formula for how much Party Limit Gauge is gained
whenever a party member receives a state from a foe.
default 5

param Deal State
desc Formula for how much Party Limit Gauge is gained
whenever a party member inflicts a state on a foe.
default 3

param Killed Ally
desc Formula for how much Party Limit Gauge is gained
whenever a party member is killed.
default 50

param Killed Foe
desc Formula for how much Party Limit Gauge is gained
whenever a foe is killed.
default 5

param Win Battle
desc Formula for how much Party Limit Gauge is gained
whenever the player party wins the battle.
default 10

param Flee Battle
desc Formula for how much Party Limit Gauge is gained
whenever the player party flees the battle.
default -100

param Lose Battle
desc Formula for how much Party Limit Gauge is gained
whenever the player party loses the battle.
default -1000

ライセンス表記
This plugin enables a Party Limit Gauge for both the player party and the
parameters to your liking. Once a party has enough of the Party Limit Gauge,
Instructions - Limit Gain
There are various ways for the Party Limit Gauge to raise. The settings are
- If set to true, then the Party Limit Gauge will empty out at the start
of each battle. If set to false, the Party Limit Gauge will carry to each
- This determines how much of the Party Limit Gauge will be gained when a
- This is how much the Party Limit Gauge will increase when an ally takes
- This is how much the Party Limit Gauge will increase when an ally deals
- This is how much the Party Limit Gauge will increase whenever an ally
- This is how much the Party Limit Gauge will increase when an ally takes
- This is how much the Party Limit Gauge will increase when an ally deals
- This is how much the Party Limit Gauge will increase whenever an ally
- This is how much the Party Limit Gauge will increase whenever an ally
- This is how much the Party Limit Gauge will increase whenever an ally
- This is how much the Party Limit Gauge will increase whenever an ally
- This is how much the Party Limit Gauge will increase whenever a foe
- This is how much the Party Limit Gauge will increase for the player's
- This is how much the Party Limit Gauge will increase for the player's
- This is how much the Party Limit Gauge will increase for the player's
You can use these notetags to adjust the Party Limit Gauge aspects.
<Party Limit Cost: x>
Adds a Party Limit Gauge cost to this skill. This skill will require x
increments of the Party Limit Gauge to be able to use it.
<Party Limit Cost: x%>
Adds a party Limit Gauge cost to this skill equal to x% of the total max
gauge size of the battler's party max limit gauge size. The cost is always
<Ally Party Limit Gauge: +x>
<Ally Party Limit Gauge: -x>
Using this skill will cause the user's party limit gauge to increase or
<Foe Party Limit Gauge: +x>
<Foe Party Limit Gauge: -x>
Using this skill will cause the foe's party limit gauge to increase or
<Party Limit: x>
Increases the Party Limit Gauge by x when this party member is present in
<Party Limit: +x>
<Party Limit: -x>
Increases or decreases the Party Limit Gauge by x if the related unit has
<Party Limit Cost: x%>
Sets the party limit costs paid by this actor to x%. The modifications are
Lunatic Mode - Custom Party Limit Changes
for the Party Limit costs of skills, how much is gained or lost for user
<Custom Party Limit Cost>
</Custom Party Limit Cost>
<Custom Ally Party Limit Gauge>
</Custom Ally Party Limit Gauge>
user's Party Limit Gauge. This is not an increment value but the raw value
<Custom Foe Party Limit Gauge>
</Custom Foe Party Limit Gauge>
target's Party Limit Gauge. This is not an increment value but the raw
unit.partyLimitGauge()
- Returns the raw value of the unit's Party Limit Gauge.
unit.partyLimitGaugeMax()
- Returns the raw maximum cap of the Party Limit Gauge.
unit.setPartyLimitGauge(x)
- Sets the raw value of the Party Limit Gauge to x for that unit.
unit.gainPartyLimitGauge(x)
- Causes the unit to gain x Party Limit Gauge in raw value.
unit.losePartyLimitGauge(x)
- Causes the unit to lose x Party Limit Gauge in raw value.
unit.partyLimitGaugeCurrent()
- Returns the unit's number of usable increments of the Party Limit Gauge.
unit.partyLimitGaugeIncrements()
- Returns the unit's number of max increments of the Party Limit Gauge.
unit.setPartyLimitGaugeIncrement(x)
- Sets the unit's Party Limit Gauge to exactly x increments.
unit.gainPartyLimitGaugeIncrement(x)
- Causes the unit to gain exactly x increments of the Party Limit Gauge.
unit.losePartyLimitGaugeIncrement(x)
- Causes the unit to lose exactly x increments of the Party Limit Gauge.
You can use plugin commands inside events to alter the amount of Party Limit
SetPartyLimitGaugeValue x
SetTroopLimitGaugeValue x
- Sets the player party's or enemy party's raw Party Limit Gauge
GainPartyLimitGaugeValue x
GainTroopLimitGaugeValue x
- The player party's or enemy party's raw Party Limit Gauge gains
LosePartyLimitGaugeValue x
LoseTroopLimitGaugeValue x
- The player party's or enemy party's raw Party Limit Gauge gains
SetPartyLimitGaugeIncrement x
SetTroopLimitGaugeIncrement x
- Sets the player party's or enemy party's Party Limit Gauge value
GainPartyLimitGaugeIncrement x
GainTroopLimitGaugeIncrement x
- The player party's or enemy party's Party Limit Gauge gains
LosePartyLimitGaugeIncrement x
LoseTroopLimitGaugeIncrement x
- The player party's or enemy party's Party Limit Gauge gains
ShowPartyLimitGauge
HidePartyLimitGauge
ShowTroopLimitGauge
HideTroopLimitGauge
- Shows or hides the Party/Troop Limit Gauge.
- Battle Engine Core's 'Hide Battle HUD' will now hide the Party Limit Gauge
- Added 'ShowPartyLimitGauge', 'HidePartyLimitGauge', 'ShowTroopLimitGauge',
'HideTroopLimitGauge' Plugin Commands to hide/show the Party Limit Gauges
Yanfly Engine Plugins - Skill Core Extension - Party Limit Gauge
YEP_X_PartyLimitGauge.js
Window_PartyLimitGauge

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