Talk:Chatbot

From Second Life Wiki
Revision as of 08:39, 5 September 2007 by Ppaatt Lynagh (talk | contribs) (discuss Chatbot vs. the SL GUI further)
Jump to navigation Jump to search

Examples That We Could/ Should Soon Add

We could/ should soon add such concise example commands as:

llSetAlpha
zero rotation

push linear
push rotational
/7 llApplyRotationalImpulse(<3.0, 0.0, 0.0>, TRUE); // roll about the X axis
/7 llApplyRotationalImpulse(<0.0, 3.0, 0.0>, TRUE); // pitch about the Y axis
/7 llApplyRotationalImpulse(<0.0, 0.0, 3.0>, TRUE); // yaw about the Z axis
/7 llSetStatus(STATUS_PHYSICS, FALSE); llSetStatus(STATUS_PHYSICS, TRUE); // zero inertia

move away from owner, move toward owner
face the sun, turn away

name the sitting avatar

We could/ should soon add vector/ rotation arithmetic in prefix syntax (cf., the syntax of overloaded operators in C++):

"*"(ZERO_ROTATION, ZERO_ROTATION)

Chatbot vs. the SL GUI

I do think the SL GUI should let me toggle a switch to do this, i.e., to teach any prim of mine to listen to my LSL chat, for the sake of script folk like me who think by chatting. Meanwhile, I write code like this to let me chat commands to my prims anyhow. I wrote this sample just after walking thru the delightfully concise Getting Started with LSL tutorial, which only taught me to call llSetColor and llSetText.

A technique that works with the Chatbot is pasting in commands from a menu stored elsewhere. We could/ should demo how short a similar edit-compile-test can be, despite the SL GUI, if we write a script to execute one statement and print its parameters and result.