How can tiles recognize that something is placed on it

Hey, I'm completely new here but have been lurking for some time now. I have a problem with a certain quest. My player has the task to solve a riddle by placing crystals of different colors into the right order. But in order for that to work I would have to find a solution to the problem that tiles can't recognize if something is placed on them. How can a tile see that the right crystal is standing on it. I can't even make the player place something on a tile that has an event,

I'm very grateful for support.
thanks!
Hey, I'm completely new here but have been lurking for some time now. I have a problem with a certain quest. My player has the task to solve a riddle by placing crystals of different colors into the right order. But in order for that to work I would have to find a solution to the problem that tiles can't recognize if something is placed on them. How can a tile see that the right crystal is standing on it. I can't even make the player place something on a tile that has an event,

I'm very grateful for support.
thanks!
How would you like crystal's to be set to be placed?
Are they to be pushed by the player?
Or maybe going to use items from the player?
..or something else?

I can help but need more info on how you want it to work.
Hi. Thanks for the answer. It's like this: The player pushes three crystals on the right tiles on the ground for the door to open.
So when the player pushes the crystal, it will activate that event, right? You have made a or a few commands to make the crystal move away from the player.

Under that, after the crystal has moved, you can make a little set of commands that will check the position of the crystal, like this:

1664708185357.png


The red commands are "control variable" and "control switch" commands.
The blue commands are conditional branches.

The green lines you don't have to copy, those are just command I wrote to explain to you what I did.

I hope this is clear. If not, feel free to ask.
Alternatively you can use a parallel event to check the region ID an event is on. In this screenshot I have a number of events that need to be pushed into a certain order in a row on the right (a picture defines this ingame):

1664708972621.png


By checking the region ID (final number in the script call) of the events (whose IDs are referenced in parenthesis in the call) like so:

1664709586924.png


When the final event is pushed onto the correct ID parallel event is activated:

1664709300771.png


So yeah, the script to put in the script call of your conditional branch in the parallel event is:

Script: $gameMap.event(EVENT ID NUMBER).regionId() === NUMBER OF REGION

Just replace the bolded text with a number and you'll be fine.



A couple of final notes



Oh, and to find the event ID, it's up here:

1664709445828.png


And the region IDs can be set the normal way by setting the tiles to a region in the tab marked "R":

1664709479091.png


Hope this helps! This method has the benefit of allowing two (or more) events to be placed in more than one place with the event triggering (for example, the two events which are T in the word TEMPT) 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-can-tiles-recognize-that-something-is-placed-on-it.151653/