KimKardashian wrote:Does anyone know mins per field for every unit?
Click the question mark then click units then units overview.
To calculate distance (all formulas are for Excel):
AX = Attacker X Coord
AY = Attacker Y Coord
DX = Defender X Coord
DY = Defender Y Coord
Distance = SQRT(ABS(AX-DX)^2+ABS(AY-DY)^2)
To compensate for wrapping map:
XD = IF(ABS(AX-DX) > 250, ABS(ABS(AX-DX)-500), ABS(AX-DX))
YD = IF(ABS(AY-DY) > 250, ABS(ABS(AY-DY)-500), ABS(AY-DY))
Distance = SQRT(XD^2+YD^2)
To calculate march time:
WS = World Speed
US = Unit Speed
S = Speed of Unit
Time = (Distance*S)/(WS*US)
Example:
Attacker Coords = 405, 69
Defender Coords = 398, 73
XD = 7
YD = 4
WS = 1.5
US = 1
S = 4 (Scout)
Distance = SQRT(XD^2+YD^2) = SQRT(7^2 + 4^2) = 8.062258
Time = (Distance*S)/(WS*US) = (8.062258*4)/(1.5*1) = 21.49935 or 21 minutes 29 seconds