Tales Of - Style skits? + Custom Button Event Prompt

Hello everybody.

I am currently trying to create custom events in the style of skits from the tales of series. Here's an example of one of them.


Generally they work so that, once you progress the story to a certain point / fulfill certain conditions / enter a certain area, a skit becomes available to be viewed in which the party will have a small conversation. However, they are not a forced cutscene; The player is never forced to actually watch them, unless they press the button to do so. I want to recreate this, simply giving the player a prompt to play the skit if they want to by pressing a certain button. Unfortunately, I have run into a multitude of issues creating this.

1.) The button in question; The Conditional Branch menu has Buttons as an option, but I don't want any of these to be the one the player needs to press to start the skit, as choosing OK may cause them to be unable to interact with skit unrelated events until they viewed it, cancel would have similar issues when declining options, choosing shift would prevent them from running, obviously directions are out of the question and I am not actually sure what pageup/pagedown are really used for? Is it possible to set a new button besides these for which it can check if it's being pressed to view the skit?
1731081593566.png

2) Making it actually possible to start the skit at will. I found a sort of tutorial that didn't really work on Reddit about how to make Skit style events ( thread in question), but it really didn't work for me. What I do think would work well from this thread is the image part; I have created this sample image to appear in the top let of the screen once the player reaches the conditions to actually watch the skit.
1731081844429.png

I have already written a test skit. The issue is, how do I make it so the skit becomes trigger-able anywhere? The way the reddit thread suggested it, making a parallel event that triggers when the player presses OK, didn't work whatsoever, even when the player was standing on the necessary tile. However, even if it did work, I want it to be so that the OK/Skit Button can be pressed anywhere on the map once the conditions are met / in a certain area where the skit is available.

1731082213589.png


Before I run into even more issues, I'd like to ask if there is any way to manage these two issues.

TL;DR How do I make an event call for a custom button to be pressed that isn't one of the preset options and how do I make it so that an event can be triggered via button press while in a specific wide area.

Thank you very much for your help.
1.) The button in question; The Conditional Branch menu has Buttons as an option, but I don't want any of these to be the one the player needs to press to start the skit...I am not actually sure what pageup/pagedown are really used for?
It probably makes sense to know what they're used for before you say you don't want to use them 🤣

Page Up and Down are used in menus to, appropriate, skip up or down an entire page of options. They don't do anything when you're walking around the map, so there's no reason you can't use them.

If there's some reason you don't want to do that, and really want to define a custom key, you could use a plugin like this to poll for any key you like.

I have already written a test skit. The issue is, how do I make it so the skit becomes trigger-able anywhere?
You run a common event that:
- uses Show Picture to display the notification
- turns on a switch which enables the parallel event listening for the key input

As far as only being able to do it in a certain area, just place events along the border of the disallowed area which erase the picture and turn off the parallel event's switch. Or, in the parallel event when it gets the keypress, check the player's region ID.
It probably makes sense to know what they're used for before you say you don't want to use them 🤣

Page Up and Down are used in menus to, appropriate, skip up or down an entire page of options. They don't do anything when you're walking around the map, so there's no reason you can't use them.

If there's some reason you don't want to do that, and really want to define a custom key, you could use a plugin like this to poll for any key you like.


You run a common event that:
- uses Show Picture to display the notification
- turns on a switch which enables the parallel event listening for the key input

As far as only being able to do it in a certain area, just place events along the border of the disallowed area which erase the picture and turn off the parallel event's switch. Or, in the parallel event when it gets the keypress, check the player's region ID.
I unfortunately couldn't find a good explanation online on what exactly the pageup/down buttons are good for after googling it, so I figured I'd set them aside, in case they do do something in the overworld, but I'm glad they don't. May as well repurpose them then.

I am a bit unsure about the explanation for 2. So I would put the skit into an Event with a parallel trigger that has a conditional variable that only does something if the player presses PageUp. This leads to the result, after testing, that the player is still able to move for a short time after the initial input.
1731090967055.png

(Here, for the 60 frames it takes for the screen to take the intended color). How would I counteract player input as soon as they press PageUp to start the skit? Additionally, I am a bit unsure about the use of the common event? I want the pop up to have the Skit title in there (See the example image in the original post) for whichever skit happens to be up next, so I'd make multiple images, one for each skit. Additionally, I track plot progression via a variable that ticks up each time a plot relevant event occurs as to not clutter things up with an excess of switches for each little bit of plot advancement; Common events however only allow switches under general settings, not variables. How would I go about having the common event display the right image without making a bunch of versions of the common event for every plot progression that unlocks a new skit? Though, as is, I already appreciate the help!
I unfortunately couldn't find a good explanation online on what exactly the pageup/down buttons are good for after googling it
The description of the controls is right at the beginning of MZ's instructions. The fifth section is "Playing your game":

