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

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

MZ plugins

Dark Plasma Allocate Unique Trait Id - DarkPlasma_AllocateUniqueTraitId.js

Plugin desc : Ensure unique feature IDs

License : MIT License

Author : DarkPlasma

Website : https://github.com/munokura/DarkPlasma-MZ-Plugins/blob/main/DarkPlasma_AllocateUniqueTraitId.js

Desc page : https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release

Download Page : https://raw.githubusercontent.com/munokura/DarkPlasma-MZ-Plugins/main/DarkPlasma_AllocateUniqueTraitId.js

File name : DarkPlasma_AllocateUniqueTraitId.js

Help of plugin :

@target MZ
@url https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release
@plugindesc Ensure unique feature IDs
@author DarkPlasma
@license MIT

@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/DarkPlasma-MZ-Plugins ).
Original plugin by DarkPlasma.
Please check the latest official version at:
https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release
-----

version: 1.0.2
Allocates and makes available a unique trait ID.

This plugin does not function on its own.
Use it together with other plugins that require it.

The following information is for plugin developers.
Submit a request to the uniqueTraitIdCache object.

uniqueTraitIdCache.allocate
: (pluginName: string, localId: number, name: string) => UniqueTraitId
Allocates a unique trait ID for the plugin.

uniqueTraitIdCache.traitIdOf
: (pluginName: string, localId: number) => number|undefined
Reserved trait ID
Undefined if not reserved

uniqueTraitIdCache.nameOf
: (pluginName: string, localId: number) => string|undefined
Reserved trait ID name
Undefined if not reserved

UniqueTraitId.prototype.id: number
Reserved trait ID

UniqueTraitId.prototype.name: string
Reserved trait ID name

@param startIdOfUniqueTraitId
@text Unique feature ID starting point
@desc The starting ID for your own feature ID. If you don't know, leave it as is.
@type number
@default 71

スポンサードリンク

-MZ plugins

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