Player and enemy insta death puzzle(solved)

I have this puzzle,a big X on the ground,where if the player steps on it,it gives an insta death.
at one point,an enemy chases you,and the only way to get rid of it,is by luring them to said X
and kills the enemy instead.
I tried copying this from another similar puzzle i had done,but for some reason this one won't work.
(just fyi,the graphics are like that bc i don't have the right graphics rn,these are placeholders)

this event presents no problems:
1709724736540.png



I did try separating these two,but it also doesn't matter since the resuts were always the same in every ocassion:

1709724828820.png

agrouping even the variables inside "x" (below here) did not work.

THIS is where everything messes up:
A
1709724945187.png


this is how it originally looked:
B
1709725053138.png

version B wouldn't activate the doll event,at all.didn't matter if it was chasing me or static and me having to push it. it did activate the player's death however.
so I decided to use the same one as like my other puzzle. except,bc it had to be a parallel process,i decided to use the player's x and y too,for their instant death by stepping on it.
BUT,becouse i did that,now the second i enter the game it gives me the player auto death.
If i stack the branches in any way,then the players death plays very weirdly...once you step on the x,and walk away north,THEN it activates.
i don't have any problem with the doll event on itself,just,getting the player's event to also work with it.

ps: just having an event that kills the player AND an enemy once they step on it.

I don't care if someone gives me a completely different event for this or just edits this very messy one,as long as it works
🙁
OK- i was so dumb for this...
instead of all those variables inside x A pic, I just had to put the x variable on x'x map x and the same with the y...
i feel so dummy. anyways it's solved haha its working

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/player-and-enemy-insta-death-puzzle-solved.166525/