Conditional Branch Script call to check if the menu is open.

Honestly, I don't expect anyone new to have any idea what I'm asking. My guess is someone knowledgeable in RGSS3 could know this down flat. Only it's not a script request.

To put simply, I want to have a tutorial while the menu is open. After researching and finding that there is no such script that can do this I hope such can be achieved using a script call. I plan to have a common event to always be put in parallel process, but the event code is held back by a conditional branch that checks to see when the menu opens.

If you didn't get all of that, I'll get straight to the question. Is there a script call that can be used in the Conditional branch that checks to see when the menu opens, and if there is, what is it?
You could try this:

Code:
SceneManager.scene_is?(Scene_Menu)
It won't work that way.

Events only work on map - even the parallel processes are stopped while any other screens are open.

So there is no need to check in a conditional branch if the menu is open, because if the conditional branch is executed at all then the menu cannot be open.

That said, there are two different scripts that might give a solution:

Tsukihime has a scene interpreter script that allows eventing during the menu. If you use that then you have to check his script for conditions, because it depends how that works to get a check for the menu.

And I think I remember someone writing a script for menu or battle tutorials, but I don't remember who or its exact features. It was on this forum, so you have to check the script part of the forum.
So I was thinking along the wrong path all along. 😛

That's fine, I'll take a look at the scripts.
Hime has a Scene Interpreter script which allows the running of the interpreter in the other scenes.

Haven't tried executing extra commands during the menu though, not sure how that will go.
 modern algebra has a scene tutorial script.

Google that.
What do you want your tutorial to be like?


As Engr. Adik mentions, there is a Scene Interpreter script that allows you to execute common events in any scene.


This video uses the scene interpreter to display dialogue in the item menu


Skip to 0:23 which is where the menu segment begins.




It is not a specialized tutorial system like the one from MA linked above, however.
Alright, I've tried using Tsukihime's script. The other script Andar mentioned I couldn't find and Modern Algebra's script is for VX.

What I want to do is just show a few lines of text right after the menu opens (the menu would be opened automatically using events). When Tsukihime's script, I tried opening the menu right after turning on a switch that would operate a parallel process event tagged with the comment call. The menu would open up and the first line of text would appear, after that it just let's the player operate the menu how he wants until the menu closes, then it just shows all the other lines of text after the menu closes... which isn't what I want. I guess this idea itself was a little ambitious to begin with, but seeing how Tsukihime's script worked for at least one line of text probably means I'm getting close.

But I feel like it's probably better to drop the idea better, later in the game when I was playtesting it. The parallel process common event that was meant to work with the script activated randomly during battle even though I already turned off the switch, which was... off...
I think there's a trick to getting it to continue running even when you switch scenes, because the common event that runs isn't a map common event, it's a scene common event, which means it exists regardless what scene you're on.

This was a feature I added when someone ran into an issue where they used an item in the item menu to switch scenes, and then wanted the common event to run on the other scene and then go back to the item menu.

I'll make a video when I figure out how to do it.

But I think I might know what the issue is: how are you calling the common event?

Do you have the

<run scene: current>comment?
But I feel like it's probably better to drop the idea better, later in the game when I was playtesting it. The parallel process common event that was meant to work with the script activated randomly during battle even though I already turned off the switch, which was... off...
Might be a bug.
Yes, I have <run scene: current> at the very beginning inside a comment, box.

But the problem isn't about switching scenes at all. It's just that I want text to display right after opening the menu. But I don't even know if that Scene of the menu has a name.

I feel like I'm explaining it wrong. I'll post a small project that shows the problem I'm talking about.

http://www.mediafire.com/download/ru0rouya2w2g6ra/Menu_Test.zip

In the test, you have Eric talking, he opens up a menu and talks for one line. But in order for the scene to continue you have to close the menu. The reason the Common Event is a Parallel process event is because if I use Autorun, it would wait for the event to finish after opening the menu. If I use a common event call, it would go through the event before the menu even opens. I have to use Parallel process to even get this far.
I've updated the script with some experimental functionality: cross-scene common events.

Video example:



This allows you to have a common event run even if you change between multiple scenes.

Two script calls are available for freezing user input

pause_windowsunpause_windowsThis prevents the user from sending input to the windows if you don't want them to.This is meant to simulate a modal window because when there is text dialogue, you don't want other things to be active, but my implementation is pretty rough.

You can restore and pause input at anytime. I don't know when you might use this but I figured it might be useful to have.

Note that due to the way scene changing works, you cannot call "pause_windows" immediately after changing scenes. You need to either put a wait command before pausing the windows, or put the script call after your first show text. Have not found how to address this issue, but this is only an issue if you are trying to pause windows immediately.

See if that works.

Use the "call common event" command to invoke your common event. It does not need to be parallel.
Wow, I'll admit and say I had my doubts the second time, but it worked!

I can't thank you enough for going through this trouble Tsukihime. I guess this thread is solved.
After trying to put together this video, I ran into bugs and fixed them.


I did notice the game crashing for unknown reasons though (RGSS Player has stopped working)

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-script-call-to-check-if-the-menu-is-open.36280/