1731092834316.png



How would I counteract player input as soon as they press PageUp to start the skit?
You should not put the entire skit into the parallel event - the definition of a parallel event is to be running in the background, "parallel" to what the game is actually doing.

Autorun events are for cutscenes:

So your parallel event detects the button press and activates the switch for a common autorun event. As soon as that activates, the player will be unable to move.

Additionally, I am a bit unsure about the use of the common event? I want the pop up to have the Skit title in there (See the example image in the original post) for whichever skit happens to be up next, so I'd make multiple images, one for each skit. Additionally, I track plot progression via a variable that ticks up each time a plot relevant event occurs as to not clutter things up with an excess of switches for each little bit of plot advancement; Common events however only allow switches under general settings, not variables. How would I go about having the common event display the right image without making a bunch of versions of the common event for every plot progression that unlocks a new skit?
Your two most basic event commands are Control Variables and Conditional Branch.

Whenever your criteria is met for the next skit, you set your plot variable to the appropriate number and call your skit display common event.

That common event uses Conditional Branch to determine which image to display, and turns on the switch for your parallel event that's polling for the key press.

Or you can skip the Common Event if there's only one way the criteria for the skit can be met. Just have whatever event is setting your plot variable directly show the appropriate image and turn on the switch.
You should not put the entire skit into the parallel event - the definition of a parallel event is to be running in the background, "parallel" to what the game is actually doing.

Autorun events are for cutscenes:

So your parallel event detects the button press and activates the switch for a common autorun event. As soon as that activates, the player will be unable to move.
I do know that Autorun events are for cutscenes, but the issue I have with the current set up is this:
1731165505372.png

First, there is the parallel event that displays the button prompt at the top of the screen which requires the player to press the button to activate switch 99, which the common autorun event needs to activate. Is there a way for this event to check a certain area of the map? This event should trigger if the plot progresses to 13, which occurs on map 3. This event is located on the 3rd map, where the skit would take place. Is there a way to make the picture disappear in certain areas? the 3rd map is quite large and I would like the skit to only be available in the first half of the map and to disappear once the player walks past a certain point / reappear once they re enter the area.

On the note of the comment event, Is there a more efficient way for the common event to search for a specific skit? As it'd be used over the entire game, I don't want the common event to have 50+ else/if functions just checking if the plot has progressed the right amount and the player is in the right area. Is there something other than a large number of else/if functions I could use? Similarly, same as above, how would I have it check if the player is specifically in a certain part of the map, rather than just on the map in general?
1731165777941.png


Lastly, and this confounds me greatly, After I triggered the parallel event (IE it spawned the picture onscreen) I decided to try having the player warp to another map, to see if the picture stays on there, even if they are no longer on that map. This resulted in the game taking incredibly long to load, taking over a minute for the screen to cease being black, and then only load up incredibly slowly. After about 6 minutes, It got this far and hadn't moved for another 3 minutes, so I gave up. Afterwards I tried warping to this area without the parallel event active, and it loaded the map just fine. What exactly causes this?

1731165890730.png


Thank you for your help.
I do know that Autorun events are for cutscenes, but the issue I have with the current set up is this:
I don't understand everything that's going on with that event, because you've cropped it so we can't see the event settings at the bottom...but it looks pretty wrong.

It appears to be simultaneously displaying a picture, checking for input and erasing the picture...logically, there's no way one event can do all of that.

First, there is the parallel event that displays the button prompt at the top of the screen
I've said this in my last few posts, but to reiterate - the parallel event does not display a prompt.

You display the prompt by using one show picture command, which is why I said that should be done by the event that knows you've hit the appropriate story point, or a common event called by that. Putting it into a parallel event will make the picture get redrawn 60 times per second, which is wrong.

Is there a way for this event to check a certain area of the map?
Yes, I already gave you two ways to do this in my first post. Either turn off the parallel event when you go into that "certain area," or make it check the player's region ID, which you would have to place on the map tiles where you don't want the skit happening.

On the note of the comment event, Is there a more efficient way for the common event to search for a specific skit? As it'd be used over the entire game, I don't want the common event to have 50+ else/if functions just checking if the plot has progressed the right amount and the player is in the right area.
If you make sure the skit events have adjacent IDs, you could use the script call to call the common event instead of the Call Common Event event command. So if story point 17 lets you see skit ID 50, and story point 18 lets you see skit ID 51, etc. you can do the script call with story variable + 33 as the argument.

