用发芽的乌龟识别补丁的位置

Identifying the location of the patch with the sprouting turtle

我正在使用以下条件发芽一只新海龟并且它有效。

ask one-of patches with [distancexy 0 0 < 30]
      [ if (random-float 1 < (beta * pm * 1000)) [sprout-parties 1 [initialize-party] ]]

我还想记录创建新海龟的补丁坐标。

假设每只乌龟都拥有一个 origin 属性。然后你可以在 intialize-party 中包含代码 set origin (list xcor ycor).