デフォルトの制限からターゲットの範囲を拡大して、ターゲットの制御を改善するプラグイン – YEP_TargetCore.js
- タイトル
- a Expand the target scope from RPG Maker's defaultlimitations for better target control.
- 作者名
- Yanfly Engine Plugins様
- ヘルプ
- ============================================================================
Introduction
============================================================================
While this plugin works independent of YEP_BattleEngineCore.js, if you want
to utilize extra effects, place this plugin beneath YEP_BattleEngineCore.js
in the Plugin Manager list.
The Target Core plugin is made to expand upon the existing target scopes
provided by RPG Maker MV. This plugin enables you to use more target scopes,
with a larger variety of ways to target actors and enemies with bonus ways
to choose targets combined with the Row Formation plugin.
============================================================================
Notetags
============================================================================
If you would like to utilize custom target scopes for your skills and items,
you can use these notetags:
Skill and Item Notetags:
<Repeat: x>
This determines the number of times an action is repeatedly used on each
target. This can go beyond the default editor's limit of 9.
<Target: Everybody>
This targets all alive opponent and friendly members with the user being
the very last target.
<Target: x Random Any>
This adds x random alive opponents and/or allies.
<Target: Target All Foes>
This targets a single foe and then adds all alive opponent members.
<Target: Target x Random Foes>
This targets a single foe and then adds x random alive opponent members.
<Target: x Random Foes>
This adds x random alive opponent members. This can go beyond the editor's
default limit of 4 randomf oes.
<Target: All Allies But User>
This will target all friendly alive members except for the user.
<Target: Target All Allies>
This will target a single ally and then adds all alive friendly members.
<Target: Target x Random Allies>
This will target a single ally and then adds x random alive allies.
<Target: x Random Allies>
This adds x random alive allied members.
<Target: Everybody param Multiple Of x>
Replace 'param' with 'level', 'maxhp', 'maxmp', 'atk', 'def', 'mat',
'mdf', 'agi', 'luk', 'hp', 'mp', or 'tp'. This will make the skill or item
indiscriminately target any living battler on the battlefield whose
parameter value is a multiple of x.
NOTE: If you are using 'level', make sure you have YEP_EnemyLevels.js.
<Target: Allies param Multiple Of x>
Replace 'param' with 'level', 'maxhp', 'maxmp', 'atk', 'def', 'mat',
'mdf', 'agi', 'luk', 'hp', 'mp', or 'tp'. This will make the skill or item
target any living allied party member on the battlefield whose parameter
value is a multiple of x.
NOTE: If you are using 'level', make sure you have YEP_EnemyLevels.js.
<Target: Foes param Multiple Of x>
Replace 'param' with 'level', 'maxhp', 'maxmp', 'atk', 'def', 'mat',
'mdf', 'agi', 'luk', 'hp', 'mp', or 'tp'. This will make the skill or item
target any living enemy battler on the battlefield whose parameter value
is a multiple of x.
NOTE: If you are using 'level', make sure you have YEP_EnemyLevels.js.
--- YEP_RowFormation.js and YEP_BattleEngineCore.js Required ---
<Target: Enemy Row>
This will target the enemy row equal to that of the currently selected
target enemy. The entire row will be selected as a whole.
<Target: Enemy Row x>
This will target specifically the enemy row x for the enemy unit. The
entire row will be selected as a whole.
<Target: Front Enemy Row>
This will target the front-most enemy row with alive members. If there is
a row without any alive members, this will target the next row with an
alive member.
<Target: Back Enemy Row>
This will target the back-most enemy row with alive members. If there is
a row without any alive members, this will target the next row with an
alive member.
<Target: Ally Row>
This will target the enemy row equal to that of the currently selected
target enemy. The entire row will be selected as a whole.
<Target: Ally Row x>
This will target specifically the allied row x for the allied unit. The
entire row will be selected as a whole.
<Target: Front Ally Row>
This will target the front-most ally row with alive members. If there is
a row without any alive members, this will target the next row with an
alive member.
<Target: Back Ally Row>
This will target the back-most ally row with alive members. If there is
a row without any alive members, this will target the next row with an
alive member.
============================================================================
Lunatic Mode - Custom Target Help Text
============================================================================
For users that are proficient with JavaScript, these notetags can be used to
provide custom help window text if you are also the Battle Engine Core.
Skill and Item Notetags:
<Custom Target Text>
text = $gameActors.actor(1).name();
text += ' and ' + $gameActors.actor(2).name();
</Custom Target Text>
The 'text' variable is the text that will appear in the help window. Any
changes made to it will be what is visibly displayed.
============================================================================
Lunatic Mode - Custom Target Eval
============================================================================
For users that are proficient with JavaScript, these notetags can be used to
make custom target selections. For the targeting aspect, this will refer to
the skill/item's current scope and the targets made here will be made
independent of the scope with the exception of the target, where if a target
is selected, it will become the 'target' value.
<Custom Target Eval>
for (var i = 0; i < foes.aliveMembers().length; ++i) {
var member = foes.aliveMembers()[i];
if (member.level % 3 === 0) targets.push(member);
}
</Custom Target Eval>
The 'targets' variable is an array that determines which are the targets
to be used during the selection process. Push the desired targets into
the 'targets' array.
============================================================================
Changelog
============================================================================
Version 1.02a:
- <Target: Everybody> will now have allies highlighted as well.
- <Target: Enemy Row> and <Target: Ally Row> will no longer highlight edead
enemies causing them to reappear.
Version 1.01:
- Updated for RPG Maker MV version 1.1.0.
Version 1.00:
- Finished Plugin! - パラメータ
-
param ---Battle Engine--- default param Everybody Text desc The help text for Everybody scope. default All Allies and Enemies param All But User Text desc The help text for all All But User scope.
%1 - Allies %2 - Userdefault All %1 But %2 param Random Any Text desc The help text used for the Random Any scope.
%1 - Numberdefault %1 Random param ---Multiple Of--- default param Multiple Text desc The help text used for Multiple of x scope.
%1 - Targets %2 - Parameters %3 - Numberdefault %1 with %2 as a Multiple of %3 param Multiple Everybody desc The text to use for Everybody in this format. default Anyone param Multiple Allies desc The text to use for Allies in this format. default Any Ally param Multiple Foes desc The text to use for Foes in this format. default Any Foe param ---Row Formation--- default param Target Row Text desc The help text used to target the target's row.
%1 - Target Namedefault %1's Row param Front Row Text desc The help text used to target the front row.
%1 - Target Typedefault %1 Front Row param Back Row Text desc The help text used to target the back row.
%1 - Target Typedefault %1 Back Row param Specific Row Text desc The help text used to target specific rows.
%1 - Target Typedefault Specific %1 Row param Row Enemies desc The help text used for enemies for Row Targets. default Enemy param Row Allies desc The help text used for enemies for Row Targets. default Allied - ライセンス表記
- target. This can go beyond the default editor's limit of 9.
default limit of 4 randomf oes.
紹介ページ https://github.com/suppayami/yami-engine-delta/blob/master/demo/js/plugins/YEP_TargetCore.js