这里,我假设node3和turtle j之间的距离大于值dummy,我就让node3和turtle j之间的距离为值dummy2 t8 D' ]. T' P. X% \! D9 x
if dummy < (item j [distance-from-other-turtles] of node3) 2 H6 O/ a- g! e [* W" U4 V! \, D1 ~3 K
ask node3 [ 2 [ Q: p" L6 J8 o F2 C* {0 m set distance-from-other-turtles replace-item j distance-from-other-turtles dummy ( v) Q9 Y* w3 C x7 ^* ]; k ] / z p' T7 N$ Y! t# ~, x ]