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)
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".
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.
RPG Maker Web attachments are mirrored locally when available. Other external links remain hosted by their original creator or third-party service.