Spike trap (need help modifying script call inside)

I have this script call taken from VXAce 


$game_player.x == $game_map.events[@event_id].x && $game_player.y == $game_map.events[@event_id].y


Since I know nothing in scripting, I would like help to either make this script compatible with MV or at least have a script


that can help in buliding a Spike trap that deals damage once your player steps on it if the spike is fully pointing up. 
Why not event it?


Simply make a Player Touch event with the spikes Beneath Player that damages the player on contact.
I'll try, I need to make sure the player only takes damage when the spikes are up 
Event touch won't work directly, as that will do damage whenever you step on the event, not just when the spikes are up. Though maybe you can modify it to do a check inside the event to see if the spikes are up, and if so, then do damage, if not, do nothing?
I found my answer on this website 


http://blog.rpgmakerweb.com/tutorials/regionids-spike-traps/

Original thread: https://forums.rpgmakerweb.com/threads/spike-trap-need-help-modifying-script-call-inside.61848/