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

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

Trait Conditions - TraitConditions.js

Plugin desc : Feature Condition Application Plugin

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com

Desc page : https://github.com/triacontane/RPGMakerMV/tree/mz_master/TraitConditions.js

Download Page : https://raw.githubusercontent.com/munokura/triacontane-MZ-plugins/refs/heads/main/TraitConditions.js

File name : TraitConditions.js

Help of plugin :

@target MZ
@url https://github.com/triacontane/RPGMakerMV/tree/mz_master/TraitConditions.js
@plugindesc Feature Condition Application Plugin
@author Triacontane
@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/triacontane-MZ-plugins ).
Original plugin by Triacontane.
Please check the latest official version at:
https://triacontane.blogspot.com
-----

TraitConditions.js

Set application conditions for each trait.
Traits that do not meet the conditions will be disabled.
Enter the following in the database memo field to describe the traits.

<TC1 Switch: 10> // When switch [10] is ON, the first trait is enabled.
<TC1 State: 4> // When state [4] is enabled, the first trait is enabled.
<TC1 Script: JS Expression> // When [Expression] evaluates to true, the first
trait is enabled.

By writing ”data” in a script,
you can reference the target actor or enemy object.
A certain level of scripting knowledge is required to use this effectively.

Also, the ”>” symbol cannot be used in scripts.
(It will be interpreted as a closing tag.)
Instead, replace it with an expression using ”<”.

Also, specifying scripts may affect performance depending on the combination
with other plugins.
We recommend minimizing their use.

Example 1: This is only enabled if the target is the actor with ID [1].
<TC1 Script: data.isActor() && data.actorId() === 1>

The second and subsequent features can be set in the same way.

This plugin requires the base plugin ”PluginCommonBase.js.”
”PluginCommonBase.js” is located in the following folder under the RPG Maker
MZ installation folder:

dlc/BasicResources/plugins/official

Terms of Use:
You may modify and redistribute this plugin without permission from the
author, and there are no restrictions on its use (commercial, R18+, etc.).
This plugin is now yours.

スポンサードリンク

-MZ plugins

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