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

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

MV plugins

FTKR Ex Trait Setting - FTKR_ExTraitSetting.js

Plugin desc : v1.0.4 You can set the Traits of equipment, states, etc. in detail

License : MIT License

Author : Futokoro

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

Download Page : https://raw.githubusercontent.com/munokura/futokoro-MV-plugins/refs/heads/master/FTKR_ExTraitSetting.js

File name : FTKR_ExTraitSetting.js

Help of plugin :

@plugindesc v1.0.4 You can set the Traits of equipment, states, etc. in detail
@author Futokoro
@url https://github.com/munokura/futokoro-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/futokoro-MV-plugins ).
Original plugin by Futokoro.
Please check the URL below for the latest version of the plugin.
URL https://github.com/futokoro/RPGMaker
-----
-----------------------------------------------------------------------------
Overview
-----------------------------------------------------------------------------
This plugin allows you to set detailed Traits for actors, jobs, equipment, enemies, and states.

You can write the values to be increased or decreased in script, and freely set the additive and additive effects for parameters that normally only add or subtract.

The following Traits can be set:
- Elements Effectiveness
- Weakness Effectiveness
- State Effectiveness
- Normal Elements Values
- Additional Elements Values
- Special Elements Values
- Attack States
- Attack Speed Modifier
- Additional Attacks

-----------------------------------------------------------------------------
Setup Method
-----------------------------------------------------------------------------
1. Add this plugin to the "Plugin Manager."

---------------------------------------------------------------------------
Functionality
---------------------------------------------------------------------------
You can set Traits by entering the following code in the database Note field.

<ETS_TRAITS: n>
Contents: x
Value: y
Calculation: z
</ETS_TRAITS>

The value n specifies the sort order of the database's traits, with 0 at the top.
For example, to set the trait for the second parameter, set n = 1.

<contents: x>
For parameters, this sets the trait content, such as maximum HP or attack power, to x.
x can be specified as a script calculation.
If "Contents: x" is omitted, the database value will be used.

<value: y>
Sets the value by which the trait is increased or decreased to y.
y can be specified as a script calculation.
If "Value: y" is omitted, the database value will be used.

<calc: z>
Specifies how the set value is calculated.
By adding a +, -, *, or / symbol, you can perform calculations such as multiplication, even for traits that are additive by default.
Please enter symbols in half-width characters.
If you omit "calc:z", the calculation formula in the database will be used.

<About scripts written with content and values>
Like damage calculation formulas, you can reference in-game variables, actor, and enemy parameters.
However, when changing the hit rate trait, you should not reference the same parameter, such as referencing the hit rate numerically.
An error will occur.

The following code can be used in scripts:
a.param - References the target's parameters. (a.hit is the user's hit rate)
v[x] - References the value of variable ID x.
s[x] - References the value of switch ID x.

<How to sum the values of multiple identical traits>
The method for summing traits is as follows.
This can be set using plugin parameters.

1. When integrating total values

(Sum of addition and subtraction values) × (1 or sum of multiplication values) / (1 or sum of division values)

For example, if there are multiple attack power traits as shown below:
+10, -4, *1.2, *0.5, /0.2, /1.4

The total value is as follows:
(+10 -4) × (1.2 + 0.5) / (0.2 + 1.4) = 6

2. When integrating individually (MV default calculation method)

(Sum of addition and subtraction values) × (1 * multiplication value 1 * integration value 2 * ... / division value 1 / division value 2 /...)

For example, if there are multiple attack power traits as shown below:
+10, -4, *1.2, *0.5, /0.2, /1.4

The total value is as follows:
(+10 -4) × (1 * 1.2 * 0.5 / 0.2 / 1.4) = 13

-----------------------------------------------------------------------------
License for this plugin
---------------------------------------------------------------------------
This plugin is released under the MIT License.

Copyright (c) 2017,2018 Futokoro
http://opensource.org/licenses/mit-license.php

Plugin source
https://github.com/futokoro/RPGMaker/blob/master/README.md

-----------------------------------------------------------------------------
Change History
-----------------------------------------------------------------------------

v1.0.4 - 2018/02/17: Bug fixes and specification changes
1. Fixed a bug that prevented calculations from being performed correctly when the calculation code was not specified.
2. Changed the default value of the plugin parameter <calculation method>.

v1.0.3 - January 20, 2018: Bug fixes
1. Fixed an issue where ternary operators were not Reflectioned when entering scripts.

v1.0.2 - December 3, 2017: Specification changes
1. Added a plugin parameter and revised the multiplication/division calculation process.

v1.0.1 - December 3, 2017: Bug fixes
1. Fixed an issue where the multiplication/division calculation process was incorrect.

v1.0.0 - December 2, 2017: First version created

-----------------------------------------------------------------------------

@param 計算方法
@text Calculation method
@desc Calculation method when there are multiple integrated or divided values in the characteristic values
@default 1
@type select
@option Add up the total value
@value 0
@option Individually calculated
@value 1

スポンサードリンク

-MV plugins

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