じ☆ve冰风 发表于 2026-7-18 20:26:11

Lyra's MapNoteSwitches (auto change switches on map enter/exit)

This plugin lets you turn switches on, off, or toggle automatically when the player enters a map. No autorun event required!





How to Use
Add the .js file to your project's js/plugin folder, then open up the plugin manager in the editor and add the plugin.
There's an explanation on the left side.
The first setting is if you want to see debug messages (default off, for debugging use only).
The other setting is an array of aliases. They are entirely optional.
Once you've added the plugin, simply add one of these tags to a map's note box, and replace x with the number of the switch you want to change.

[*]<switch on x>
[*]<switch off x>
[*]<switch toggle x>
[*]<switch ontemp x>
[*]<switch offtemp x>
[*]<switch toggletemp x>
If you use the temp version of the tag, then the switch will get restored to how it was once the player leaves the map.

Instead of x you can also use any aliases you have defined in the plugin settings, for instance in my project I have <switch on isInterior> in the noteboxes of my indoors maps, and isInterior is defined in the plugin settings to be an alias for switch 14.

Terms of Use
You can view the license here. In short, it is free for commercial or non-commercial use. Credit is optional as long as you don't claim it as your own work.
Downloads
You can download just the plugin here. Press the 'Raw' button then Ctrl+S to save it.


本贴来自国际rpgmaker官方论坛作者:LyraVultur处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/lyras-mapnoteswitches-auto-change-switches-on-map-enter-exit.162978/
页: [1]
查看完整版本: Lyra&#039;s MapNoteSwitches (auto change switches on map enter/exit)