These forums are CLOSED. Please visit the new forums HERE
environment variables? |
|
|
darwinian Darwin
Registered User
Join date: 22 Sep 2008
Posts: 2
|
09-25-2008 04:27
when talking on some channels, I've found on my machine that some keywords automatically translate into channel numbers. for example, /xxx hello might turn into /145647 hello. is it possible to set up some kind of environment variables to assign channel numbers to keywords?
|
|
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
|
09-25-2008 07:37
/me has never heard of that before.
I'm guessing "/xxx hello" is something you made up. Can you give a real example? _____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224 - If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left |
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
09-26-2008 03:25
I think you may be looking for gestures.
I have not personally played with them, so I am not sure if scripts can use them, but IIRC it will translate a string in text and fire off animations, sounds etc. The general LS Wiki may help. _____________________
House of Keynes http://slurl.com/secondlife/Seopophang/237/151/104
![]() Romantica Yacht Club http://slurl.com/secondlife/Jeffrey/58/227/26 Salsa Romantica http://slurl.com/secondlife/Seopophang/77/91/94 |
|
Zhenya Vlodovic
Registered User
Join date: 23 Sep 2008
Posts: 40
|
09-26-2008 07:29
I think what's being requested is a substitution for what's typed into chat, and that's not really a scripting question.
For example, you might like to be able to type /sword draw instead of /27 draw Can you do that with gestures? |
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
09-28-2008 10:58
Sure. Create a gesture which replaces chat instances of "/sword" with "/27", and the substitution will be made before chat is heard. Note that this will apply to all instances of the string "/sword", not only those at the beginning of a chat string, but if the key phrase is sufficiently obscure, it shouldn't interfere with normal conversation.
A long time ago I wrote gestures to replace "/aon" and "/aof" with "/1 ao on" and "/1 ao off", respectively. (Though I should probably just switch to a HUD ao and dispense with the open listens.) |