じ☆ve冰风 发表于 2026-7-17 14:17:26

Click switches in order

Hi everyone,

I made a new Plugin. With this plugin you can add switches as many as you want and the player has to click it in the right order.
All the switches you add will be in random order, so it will always be a guess in which order you have to click it. (Even in playtest)

How to do:
1. Add the plugin in the Plugin Manager

2. Create an event that has to be unlocked after all the switches are pressed in correct order.
Add on the first tab a Plugin Command with RandomSwitches => Unlock this event.
* You can also set the sound of
a. Correct: plays a sound when it's correct
b. Wrong: play a sound when it's wrong
c. Victory: play a sound when all switches are pressed in correct order
(Set the sound to false or keep it empty if you don't wanna play a sound)

3. Create switches and just add the Plugin Command with RandomSwitches => Add this switch

That's all, for more information how it works, you can find in the project itself.

Demo: https://elvium.be/rpg-switches/index.html
Download project: https://elvium.be/rpg-switches/Switches.zip
Direct link to the file: https://elvium.be/rpg-switches/js/plugins/RandomSwitches.js

Let me know your ideas.


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