So I've basically pulled out all my hair and searched forum posts and banged my head against the desk enough times to induce multiple concussions, and I simply cannot figure out this eventing problem! I'm hoping some bigger brains out there can help.
What I need to do: an event where on player_touch, a picture shows. When pressing action button on that same tile, text shows. When you step off the tile, the picture goes away.
Here's what I've tried (among many other unsuccessful tangled webs of switches and variables):
A player_touch event page that shows the picture, then sets a self switch that activates page 2, which has the action button triggered text. So far so good, right?
In order to erase the picture when the player steps off of the tile, I had all adjacent tiles have a player_touch page that erases the picture. This works, however, as you might have guessed, when you return to the first tile, its self-switch is now on the action button page, and will not reshow the picture on player_touch.
I have tried every combination of switches and variables, having a separate parallel event that checks coordinates that are saved to variables, but from what I can tell, it is not possible to do this -- basically, I need to run two simultaneous events on the same tile: one that is player_touch that either shows the picture or else stores tile coordinates for another parallel event to process ... at the same time as the action button event that shows text when player clicks.
Surely there's a solution to this, right?
I got all excited when I saw that conditional branches allow "button press". So, I tried an event with the player_touch show picture event page, with a conditional branch that checked for the OK button. However as you might already know, that only works if the button is HELD DOWN prior to moving to the tile. If it checked for a button press AFTER you were on the tile, the problem would be solved. But I haven't found the wording to check to see if this functionality exists in a script.
I'm desperate for help since the mechanic is key to my game, and I'm quite literally at the limit of my brainpower. I haven't found any scripts that might help by checking automatically for coordinates, or any other functionality that might assist.
Until I figure this one out I'm at a standstill -- I'm hopeful an RPGM veteran can help me work out this eventing challenge.
Thank you!!!
EDIT: Another almost-promising solution I've tried: on player touch, show picture, and set a switch to on, and have a common event running parallel that has a conditional branch checking for OK button on, and if it's on, show the text. This actually WORKS initially, but I cannot find a way to stop the common event from repeating the text over and over. Neither "exit event processing", or jumping to a label outside the conditional branch stops the text from repeating over and over, since most players will hit OK (default space or enter) in order to CLEAR text away. Hitting enter or space to clear the text simply re-triggers the text! This method DOES work if I instruct the player to hit "Esc" in order to clear the text instead of enter or space, but that's obviously not really an acceptable solution. Maddening!
EDIT 2: I finally figured out a messy solution, and am posting it here in the event that someone else has a similar issue:
On the adjacent tiles, where I erase the picture, I also run a script to reset all self-switches on the map. This works, though if anyone has any better solution I'd love to hear it, as I'm certain this solution probably won't work in all cases! Thanks


What I need to do: an event where on player_touch, a picture shows. When pressing action button on that same tile, text shows. When you step off the tile, the picture goes away.
Here's what I've tried (among many other unsuccessful tangled webs of switches and variables):
A player_touch event page that shows the picture, then sets a self switch that activates page 2, which has the action button triggered text. So far so good, right?
In order to erase the picture when the player steps off of the tile, I had all adjacent tiles have a player_touch page that erases the picture. This works, however, as you might have guessed, when you return to the first tile, its self-switch is now on the action button page, and will not reshow the picture on player_touch.
I have tried every combination of switches and variables, having a separate parallel event that checks coordinates that are saved to variables, but from what I can tell, it is not possible to do this -- basically, I need to run two simultaneous events on the same tile: one that is player_touch that either shows the picture or else stores tile coordinates for another parallel event to process ... at the same time as the action button event that shows text when player clicks.
Surely there's a solution to this, right?
I got all excited when I saw that conditional branches allow "button press". So, I tried an event with the player_touch show picture event page, with a conditional branch that checked for the OK button. However as you might already know, that only works if the button is HELD DOWN prior to moving to the tile. If it checked for a button press AFTER you were on the tile, the problem would be solved. But I haven't found the wording to check to see if this functionality exists in a script.
I'm desperate for help since the mechanic is key to my game, and I'm quite literally at the limit of my brainpower. I haven't found any scripts that might help by checking automatically for coordinates, or any other functionality that might assist.
Until I figure this one out I'm at a standstill -- I'm hopeful an RPGM veteran can help me work out this eventing challenge.
Thank you!!!
EDIT: Another almost-promising solution I've tried: on player touch, show picture, and set a switch to on, and have a common event running parallel that has a conditional branch checking for OK button on, and if it's on, show the text. This actually WORKS initially, but I cannot find a way to stop the common event from repeating the text over and over. Neither "exit event processing", or jumping to a label outside the conditional branch stops the text from repeating over and over, since most players will hit OK (default space or enter) in order to CLEAR text away. Hitting enter or space to clear the text simply re-triggers the text! This method DOES work if I instruct the player to hit "Esc" in order to clear the text instead of enter or space, but that's obviously not really an acceptable solution. Maddening!
EDIT 2: I finally figured out a messy solution, and am posting it here in the event that someone else has a similar issue:
On the adjacent tiles, where I erase the picture, I also run a script to reset all self-switches on the map. This works, though if anyone has any better solution I'd love to hear it, as I'm certain this solution probably won't work in all cases! Thanks


