#plugin Stellar Distance #author NBOS #desc Shows the distance between two star systems sector = GetCurrentSector() j = sector.SelectedCount() if j = 2 then s1 = sector.GetSelected( 0) s2 = sector.GetSelected( 1) dx = s2.x - s1.x dy = s2.y - s1.y dz = s2.z - s1.z d = Sqr( (dx*dx) + (dy*dy) + (dz*dz)) d = round( d, 2) MsgBox d & " light years" else MsgBox "Please select 2 systems" end if