What I got so far and what it does:
Spoiler
if($gameMap.regionId($gamePlayer.x, $gamePlayer.y) < 105)
{
DO SOMETHING HERE LIKE SHOW A MESSAGE OR WHATEVER ELSE.
}
else if($gameMap.regionId($gamePlayer.x, $gamePlayer.y) >= 105)
{
DO NOTHING HERE OR MAYBE BLOCK MOVEMENT OR DISABLE SOMETHING
}
If the player x and y coordinates are on any region below 105 it is supposed to allow whatever action
''Else if'' works ONLY IF the player steps on any Region tile with the number 105 or above. However I want something where the script (or coordinates) easily check if the Player is 1 or more Tiles / Steps away from specified Regions in both x and y directions as well as diagonal if possible!
{
DO SOMETHING HERE LIKE SHOW A MESSAGE OR WHATEVER ELSE.
}
else if($gameMap.regionId($gamePlayer.x, $gamePlayer.y) >= 105)
{
DO NOTHING HERE OR MAYBE BLOCK MOVEMENT OR DISABLE SOMETHING
}
If the player x and y coordinates are on any region below 105 it is supposed to allow whatever action
''Else if'' works ONLY IF the player steps on any Region tile with the number 105 or above. However I want something where the script (or coordinates) easily check if the Player is 1 or more Tiles / Steps away from specified Regions in both x and y directions as well as diagonal if possible!
So why I wish to do this? To have more freedom with certain Skills I do for my game using Chrono Engine.
It also would come in handy making a Skill in which you use the ''through'' option where the player can walk through everything. So to prevent the player walking through specified Regions, I need this check before the player is actually on top of that Region already!
I hope my English isn't too terrible! Anyways thanks in advance.
EDIT: Made my own thread for this! Thanks for the help tho.