Smarter Text Persistence
Introduction
A simple script (fix) to make "show text" still combine windows with choice selections when separated by conditional branches, comments or jump to label events.
Features
The event "show text" will combine with choice selection, number selection or item selection regardless of any of the following being executed inbetween:
- Conditional branches (can be nested)
- Jump to labels
- Comments
But not:
- Labels
Screenshots
Spoiler
How to Use
Installation: Simply insert this script in the Script Editor under Materials (above Main Process).
If you don't want the text to persist, just put a blank label underneath it.
If you want to put a label between text and choices and have the text persist, put a jump to label above it as shown in the 4th screenshot.
Bugs
[Fixed 12/10] If text is the last event, game crashes (derp).
Script
Spoiler Code:
FAQ
Q: What is this script compatible with?
A: Mostly anything, if another script modifies command_101, try adding in the line "while check_text_persist(next_event_code); end" above the "case next_event_code" in the other script.
Credit and Thanks
Muramasa & Venima
Feel free to use this script as you wish.
本贴来自国际rpgmaker官方论坛作者:Venima处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/smarter-text-persistence-show-text-combining-with-choices.18970/