じ☆ve冰风 发表于 2026-8-2 17:50:21

Instance Items

http://himeworks.files.wordpress.com/2014/01/instanceitems11.jpg?w=640


This script introduces the concept of “instance items”. In order to understand what an instance item is, you need to first understand what a “template item” is.


All of your database items, weapons, and armors are called “template items”.


That is, they serve as templates for in-game items.


An instance item is simply an instance of a template. For example, you design weapon ID 1 in your database and call it a “Short Sword”. This is a template of a Short Sword; everytime you receive a Short Sword in-game, you receive a unique “instance” of this template. Two Short Swords in your inventory are treated as two individual entities that have nothing to do with each other besides both being based on the Short Sword template.


It is important to note that this script simply provides instance item functionality. Additional add-ons are required to provide various features such as equip levels, equip affixes, and so on.


Get it at Hime Works!


本贴来自国际rpgmaker官方论坛作者:Tsukihime处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/instance-items.22045/
页: [1]
查看完整版本: Instance Items