In one of the older games I've been working on, one part of the gameplay/story is a mechanic I called the Quintessence State. I made it so it's used to toggle on and off. It was originally inspired by the story mechanic in GEIKEN, another RPG maker game. (I'm not the best at explaining but I'll try my best!)
Link:
https://forums.rpgmakerweb.com/index.php?threads/geiken.46065/
I use it to reveal hidden items, help with puzzles, and as a story mechanic. And I am here to reveal how I did it,
With the power of Common Events!
And no plugins
The way I set it up is simple:
1.) Make a global common event (An event that the player will mainly toggle or activate)
Set this to be a parallel event.
2.) On the first page of the event commands, select "Conditional Statement", on the Conditional Statement Page, move to Page 4 and select Button. (I used
PageUp but if you use any button plugins such as Yanfly's Button Command Plugin, that can work too :3)
3.) Create 2 more common events and a switch. Once the button is pressed it will call the common event to turn it on along with the switch. If the switch is on, pressing the button again and turn it off.
Tip: When using If statements, it's best to put the most specific if statements first. Which is why in the main common event, the switch statement is first.
If explaining it was "Ehh.." I have the entire common event right here and you can just copy
Main Common Event:
本贴来自国际rpgmaker官方论坛作者:ItsAri处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/special-toggle-atmosphere-event-thing-tutorial-that-couldve-been-better.123306/