An open library of RPG Maker MV plugins, powered by the community.

PGMV - The Community-Driven Plugin Library for RPG Maker MV

MV plugins

Target Limit Trait - TargetLimitTrait.js

Plugin desc : ver1.02/You can now set Traits that limit the target of specified skills and items.

License : MIT License

Author : Yana

Website : https://w.atwiki.jp/pokotan/pages/3.html

Desc page : https://github.com/munokura/Yana-MV-plugins

Download Page : https://raw.githubusercontent.com/munokura/Yana-MV-plugins/refs/heads/master/Battle/TargetLimitTrait.js

File name : TargetLimitTrait.js

Help of plugin :

@plugindesc ver1.02/You can now set Traits that limit the target of specified skills and items.
@author Yana
@url https://github.com/munokura/Yana-MV-plugins
@license MIT License

@help
English Help Translator: munokura
This is an unofficial English translation of the plugin help,
created to support global RPG Maker users.
Feedback is welcome to improve translation quality
(see: https://github.com/munokura/Yana-MV-plugins ).
Original plugin by Yana.
-----
How to Use
--------------------------------------------------------------------
By entering 
<TargetLimit: xy,z>
in the Note field of an object with Traits, such as an actor, class, equipment, state, or enemy, you can limit the target of the skill or item specified by xy to only those that meet the condition z.
x can be either I (item) or S (skill).
*However, since this is currently only for enemies, specifying I is meaningless.
y specifies the respective ID.
z specifies the calculation formula.
The formula can be a, b, or v, just like the damage formula.

When using ConditionallyCore in conjunction with ConditionallyCore, you can add detailed conditions to the range change.
In that case, enter
<TargetLimit: xy,z%>
Activation Condition
</TargetLimit>
.
This will limit the target of the skill or item specified by xy to those that meet the activation condition and a probability of z%.

Additionally, by writing
<InheritLimitCond:xy>
in the Note field of an object with Traits, such as an actor, class, equipment, state, or enemy, you can inherit the target limit settings of the object specified by xy.
x can be A (actor), C (class), W (weapon), M (armor), S (state), or E (enemy),
and y is the corresponding ID.

*Redefines Game_Unit.prototype.randomTarget.

-----------------------------------------------------
Terms of Use
------------------------------------------------------
This plugin is released under the MIT License.
http://opensource.org/licenses/mit-license.php
------------------------------------------------------
Update History:
ver1.02:170908
Fixed a bug that caused an error when the range of a restricted skill or item was the user.
ver1.01:170716
Fixed a bug that prevented restricted targets from being selected correctly.
ver1.00:
Released

スポンサードリンク

-MV plugins

Copyright© PGMV - The Community-Driven Plugin Library for RPG Maker MV , 2026 All Rights Reserved.