how to? player x/y = event x/y

not sure if this is where this post goes...
I'm trying to get an event(parallel) to detect when the players x/y is the same as another events x/y like if they step onto or pass through the event.
the picture labeled ace was my event from ace which worked pretty good, the other oneis the event in mz that is not working with the same script call. anyone know what the MZ script calls would be?
first point is that you're using the wrong commands - Ace uses Ruby, MZ uses javascript, and the function names are different between the two.

second - why loading the data into variables you never use?
you can do what you want with both event commands and the (correct) script syntax, but mixing them is usually a bad idea.

either load player xy and event xy into four variables and compare them with conditional branches,
or use script lines to compare the four script equivalents of the values with each other.
and I'm not sure if your logic construct to shortcut the ifs in script works the same way in javascript even with the correct function names (but that is me having less experience in javascript)

EDIT:
third: put a wait(10) into your parallel to reduce lag

I've moved this thread to MZ Support. Thank you.

i found the solution on another thread.

first point is that you're using the wrong commands - Ace uses Ruby, MZ uses javascript, and the function names are different between the two.

second - why loading the data into variables you never use?
you can do what you want with both event commands and the (correct) script syntax, but mixing them is usually a bad idea.

either load player xy and event xy into four variables and compare them with conditional branches,
or use script lines to compare the four script equivalents of the values with each other.
and I'm not sure if your logic construct to shortcut the ifs in script works the same way in javascript even with the correct function names (but that is me having less experience in javascript)

EDIT:
third: put a wait(10) into your parallel to reduce lag
thanks for the reply, i should have explained better.
i know that they're different. the ace example was me crossing my fingers and hoping it would have just worked. and also hoping someone knew the MZ/MV script call to achieve the same effect.

storing the x and y were for another purpose that i actually did use in Ace and with certain events i plan on using again.
i should have removed it from the screenshot event, but i didn't think that far ahead.

anyway figuring out how to get the x and y of the event was the part i needed.
thanks again for taking the time to look at this.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-player-x-y-event-x-y.150953/