SETTURTLENAME (SETTNAME)
Syntax SETTURTLENAME number word 
SETTNAME number word 
 
Explanation

SETTURTLENAME takes a turtle number and a word as input and assigns that name to the given turtle. After naming turtles, you can refer to them by their numbers or names.

TURTLENAME reports the name of the current turtle. TURTLENAMES reports a list of all turtle names. Turtles have a default name of the form TURTLE.n, where n is the turtle number.

Note that a turtle can have a quoted name and its shape can have a dotted variable name.

Examples SETTURTLENAME 0 "MICKEY
SETTURTLENAME 1 "MINNIE
TELL "MICKEY 
SETX 100 
TELL "MINNIE 
SETX -100 
CLEAN 
TELL [MICKEY MINNIE] 
FORWARD 100 
TURTLENAME 
Result: MICKEY
TURTLENAMES 
Result: [MICKEY MINNIE TURTLE.2 TURTLE.3] 

TopIndex