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

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

MV plugins

Trait Conditions - TraitConditions.js

Plugin desc : Traits Condition Application Plugin

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com/

Desc page : https://triacontane.blogspot.com/

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

File name : TraitConditions.js

Help of plugin :

@url https://triacontane.blogspot.com/
@plugindesc Traits 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-MV-plugins ).
Original plugin by Triacontane.
Please check the latest official version at:
https://triacontane.blogspot.com
-----
Set application conditions for each Traits.
Traits that do not meet the conditions will be disabled.
Enter the following in the database Note field where you describe the
Traits.

<TC1Switch:10>
- When switch [10] is ON, the first Traits is enabled.
<TC1State:4>
- When state [4] is enabled, the first Traits is enabled.
<TC1Script:JS Expression>
- When [Expression] evaluates to true, the first Traits is enabled.
To use inequality signs in a script, use the following:
< → &lt;
> → &gt;

Example:
<TC1Script:¥v[1] &gt; 10>
- When variable [1] is greater than 10.

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.

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

Example 2: Enabled with a 50% probability.
<TC1Script:random(50)>

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

This plugin does not have any plugin commands.

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

スポンサードリンク

-MV plugins

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