>
> I am pretty new in netlogo's world, I wonder if you can help me with a simple question.
>
> How can I ask a turtle to inform me about his ID?
>
> I know how to use the who function to select a particular turtle but I do not know how to ask the turtle to give me ID.
>
> The dictionary says: "
> You can use the turtle reporter to retrieve a turtle with a given
> who number" but I cannot find out how to do it from the code
>
Hi Manuel -
You should probably take a look at the variables section of the
programming guide:
http://ccl.northwestern.edu/netlogo/docs/programming.html#variables
turtles can access their own variables directly, for example.
ask turtles[ print who ]
will print the who numbers of all the turtles to the command center.
the observer can access turtle variables using OF, for example:
print [who] of turtle 0
will print '0' to the command center.
hope this helps.
esther
.