I don't know how to create event with letter on the floor

Greetings. So, I'm trying to create my first game and I have a small problem. Situation: I have a letter on the floor and I trying to create this event (the attached image) but I don't know how to create it with engine event tools. I tried to create this for two days, but without success.
Engine: RPG Maker MV
21421.png
trigger, player touch
conditional branch, switch x on - show text
else - balloon icon

I think I need more information if that doesnt work
so you want to show a icon (balloon) when the player is on a tile,
when pressing OK button, it show a text, else it does nothing?

this require 2 events by than, 1 parallel (that switch OFF when action is pressed)
and the other action button when OK is pressed unless you want a different
button being pressed.

can you tell a bit more what exacly you want to do, so we can make the event
work in the way it should be?
Unless you want to check if another button than the one for actions is pressed, do the following:

Letter event, page 1:
Settings: Below characters, activates with player touch, graphic.
  • Show Ballon Icon: Player, Question
  • Control Switches: #0001, on
Letter event, page 2:
Settings: Below characters, activates action button, Switch #0001, graphic
  • Text (IE, 'you picked up the letter'), what you want to show to the player
  • Control self Switches, A, on
Letter event, page 3:
Settings: Below characters, action button, Self Switch A

Surround with events that activate on player touch and are below the characters, each of them containing the command 'Set Switch #0001 off'.
You can ignore the other events and change Switch #0001 with a self switch if you only want the icon to appear once.
There are several very different ways to approach this, here is one:

Create an Event - Priority: Below Characters - Trigger Player Touch - Options: Mark "Through" so other Events can walk over that Maptile.

Here is the Eventcode copy pasted as Text:
Code:
◆Comment:Show Hint
◆Control Switches:#0041 Show Hint 1 = ON
◆Loop
  ◆If:Button [OK] is pressed down
    ◆Text:None, Window, Bottom
    :    :Hello World
    ◆Wait:30 frames
    ◆
  :End
  ◆Control Variables:#0141 playermapx = Map X of Player
  ◆Control Variables:#0142 playermapy = Map Y of Player
  ◆Control Variables:#0141 playermapx -= Map X of This Event
  ◆Control Variables:#0142 playermapy -= Map Y of This Event
  ◆If:playermapx ≠ 0
    ◆Break Loop
    ◆
  :End
  ◆If:playermapy ≠ 0
    ◆Break Loop
    ◆
  :End
  ◆If:Button [Down] is pressed down
    ◆Set Movement Route:Player (Skip)
    :                  :◇Move Down
    ◆
  :End
  ◆If:Button [Left] is pressed down
    ◆Set Movement Route:Player (Skip)
    :                  :◇Move Left
    ◆
  :End
  ◆If:Button [Right] is pressed down
    ◆Set Movement Route:Player (Skip)
    :                  :◇Move Right
    ◆
  :End
  ◆If:Button [Up] is pressed down
    ◆Set Movement Route:Player (Skip)
    :                  :◇Move Up
    ◆
  :End
  ◆Wait:1 frame
  ◆
:Repeat Above
◆Set Movement Route:hint event
:                  :◇Wait:30 frames
:                  :◇Switch OFF:0041

Edit: I created a second Event with Eventpagecondition Switch 41 ON, it got the graphic for the hint or it shows a baloon icon, whatever is needed.
Edit2: Switch 41 is activated when moving on that event, it is deactivated when moving off of that event. When pressing OK button while being on the event, a Textbox will appear. Is this how you wanted it? No problem if further changes are needed, just let us know.
I guess this is the simplest way:
Event page 1:
1595859727915.png

Event page 2:

1595859755426.png

Change $gamePlayer.x and $gamePlayer.y to map coordinates where the tile exists.
I thought you meant a different special button so I used pageUp but you can also use enter(OK).
I guess this is the simplest way:
Event page 1:
View attachment 152977
Event page 2:

View attachment 152978
Change $gamePlayer.x and $gamePlayer.y to map coordinates where the tile exists.
I thought you meant a different special button so I used pageUp but you can also use enter(OK).

If you want to reuse that kind of thing for later events without having to specify the coordinates, use

Code:
$gamePlayer.x === $gameMap.event(this.eventId()).x && $gamePlayer.y === $gameMap.event(this.eventId()).y
I guess this is the simplest way:
no, it goes even simplere - there is absolutely no need for the parallel or the position check on the first page.

