这里,我假设node3和turtle j之间的距离大于值dummy,我就让node3和turtle j之间的距离为值dummy# {9 c; |3 R Q5 b) Q! k
if dummy < (item j [distance-from-other-turtles] of node3)/ R0 y" d# u; I
[1 A& \6 X- \& M3 A
ask node3 [ ( G9 t0 j. f; S h set distance-from-other-turtles replace-item j distance-from-other-turtles dummy& L; I. t$ m6 A$ M6 u0 m
] , @: G% y& G' g3 N+ g3 P6 g _ ]