MZ用プラグイン

DarkPlasma 独自の特徴IDを確保 - DarkPlasma_AllocateUniqueTraitId.js

シェア用テキスト:
▼DarkPlasma 独自の特徴IDを確保(DarkPlasma様作) - DarkPlasma_AllocateUniqueTraitId.js
https://plugin-mz.fungamemake.com/archives/5285
特徴の特徴IDを確保し、利用できるようにします。

ふりがな:どくじのとくちょうIDをかくほ

機能概要: 特徴の特徴IDを確保し、利用できるようにします。

利用規約(ライセンス): MITライセンス

作者:DarkPlasma

作者サイト:https://elleonard.github.io/DarkPlasma-MZ-Plugins/index.html

解説ページ:https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree…

ダウンロードページ:https://raw.githubusercontent.com/elleonard/DarkPlasma-…

ファイル名:DarkPlasma_AllocateUniqueTraitId.js

プラグインのヘルプ:

/*:
 * @plugindesc 独自の特徴IDを確保する
 * @author DarkPlasma
 * @license MIT
 *
 * @target MZ
 * @url https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release
 *
 * @param startIdOfUniqueTraitId
 * @desc 独自に特徴IDを確保する際の始点ID。わからない場合はそのままにしてください
 * @text 独自特徴ID始点
 * @type number
 * @default 71
 *
 * @help
 * version: 1.0.1
 * 特徴の特徴IDを確保し、利用できるようにします。
 *
 * 本プラグインは単体では機能しません。
 * 本プラグインを必要とする別のプラグインと一緒に利用してください。
 *
 * 以下、プラグインの開発者向けの情報です。
 * uniqueTraitIdCache オブジェクトに対してリクエストを投げてください。
 *
 * uniqueTraitIdCache.allocate
 *   : (pluginName: string, localId: number, name: string) => UniqueTraitId
 *   プラグインで独自の特徴IDを確保します。
 *
 * uniqueTraitIdCache.traitIdOf
 *   : (pluginName: string, localId: number) => number|undefined
 *   確保した特徴ID
 *   確保していない場合はundefined
 *
 * uniqueTraitIdCache.nameOf
 *   : (pluginName: string, localId: number) => string|undefined
 *   確保した特徴IDの名前
 *   確保していない場合はundefined
 *
 * UniqueTraitId.prototype.id: number
 *   確保した特徴ID
 *
 * UniqueTraitId.prototype.name: string
 *   確保した特徴IDの名前
 */

スポンサードリンク

スポンサードリンク

-MZ用プラグイン

Copyright© #ツクプラMZ , 2026 All Rights Reserved.