public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

3 Followers

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

BMM_Archive · July 15, 2026

BMM_Archive
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".


Screenshot.png


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

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

  • Local mirror: 17207-551282fa1cdf82029800c096f9ceb20b.png
    SHA-256: e85668572aed4a9604bd6f217f630aa444b9e79ab1484a6a985fee3ceafa7b63
    Original attachment URL: https://forums.rpgmakerweb.com/attachments/screenshot-png.29922/

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.

Replies (0)

No replies yet.

0 replies 13 views

Log in to reply.