MZ Custom Traits - Customize traits for actors and classes in game


oY60je.png
Custom Traits
By Jollo
​

Introduction
Custom Traits is a plugin that makes it possible to dynamically assign traits to characters and classes during the game.

It is not normally possible to change the traits of classes and characters mid-game. With this plugin, however, you can add and remove traits whenever you want using the plugin commands. These changes are saved in the savefile and are therefore retained.

Please Note: Please test the plugin extensively before using it in your game! Errors can always occur. If you find a bug or have other suggestions, just write to me via the comment function.

Features
Let your characters learn to wear new types of armor or weapons over the course of the game.

Another idea would be to upgrade classes in general. Perhaps the player would like all wizards to be able to learn the ability to carry thick swords.This and much more is possible with this plugin.

How to Use
Use the plugin-commands to add and remove traits. There are two options:
Character-Trait: Add custom traits to a character.
Class-Trait: Add custom traits to a class. Those traits affect all characters that got assigned that class assigned.

Plugin Commands / Script Calls
AddActorTrait - Adds a trait with the defined values to a character.
RemoveActorTrait - Removes a trait from a character with the specific values.
AddClassTrait - Adds a trait to a class.
RemoveClassTrait - Removes a trait from a class with the specific values.
Parameters:

Those are the same for all commands:
  • actorID/classID
    • The class-/actor-ID in the database
  • traitCode
    • The code of the trait, that gets added (you can choose a trait from the dropdown-menu)
  • dataID
    • This is the ID of the element that would be shown in the dropdown if you would add it through the editor (From 1 to n ).
    • Example: The trait "Equip weapon whip" makes it possible for actors to equip whips. The weapon type "whip" is the fifth element in the dropdown menu, when choosing it in the database. The DataID would therefore be 5.
  • value
    • You need a value for many traits, but not all of them. For resistances and similar stuff for example. That's what this value is for. If no value is needed, you can just ignore this field.

Download
https://jolloex.itch.io/custom-traits-rpg-maker-mz-plugin

Terms and Credits
Free to use for commercial and non-commercial RPG Maker-Games
Hi there,

i just uploaded an update to this plugin. This update fixes an issue where traits would persist if a player starts a new game (without exiting the game itself). I just realized this after working on my game for a long time. But now it's fixed 🙂

Original thread: https://forums.rpgmakerweb.com/threads/custom-traits-customize-traits-for-actors-and-classes-in-game.171792/