U
Unmercyful
Guest
Hi RPG Makers, I been working on trying to translate this Ace script call to MV and I believe I almost have it.
I have an event set up like this:
The script code in the conditional branch is:
$gameMap.event(this._eventId).x - Math.abs($gamePlayer.x) + $gameMap.event(this._eventId).y - Math.abs($gamePlayer.y) == 3
Which I translated from this Ace script:
(($game_map.events[@event_id].x - $game_player.x).abs + ($game_map.events[@event_id].y - $game_player.y).abs) == 3
The left and up sighting works:
But on the right and down positions I get nothing. I do get a diagonal sighting leftUp and leftDown, no matter how many tiles away from the event:
I'm sure there is something not right with the translation of the scripts, I know neither and I am a new learner of RPGMMV. All though, I'm trying to learn and thought that this might help me learn some in the process of getting my project going.
If anyone with the knowledge that would like help, it would be much appreciated.
I have an event set up like this:

The script code in the conditional branch is:
$gameMap.event(this._eventId).x - Math.abs($gamePlayer.x) + $gameMap.event(this._eventId).y - Math.abs($gamePlayer.y) == 3
Which I translated from this Ace script:
(($game_map.events[@event_id].x - $game_player.x).abs + ($game_map.events[@event_id].y - $game_player.y).abs) == 3
The left and up sighting works:

But on the right and down positions I get nothing. I do get a diagonal sighting leftUp and leftDown, no matter how many tiles away from the event:

I'm sure there is something not right with the translation of the scripts, I know neither and I am a new learner of RPGMMV. All though, I'm trying to learn and thought that this might help me learn some in the process of getting my project going.
If anyone with the knowledge that would like help, it would be much appreciated.
