Is this what your after: read the info about names
or if you want to refer to an object in cowScript you can use an objects 'class' and print that: $nam = $target's class; print "[$init_obj] wants to eat some $nam";
Just rememenber.. if there are more than one of the object you can use the $target's pclass;