public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Q: I want to check the position of Player and compare with the position at side of Events

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Q: I want to check the position of Player and compare with the position at side of Events
  • Original author: Unmercyful
  • Original date: January 26, 2016
  • Source thread: https://forums.rpgmakerweb.com/threads/q-i-want-to-check-the-position-of-player-and-compare-with-the-position-at-side-of-events.55748/
  • Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker MV Support

Summary

I pulled that title from the MV script call list line 162. They give these script calls: $gameVariables.setVariable(6, $gamePlayer.x) $gameVariables.setVariable(7, $gamePlayer.y) $gameVariables.setVariable(8, $gameMap.events()[n].x)

Archived First Post

I pulled that title from the MV script call list line 162. They give these script calls:


$gameVariables.setVariable(6, $gamePlayer.x)
$gameVariables.setVariable(7, $gamePlayer.y)
$gameVariables.setVariable(8, $gameMap.events()[n].x)
$gameVariables.setVariable(9, $gameMap.events()[n].y)



Which I set 6,7,8,9 to in game variables and [n] to the events id.


Then they give this script call (what I am trying to accomplish):


$game_variables[7] == $game_variables[9] and ($game_variables[6] - $game_variables[8]).abs == 1


I get TypeError undefind is not a function. I have this screenshot of my "attempt".


Protected download


Sorry if it may be a noob question, but I'd really like to get this to work and have tried everything I can think of.

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

Screenshot.png
Screenshot.png
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rpg-maker-archive#mv-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar