Programming AI with Leaf/Development/How to change Leafs name

From Wikibooks, open books for an open world
Jump to navigation Jump to search

How to change the name of your Leaf[edit | edit source]

As always you should back up your files before changing anything.

Open your Leaf.lisp and use the Find function (In LispWorks this is in the Edit menu) and search for "NAME YOUR ROBOT" with the "".
In the line below it where it says (defconstant robot "Leaf") is where you change your robots name so go ahead and take your pick, just change "Leaf" to what you want.

Save the file, compile and close it, now open your Speech.xml and add your robots name to the end of the list of names and save the file.

That's it, next time you start up Leaf your robot should respond to its new name.