Show picture and then erase picture type event?

i wanna start this off by apologizing if this has been asked countless times already or if its something really obvious and easy, im extremely new to this and ive looked up tutorials and even several posts here but it seems that i cant quite find what im looking for or cant figure it out due to the tutorial not using rpgmaker xp.

so basically, ive been trying to set up an event that goes as follows:
walk up to item on table (it is in a position that the player can reach) > press action button > a text box pops up just saying what the item is, then a picture pops up and a sound effect plays with it > press another button > image goes away and the sound effect stops playing.
i dont want it to be an event thats only possible once though, like i want to be able to go back and then have this sort of "sequence", i guess, happen again, if possible.

my problem is basically whenever i tried stuff from tutorials (stuff with conditional branch, loop, switches, erase image etc etc) the image would still be on the screen for some reason? granted i do believe that i was doing something wrong the whole time as i couldnt really find exactly what i was looking for.

if any more details or screenshots for a better description of what im talking about is needed, ill absolutely provide them, ive been struggling for a quite bit trying to figure this out, so really any help is greatly appreciated!
Hi,
a screenshot of your present code would be helpful. Then we can look and check what is wrong. 🙂
Hi,
a screenshot of your present code would be helpful. Then we can look and check what is wrong. 🙂
i dont have a code currently, i basically deleted what i had because nothing seemed to work and i didnt think i was even close to doing the right thing (that was my own fault and stubbornness, sorry) and was hoping someone could possibly help me on how to do this from the beginning.

i tried to recreate what i had beforehand, if its not exactly what i did its definitely similar

the first image is what i had at first before realizing that i wanted to erase the picture and stop the se by pressing a button instead of it going away on its own.
the second image is what i saw in a tutorial that wasnt exactly what i was looking for and was for MV, in the tutorial there was also a "move image" in the event command but i didnt want the image to slide on/off screen so i didnt add it,but i thought it was similar enough so i tried it anyways.
the third is sort of combined with the second image and i think a tutorial i saw on here, with this i also tried it with more than one event page, and by switching some of the commands around (putting erase picture/stop se after "repeat above" like in the second image, etc).

Screenshot (590).pngScreenshot (591).png
Screenshot (592).png
i think i mightve tried some other things, but either way everything i have tried has either had the following happen: the image not going away when pressing the button set in the conditional branch (i find that this is my main problem. ive tried setting it to every button not just A, sometimes the player will move when pressing arrow keys but sometimes they wont), the game not starting, the event starting as soon as i start the game, only the text showing, or the event just not working at all when pressing the action button (basically as if there wasnt an event there)

again i apologize if this is something that should be obvious, i just really dont have experience with this at all.
best way for most engines:

show picture
sound effect
text: whatever you want
erase picture


you dont need a conditional branch though, as text message hold the picture open
untill the message closes, than the picture erase itself and this loops until you set
a selfswitch A ON, but if you want to extend it with buying and stuff, you can set
a choice menu for it.
This should work. If I understood correctly you want the SE to repeat whilst the picture is showing? And you don't want any text box visible when looking at the picture? Just put a correct wait time in the move route depending how long your SE is and if you want a small pause before it repeats (also, if you have some kind of long-a** SE playing you can put 'stop SE' in the end):

Spoiler
Pic1.jpg
@rpgLord69 has it almost right, though the question remains if the the player and everything else should be stopped while displaying the picture. Here are 2 solutions, depending what you want:

Solution 1 - nothing is stopped while picture is displayed:

@rpgLord69 provided you with the right solution. But it's not button A. It's button C.
Internally, button C is bound to Enter, Space and C. Button A on the other hand is bound to Shift and Z. You can look up the controls in the help file.

Solution 2 - everything should be stopped while picture is displayed:

So with this, the player and everything else can't move anymore while the picture is seen etc. You need 2 pages for your event. On Page 1, with Trigger set to Action Button, you activate a switch (local switch makes sense).

On Page 2, with Trigger set to Autorun with the activated switch from page 1 as a condition, you have your code like in solution 1 plus you deactivate the switch from page 1 at the very end of the code. So, next time the event is triggered, it starts on page 1 again.
@schM0ggi

But the player cannot move when the event action button event page is running. And autorun events don't stop other NPC move routes?
Yeah sorry, you're right. I messed things up.
I've changed so much in my codebase, it seems I can't properly remember anymore what standard RPG Maker functions are doing or not. 😅

So forget about solution 2 there and take the solution 1 route @rpgLord69 provided. Don't forget about button C.
thank you everyone for helping me with this and giving me different solutions, i tried what @ShadowDragon said and it worked just like i wanted! i feel really silly for not being able to figure that out when all i really had to do was just not put the text first LOL... so thank you again and ill keep the other solutions in mind too next time! :LZSproud:
Set up the event on the table: Place the event on the table tile and set its trigger to "Action Button." This will allow the player to interact with it. Show the item description: Add a "Show Text" command to display the item's description in a text box. You can customize the text to explain what the item is. Display the picture: Use the "Show Picture" command to display the image you want. Make sure to select the appropriate picture file.
@TylerGriffith , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/show-picture-and-then-erase-picture-type-event.150718/