If an event is set to priority below, it will automatically and only react to the action buttonif the player is standing on the event.
so set the event to action button and remove the conditional branch.

then show text
no, it goes even simplere - there is absolutely no need for the parallel or the position check on the first page.

If an event is set to priority below, it will automatically and only react to the action buttonif the player is standing on the event.
so set the event to action button and remove the conditional branch.

then show text
I did it like this so that the hint appears next time also. Suppose the player sees the hint but doesn't press the button. Next time the hint won't appear :/ Right?
no, it goes even simplere - there is absolutely no need for the parallel or the position check on the first page.

If an event is set to priority below, it will automatically and only react to the action buttonif the player is standing on the event.
so set the event to action button and remove the conditional branch.

then show text

I think the reason for the "extra" stuff was that OP wants an icon to appear above the character's head when they're standing over the letter.
wrong - I didn't state it explicitly, but I completely deleted the second page and the self-switch in my description, placing the show text on the first page.
and that means the text will appear every time the button is pressed and the player stands there

edit:
I think the reason for the "extra" stuff was that OP wants an icon to appear above the character's head when they're standing over the letter.
I don't see that stated anywhere, and it wouldn't happen with the show text used in the examples above either.

An icon above the player would require a completely different approach to the display - but the trigger would still be the same as I described above as the coordinates would only be checked for the display and not for the triggering
wrong - I didn't state it explicitly, but I completely deleted the second page and the self-switch in my description, placing the show text on the first page.
and that means the text will appear every time the button is pressed and the player stands there
I was talking about the exclamation icon though. But anyways, I didn't get to check this thoroughly as I did this while I was taking a short break from an exam so I guess it can be simpler. I guess it's up to the op how they want to do this now.
wrong - I didn't state it explicitly, but I completely deleted the second page and the self-switch in my description, placing the show text on the first page.
and that means the text will appear every time the button is pressed and the player stands there

edit:

I don't see that stated anywhere, and it wouldn't happen with the show text used in the examples above either.

An icon above the player would require a completely different approach to the display - but the trigger would still be the same as I described above as the coordinates would only be checked for the display and not for the triggering

It's stated in the OP and is one of the boxes in the flow chart.

Personally I would do an "on player touch" page for the icon, turn self switch A on, make a second action button page activated by SSA for picking up/reading the letter itself, turn self switch B on, then a third page with a blank graphic activated by SSB, and surround the letter with on player touch events that turn off self switch A on the letter event.
I finally made it. Thanks for your replies, it helped me figure it out. The decision was so easy that it was embarrassing.

I made 2 pages:
The first one turning on Switch A and make Hint appearing on Player Touch.

Switch A = ON
{ If Switch A is ON = Show Hint }
Show Hint

The second one is a Letter text with a trigger on an Action Button with activation condition Switch A = ON
And finally, surrounding tiles with an event that turning off Switch A.

Now Hint is appearing whenever I step on a letter.

And there is another question. After animation of "Show Hint", it disappears. How to make it showing constantly without disappearing like on flow chart? Do I need to create a Hint icon by myself or add some sort of plugin or script?
See answers above...
What do you use as Hint?
- A Ballon Icon
- A Picture on the Screen
- An Event with Graphic that shows or hides itself when needed
- Some kind of Plugin which allows you to show Item Icons on the Game Map
- Something else...

Depending on what you use as hint the detailed solutions are constructed differently.
If you can answer this, it would help us helping you.
Ambient, when you surrounded the letter with events turning off self switch A, did you use the "control self switches" command? In order for this to work, you need to turn off self switch A of the *letter* from that event, which requires a script command:

Code:
$gameSelfSwitches.setValue([id of map, id of letter event, "A"], 0);
What do you use as Hint?
I used a default Ballon Icon. It plays an animation and then disappears.

Ambient, when you surrounded the letter with events turning off self switch A, did you use the "control self switches" command?
No, I used usual Switch (0001 and named it A), not a Control Self Switches (which just A B C D)
Can you show me screenshots of your letter event and the ones surrounding it?
You could try self switches. They're more convenient.

Original thread: https://forums.rpgmakerweb.com/threads/i-dont-know-how-to-create-event-with-letter-on-the-floor.124576/