Message Autoplay Ver. 1.0.0
Tamschi
Introduction
Message Autoplay is a lightweight plugin that adds a Ren'Py-inspired auto-advance function to the message window(s).
The time it takes to cancel the current interactive wait depends on how much text was shown just before in that window.
Features
- Clickable 'Auto'-button (using 2x2 spritesheet to reflect state) that can be aligned and offset in the message window.
- Configurable keyboard and gamepad bindings (with input intent that can be renamed in case of collisions).
- Uses the standard input system, so it's compatible with input rebinding and virtual input plugins.
- Modular options submenu: You can rename or remove each row and specify defaults.
- Autoplay can turn off on exploration, battle and/or manual advance (configurable).
- Extensive JavaScript API where you can adjust almost every aspect of the plugin.
- Clean, unobfuscated code with type annotations, written without AI-assistance.
Screenshots
Inactive (default image):
Active (default image):
Options menu (configurable):
Plugin parameters:
Plugin commands:
How to Use
This plugin doesn't necessarily have to be configured:
Just activating it with default settings can be enough for many English-language games.
Note that by default the plugin requires
img/system/Auto.png (included), which should be a 2x2 spritesheet.
The right half of the spritesheet is used iff autoplay is active and the bottom row while the button is pressed.
If your button is small, please include some transparent padding to make pressing it via touch input easier!
The "Input Intent" parameter controls the internal name of the autoplay toggle input.
You can rename it freely and erasing it will deactivate it and the keybinds completely.
You can use the quoted plugin parameters to adjust the text shown in the options menu.
The preset "Delay" and "Speed" defaults of 90% and 40% are values I personally find comfortable.
Plugin Commands / Script Calls
- StartAuto (MV) / Start Auto (MZ): Start autoplay.
- StopAuto (MV) / Stop Auto (MZ): Stop autoplay.
- ToggleAuto (MV) / Toggle Auto (MZ): Toggle autoplay.
The JavaScript API is namespaced as
.
You can
,
and
autoplay and get the current state by calling
, which is enough to make custom autoplay buttons that don't use the built-in
. The API also exposes
(as well as my
and
utility functions),
and
, property keys and
/
-trampolines for each installed hook (so all hooks can be changed or deactivated easily by other plugins).
Demo
This plugin is very simple, so I didn't make a demo project for it. Usually, you can just use it with its default settings.
(If your game is in a language other than English, you can use the quoted plugin parameters to replace the options menu text.)
There's a short looping web demo embedded on the Itch.io page below, so you can try how the plugin feels to use as a player without downloading it. (The options menu is not accessible there, however.)
Download (Itch.io,
please scroll down to "Download demo" for the free full version!)
I know the page setup is a bit confusing, it's the best I could do on Itch.
Terms and Credits
This plugin is free for non-commercial use and redistribution under
CC BY-NC 4.0.
A commercial-use license can be purchased on Itch.io and has no restriction on the number of games or team size.
It's fine to use this plugin in adult games. Credit isn't strictly required beyond leaving it accessible in the plugin file, but I'd appreciate being credited as "Tamschi" if you do have more prominent plugin credits (without implying my endorsement of your game).
本贴来自国际rpgmaker官方论坛作者:Tamschi处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/message-autoplay.180675/