Synchronize Variables with Items/Weapons/Armors
by Aloe Guvner
Download Link
Note: This plugin is not under active maintenance.
Background:
Some menu plugins require data to be stored as variables, which also has to be represented as item counts, or vice-versa. If multiple currency systems (ex. using gold and gems) require the additional currencies to be represented as variables, it would be very useful to represent it as items in the inventory as well.
Another use case is with classic "gather" quests or mini-games. A quest might include collecting 5
MacGuffins, but unfortunately the event page conditions can't read items. Normally, you would have to increment a variable at the same time as giving the party the MacGuffin, but with this plugin, they will by sync'ed automatically.
This plugin will synchronize the value of a variable with the inventory count of a certain item/weapon/armor, making sure that they are always the same.
For example, if Item #1 (Potion) and Variable #22 are synchronized:
1.) The party gains 30 potions. The value of Variable #22 is automatically set to 30.
2.) The value of Variable #22 is set to 50. The party automatically gains 20 potions - for a total of 50 potions.
3.) The value of Variable #22 is set to 46. The party automatically loses 4 potions - for a total of 46 potions.
Note:
Only pairs of item/weapon/armor + variable can be synchronized.
Item/Weapon/Armor <---> Variable
Terms of Use:
Free for use in commercial or non-commercial projects.
Credits required to: Aloe Guvner
Version History:
Download Link
本贴来自国际rpgmaker官方论坛作者:Aloe Guvner处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/synchronize-variables-with-items-weapons-armors.96508/