NetLogo:有没有一种语法可以用来代替海龟上下文中的 "crt 1"?

NetLogo: Is there a syntax that can be used instead of "crt 1" in a turtle context?

有没有一种语法可以用来代替 turtle 上下文中的 "crt 1"?因为 'crt 1' 语法仅供观察者使用。以下代码是示例一,但由于它在海龟上下文中,因此效果不佳。我想在此示例案例中获得一些建议。谢谢。

to one-turtle
crt 1 [
set color green
setxy min-pxcor 0
set heading  90
]
end

to go
ask (turtles-on patch min-pxcor 0)[
if create = true [one-turtle]]
end

您可以使用 hatch 代替 crt

请注意,新创建的海龟将继承其父级变量的值,因此如果您希望它们成为其他变量,则必须手动设置这些值。

(如果您必须请求补丁来创建海龟,则使用的基元将是 sprout。)