AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
|
02-20-2007 19:10
Sorry for starting a new thread, but I'm sucking at searching for the answer today. So, basically, what I want to know is if I've got three or four specific strings I want to listen for on a specific channel from an object with a specific name is it better to use a single listen with an open string or a handful with specified strings? Also, while I'm here, the listen entry in the wiki says: From: someone Channels 1 2,147,483,648, and the negative of that entire range, are private channels that aren t sent to the SL client, but that other scripts can listen for. What's that all about? " 1 2,147,483,648, and the negative of that entire range" doesn't make much sense to me.
|
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
|
02-20-2007 19:22
I'm not sure on the main question, but I can tell you what the Wiki is saying - there's a typo or a character got dropped for some reason, what its trying to say is this:
"Channels 1 THRU 2,147,483,648, and the negative of that entire range, are private channels that aren t sent to the SL client, but that other scripts can listen for."
So that second mass of digits and commas should be read as "two billion one hundred forty-seven million etc", being the upper limit of available channels.
|
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
|
02-20-2007 19:26
Ah, that makes sense. Probably would have got that if I hadn't had number of viable channels at about half that. Two birds, one stone. Cool.
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
02-20-2007 21:58
ive never been a big user of the string message filter, alot of the time i usually have the persons uuid and a chat channel before opening a listen, theres 2 filters already.. if my commands are start,pause,stop im still going to have to figure out which one was said using an if tree in the listen event, so it seems redundant to have a listener for only the message "start" and later on have if (message == "start"  mutiple listens filtered by a message really works best if theres only one possible command per listen event per state
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
02-20-2007 22:54
I agree with Osgeld.
Additionally, having multiple listens open is going to create a larger 'active' footprint on your script.
Filter by person your listening to and channel...and PLEASE don't ever make a script listen on channel 0. PLEASE.
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
|
02-21-2007 08:51
All good points, thanks. Actually, I feel kinda embarresed I didn't realise the fact I'd be repeating the filtering myself. From: Kenn Nilsson ...and PLEASE don't ever make a script listen on channel 0. PLEASE. Wouldn't even think about it usually (and, whenever possible, use something else to turn listens on only when needed), but never listen on channel 0? How am I meant to fire something when an avatar speaks in general then? 
|