Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Alternative to Listens?

Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
02-27-2006 12:43
Hey guys
I'm trying my hand at scripting something I'll try and explain here.

Basically, they'll be lots of boxes, and on touch, they'll rez a mini, temp on rez version, of whatevers in the box. But I want to make sure its limited to rezzing one every so often, so that people just don't come in, click them all and its left with a big pile up.

So what I'm thinking is, when ones touched, it says something on a random channel, and all the others listen, know ones been rezzed, go into a sleep state for however long, and then the script resets to send them all back to normal.

However, on paper this seems like it may cause a bit of lag.

1. Should I be worrying about this?

2. Will it create a lot of lag?

3: What suggestions can you give?

Thanks in advance!

Zap - The worst scripter in SL.
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.
---------------
Zapoteth Designs, Temotu (100,50)
---------------
Zany Golem
Purple Freak
Join date: 30 Oct 2005
Posts: 113
02-27-2006 12:54
are all these boxes going to be linked? or just a lot of boxes just sitting around?

if linked you might check out link messages.

otherwise finding some obscure channel is probably your best bet...

Also, if all the rezzed objects are temp on rez they will die on their own within a few moments. I would think having a bunch of temp on rez items for the short period that temp on rez lasts wouldn't be an issue. Do the boxes each create really big or lots of items to where having more than 1 box rezzing items would interfere with the viewing of the items?
_____________________
-Zany
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
02-27-2006 13:12
From: Zany Golem
are all these boxes going to be linked? or just a lot of boxes just sitting around?

if linked you might check out link messages.


They're going to be seperate :(

From: Zany Golem

otherwise finding some obscure channel is probably your best bet...

Also, if all the rezzed objects are temp on rez they will die on their own within a few moments. I would think having a bunch of temp on rez items for the short period that temp on rez lasts wouldn't be an issue. Do the boxes each create really big or lots of items to where having more than 1 box rezzing items would interfere with the viewing of the items?


Yeah, its mainly kitchen sets, which would get in the way of each other, checking on the wiki, it seems to be about 2 minutes, which seems about right..

Thanks for your help!
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.
---------------
Zapoteth Designs, Temotu (100,50)
---------------
Lindsey Dassin
Fallen Angel
Join date: 14 Sep 2005
Posts: 33
Just a thought...
02-27-2006 13:28
Would it make any sense to put a listener in your temp-on-rez objects instead of the boxes? The temp-on-rez objects would listen for a "go away" command and llDie() when they receive it. The boxes, when clicked, would issue that command to the temp-on-rez objects ... then they would rez their own contents. That way you only have one of your temp objects around at a time...

Just my $.02 :)
_____________________
:wq
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
02-27-2006 13:58
That's how I handled a similar situation. The listener went into the rezzed object. The rezzer said "Die" on the known channel and waited half a second before rezzing any new objects. If the rezzed object heard this message, it killed itself (in addition to being temp-on-rez). That ensured that there was only one rezzed object around at any given time, and that was achieved with only one listener, in the rezzed object.
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
02-28-2006 05:26
aww... I'm afraid I'm misreading....
When you touch one object, do all of them rez each mini at once? Then, there is no way but using listen.
Speaking of just one listen, what about this?
1. If you touched the object, it says the command and each one rezes a mini. Then it changes the state in the script. And it executes timer event. The time comes and it returns to the default state.
2. The mini has the script of timer event and then, dies.
_____________________
:) Seagel Neville :)