ILB_HanoiTowers v1.0.0
I_LIKE_BREAD7
Introduction
This plugin creates a Hanoi Towers minigame.
Features
This plugin creates a minigame which is controlled with plugin commands and returns the current state of the game using switches and variables.
The game can be played at different difficulty levels (more stones, level 3 = 3 stones, level 4 = 4 stones etc.). The difficulty level is defined using plugin commands.
The plugin does not display any graphics on its own, the graphics need to be displayed using rpg maker events.
The player controls also need to be provided using events, the plugin does not take any player input on its own.
To see how to do that check the attached demo project.
Screenshots
How to Use
Add it using the plugin manager and configure the necessary variables and switches plugin parameters.
After that use plugin commands.
Plugin Commands
* ILB_HanoiTowers start 4 # Starts the game at level 4
* ILB_HanoiTowers pick 0 # Pick the left stack to move from/to (0 = left, 1 = middle, 2 = right)
The parameters in the commands use the same escape characters as the messages,
so you can use variables in them, for example:
- ILB_HanoiTowers start \V[1]
- ILB_HanoiTowers pick \V[2]
to start the game at level stored in variable 1 and pick stack from variable 2
Demo
The common event, variable and switch ids are a little weird because I copied them from another project, but only the ones used in the demo have names, all the others are blank, so they shouldn't be too difficult to find.
The keyboard key graphics used in the demo come from here
Keyboard Keys
I made some keys for control information, I thought you would like to use them too.

opengameart.org
All other non-default graphics are made by me. You can use them if you want.
Download
rpg-maker-stuff/mv/ILB_HanoiTowers.js at main · ILikeBread7/rpg-maker-stuff
Some RPG Maker plugins I made. Contribute to ILikeBread7/rpg-maker-stuff development by creating an account on GitHub.
github.com
I also have a bunch of other plugins in the same repository if you would like to check them out (all on the same terms)
rpg-maker-stuff/mv at main · ILikeBread7/rpg-maker-stuff
Some RPG Maker plugins I made. Contribute to ILikeBread7/rpg-maker-stuff development by creating an account on GitHub.
github.com
Terms and Credits
The plugin can be used for any purpose (free, commercial, editing, redistribution modified or unmodified).
Credit is welcome but not required. If you want to credit, credit me as I_LIKE_BREAD7 or ILikeBread7 (I use these interchangeably, but the version with the underscores is preferred if possible).
本贴来自国际rpgmaker官方论坛作者:I_LIKE_BREAD7处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/hanoi-towers-minigame.170362/