With all the activity around Second Life at the moment, and the availability of an HTTP call from SL (Second Life) to RL (Real Life) I've decided its time to starting spending more time in SL.
First project was to create a virtual Nabaztag. I went down to the main sandbox area and built a simple Nabaztag out of three white cones and some small blacks prims for the eyes and mouth. I'm sure I saw on the Nabaztag web site that someone had already done one but couldn't find the link. Mine's not brilliant, but it's really the scripting I'm interested in.
The script was fairly straight forward. LSL (Linden Scripting Language) is quite C like, and very event driven. So there's a start-up even to initialise it, then a listen script to wait for someone to talk to it, that then calls the REST call to nabaztag.com to send the message, and then a final event that triggers when the response to the REST call comes in. Tested it out and it all worked quite happily. SL to RL communications at last. Chatbots here we come.

Leave a comment