Hello,
I'm trying to know what it's wrong with this piece of code:
($gameMap.event(11).x == $gamePlayer.x) && ($gameMap.event(11).y ==$gamePlayer.y)
basically, what I want to accomplish with the code is nothing complicated.
Please refer to the image to what I'm trying to accomplish.
I know something similar worked for Ace but I'm having a hard time scripting like this in MV. This piece doesn't give me any errors it just doesn't work and I don't know why.
I know how to do the same trough events but I want to use script.
any information provided will be of much appreciate it.

RPG Maker Web attachments are mirrored locally when available. Other external links remain hosted by their original creator or third-party service.