Difference between revisions of "Talk:Chatbot"
Jump to navigation
Jump to search
m (I do think the SL GUI should let me toggle a switch to do this) |
m (reformat with section headings) |
||
Line 1: | Line 1: | ||
== Examples That We Could/ Should Soon Add == | |||
We could/ should soon add such concise example commands as: | |||
<pre> | <pre> | ||
Line 20: | Line 20: | ||
</pre> | </pre> | ||
We could/ should soon add vector/ rotation arithmetic in prefix syntax (cf., the syntax of overloaded operators in C++): | |||
<pre> | <pre> | ||
"*"(ZERO_ROTATION, ZERO_ROTATION) | "*"(ZERO_ROTATION, ZERO_ROTATION) | ||
</pre> | </pre> | ||
== 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 [[Help:Getting_started_with_LSL|Getting Started with LSL]] tutorial, which only taught me to call [[llSetColor]] and [[llSetText]]. |
Revision as of 07:34, 5 September 2007
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.