Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

create objects from script

Dominique Laville
Registered User
Join date: 24 Apr 2008
Posts: 84
05-15-2008 01:07
can a object in second life create new objects ?

I would like to have a box that when I touch it, other 4 spheres are created.

thanks
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
05-15-2008 01:18
No. But you can make an object rezz objects that are in the object's inventory.
You can even put a copy of an object in it's inventory and make ii rezz itself.
Take a warning!!! If you make self replication that way you may overflow a SIM in no time!
You will run the risk of getting mad neighbors and getting punished by LL
_____________________
From Studio Dora
Dominique Laville
Registered User
Join date: 24 Apr 2008
Posts: 84
05-15-2008 01:31
what's a "rezz object" ? sorry, can you explain how it should work ? thanks!
Dominique Laville
Registered User
Join date: 24 Apr 2008
Posts: 84
05-15-2008 01:34
oh, you mean this!

Rez
When you create an object within SL, you "rez" it. Yes, it's a verb. Let's conjugate it! "I rezzed a prim." "I will rez a prim." "I am rezzing a prim."

so i create the objects in the object inventory and then I can decide when to add them in my land by script, right ?

which is the llfunction to rez objects on the land ?
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
05-15-2008 01:35
rezz is SL slang and means creating an object in the SL world.
Dragging an object from your inventory to the ground is rezzing it...
_____________________
From Studio Dora
Dominique Laville
Registered User
Join date: 24 Apr 2008
Posts: 84
05-15-2008 02:48
Is possible to edit the script of an object inside another object inventory ?

Or should I rez it, then edit it, and put it again inside the inventory ?

I can't access to the object scripts if they are inside another object inventory.
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
05-15-2008 03:03
llObjectRez(something) -> (on rez a script activates to something to create diffrent shapes)

forget what the name is
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
05-15-2008 04:12
From: Dominique Laville
Is possible to edit the script of an object inside another object inventory ?

It is not possible
From: Dominique Laville
Or should I rez it, then edit it, and put it again inside the inventory ?

Thats the way to do it
From: Dominique Laville
I can't access to the object scripts if they are inside another object inventory.

Right again
_____________________
From Studio Dora
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
05-15-2008 05:07
Just to copleat the definition of Rez, also from the wiki:
"The term comes from the 1980s movie Tron, in which the word "de-rezz" was used as shorthand for saying that an object had "de-resolved", or faded out. So, to "rez" an object is to make it come into resolution."
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
05-15-2008 05:31
From: Very Keynes
Just to copleat the definition of Rez, also from the wiki:
"The term comes from the 1980s movie Tron, in which the word "de-rezz" was used as shorthand for saying that an object had "de-resolved", or faded out. So, to "rez" an object is to make it come into resolution."


I didn't know it came from Tron. That's cool.

To avoid the off-topic: http://lslwiki.net/lslwiki/wakka.php?wakka=llRezObject
Dominique Laville
Registered User
Join date: 24 Apr 2008
Posts: 84
05-15-2008 09:31
thanks guys :)

both for the historical information and technical help :)
Dominique Laville
Registered User
Join date: 24 Apr 2008
Posts: 84
05-15-2008 11:13
I still have 2 questions:

- can an object move another one ? should it work with the listen to/shout/ whisper command ?

- how can I add the label with some text above my objects ?

thanks
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
05-15-2008 15:13
From: Dominique Laville
I still have 2 questions:

- can an object move another one ? should it work with the listen to/shout/ whisper command ?

yes! A script in one object can push another physical object. A physical object can move another physical object by bumping in to it. A scripted object can move if the script commands it to move. Otherwise no.
From: Dominique Laville
- how can I add the label with some text above my objects ?

I get the feeling you have not done any reading about scripting?
Try: http://www.lslwiki.net
and http://wiki.secondlife.com/wiki/LSL_Portal
but start reading one of the scripts you most certainly got with a box you purchased called 'Floating text' or 'Hover Text'
_____________________
From Studio Dora