Lastly, and this confounds me greatly, After I triggered the parallel event (IE it spawned the picture onscreen) I decided to try having the player warp to another map, to see if the picture stays on there, even if they are no longer on that map. This resulted in the game taking incredibly long to load, taking over a minute for the screen to cease being black, and then only load up incredibly slowly. After about 6 minutes, It got this far and hadn't moved for another 3 minutes, so I gave up. Afterwards I tried warping to this area without the parallel event active, and it loaded the map just fine. What exactly causes this?
You telling the game to load and draw a picture every frame.
I don't understand everything that's going on with that event, because you've cropped it so we can't see the event settings at the bottom...but it looks pretty wrong.

It appears to be simultaneously displaying a picture, checking for input and erasing the picture...logically, there's no way one event can do all of that.


I've said this in my last few posts, but to reiterate - the parallel event does not display a prompt.

You display the prompt by using one show picture command, which is why I said that should be done by the event that knows you've hit the appropriate story point, or a common event called by that. Putting it into a parallel event will make the picture get redrawn 60 times per second, which is wrong.


Yes, I already gave you two ways to do this in my first post. Either turn off the parallel event when you go into that "certain area," or make it check the player's region ID, which you would have to place on the map tiles where you don't want the skit happening.


If you make sure the skit events have adjacent IDs, you could use the script call to call the common event instead of the Call Common Event event command. So if story point 17 lets you see skit ID 50, and story point 18 lets you see skit ID 51, etc. you can do the script call with story variable + 33 as the argument.


You telling the game to load and draw a picture every frame.
To go through those things one by one;

1. The cropped image there is the parallel event in question. The only part of it that was relevant and cropped off was that it is the parallel event. Why can't it do all those things? As it is, the event should check if the player currently is on map 3, and only then, render the picture and wait for the player to press the button. While I do see the issue with it displaying the image 60 times a second while on the map, why wouldn't it be able to erase the picture and then progress to page 2 upon receiving player input?

2. I apologize for misunderstanding that part; So if I wanted to have the prompt to press the button appear after the plot has been progressed, I'd simply add this to the story event, like this.
1731247399322.png

1731247487837.png

And then have a parallel event on the map where the prompt that gets added which basically only checks to see if the player presses the button in question, at which point it'll trigger the switch that activates the common event made for skits, erases the picture but there by the story event and then triggers a self switch to prevent it from doing all this stuff again a second time. Correct?

3. The region ID thing confuses me a bit. Let's say that I want the skit to be viewable while the player is in area 1 (Where it becomes available) but not area 2. If it just came down to letting the player do this, I'd simple have the parallel event region have a second else/if check post button press check to see if the player is in ID 1 and if not, simply have it say that they can't view it here; The issue with that is though that I wouldn't just want to give the player an error message and have them wander back to an arbitrary different area, I would want the image with the displayer prompt to cease to be there once the player walks over into the other area. Would I for this just have to set a bunch of events between the two region maps that erase the story triggered picture in case the skit has not been viewed yet, and re-display the picture once the player reenters the ID 1 area?
1731247650589.png


4. As for the suggested solution to the common event cluster of Skits, I sadly have no experience with actual scriptwriting and I don't know how to set IDs for the skit specifically (Presumably with another variable?).


5. As for the last part, That was entirely on me. Oops. My apologies.
Why can't it do all those things?
Because that's not how events work. They process each command listed, in order, as fast as possible.

As it is, the event should check if the player currently is on map 3, and only then, render the picture and wait for the player to press the button.
It doesn't wait for anything. It will sit there constantly redrawing the picture before checking the input each frame.

why wouldn't it be able to erase the picture and then progress to page 2 upon receiving player input?
It would, my point is that it shouldn't be doing the first half of the stuff.

Yes.

The issue with that is though that I wouldn't just want to give the player an error message and have them wander back to an arbitrary different area, I would want the image with the displayer prompt to cease to be there once the player walks over into the other area. Would I for this just have to set a bunch of events between the two region maps that erase the story triggered picture in case the skit has not been viewed yet, and re-display the picture once the player reenters the ID 1 area?
Yes. From above:
As far as only being able to do it in a certain area, just place events along the border of the disallowed area which erase the picture and turn off the parallel event's switch.

4. As for the suggested solution to the common event cluster of Skits, I sadly have no experience with actual scriptwriting and I don't know how to set IDs for the skit specifically (Presumably with another variable?).
The ID of the common event (and every other tab in your database) is the number on the left.

1731259607122.png


Do not include any leading zeros when entering it into the script calls.

Original thread: https://forums.rpgmakerweb.com/threads/tales-of-style-skits-custom-button-event-prompt.173098/