じ☆ve冰风 发表于 2026-7-28 20:02:29

ESS_Storage.js

This plugin adds Self Switch Storage to Events,
And it stores a saved storage box for usage in console,
or other purposes..

This thread posted by Tsukihime gave me the idea to build this plugin:
i hated to not be able to access selfSwitches with "$gameMap.event(eventId)"
Storing self-switches in a global variable

RPG Maker stores self-switches in global variables.   This is likely because events are not saved, and so the next time you load an event, that information will be lost.   Self-switches are considered "local" data simply because access them requires a map ID and an event ID (along with the...

                                        forums.rpgmakerweb.com                               




ESS.Box
Spoiler: example img from console f8THIS EXAMPLE DEMO USES 3 MAPS ,BUT ANY AMOUNT OF MAPS SHOULD WORK



$gameMap.event(12)._SelfSwitch
Spoiler: img example event_selfSwitch


------------



The selfSwitches storage is connected directly to Game_Event, it will also recognize spawned events without problems..

The plugin also adds a few selfswitch related scriptcalls,..


Terms: MIT LICENSE

free to use in any project
(edits are allowed aswell)


GitHub link


If anybody finds a bug ,pls let me know..


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