Long story short: Trying to implement calculation of distance between 2 points using the formula:
$$z = \sqrt{(x_2 - x_1)^2 + (y_2- y_1)^2}$$
Is there a way to calculate $Z$ with only basic arithmetic functions? $X$ and $Y$ coordinates are positive integers on a 2D map.
If you mean is there a formula in terms of (a finite number) of arithmetic operations that will produce the square root, than the answer is no. If the numbers $x_i$ and $y_i$ are rational numbers, then any formula using only arithmetic operations will (if well defined) have as value a rational number. But the desired square root can very well not be a rational number in this case.