Well, it will depend on how you are controlling. I would recommend having each actor and enemy be an event, and use the player solely as a cursor. If doing that, it is relatively simple. You can use variables to get the map X and Y of the event where it currently is. Then, the player would move the cursor to the place he wants to move the event. At that point, you can save the x and y of the cursor into new variables. Then all you'd need to do is use another variable or two to record the difference between the x's and the y's, get the absolute value by multiplying by -1 if they are negative, and add them. If that number is greater than the movement range, then disallow the movement. If less than or equal, allow the movement.