|
Bahaar Babcock
Registered User
Join date: 28 Apr 2006
Posts: 9
|
06-27-2008 13:17
I am new to SL Scripting and have been tasked by my school to create a training session inside Second Life. (Hooray, me! <sigh>  The setup is this: Suppose I have a "master object"..say a desk..that is rez'd up. It has, in its inventory, another object which is just a "cut out" of a person. When clicked, I would like the desk to rez-up the cut-out and place it before the desk. 1: Can I do that? Carrying on... (and I'm not sure yet exactly what I'm going to be doing, so these are only "suppose" examples). Suppose now that the user is talking (however I might manage THAT feat) and the script decides that the "cut out" should leave. I'm pretty sure I can use some sort of llDie command to de-rez the cut outl. BUT...after the cut out is gone I want a DIFFERENT cut out to appear. Assuming this 2nd cut out is also in the desk's inventory... 2: Is there a way to send a message from one object "on the map" to another object that is also "on the map" but aren't linked? 3: Failing that, is there a way to rez-up the first cut out and have it linked to the desk so that that inter-object messages can be sent using that method? Thanks for the insights. ---Bahaar Babcock
|
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
06-27-2008 13:27
Sure.. Check out http://wiki.secondlife.com/wiki/LlRezObject on how to rez stuff from an objects inventory. For object/object comms, using some form of chat is probably your best bet, if the objects are in the same region. See the topics under http://wiki.secondlife.com/wiki/Category:LSL_Communications .
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
06-27-2008 13:29
Not really much to add there, except that it is good to remember that you can pass one integer to the rezzed object as a parameter without any sort of chat - and quite a bit can be stored in one integer. (At the least, you can store a channel that it should listen on for further instructions.)
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!
http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal
http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
06-27-2008 15:35
Also, for a cut out, which I assume is a single prim object, you might simply make it a part of the desk and show/hide/retexture it when appropriate. Showing and hiding it can be done with transparency (e.g. llSetAlpha()), and/or you could move the cut out child prim in and out of the the desk's shape to hide it completely.
|
|
ArchTx Edo
Mystic/Artist/Architect
Join date: 13 Feb 2005
Posts: 1,993
|
06-28-2008 21:24
Check out this thread for a menu based rezzer /54/a0/221457/1.html
_____________________
 VRchitecture Model Homes at http://slurl.com/secondlife/Shona/60/220/30 http://www.slexchange.com/modules.php?name=Marketplace&MerchantID=2240 http://shop.onrez.com/Archtx_Edo
|
|
Bahaar Babcock
Registered User
Join date: 28 Apr 2006
Posts: 9
|
07-02-2008 04:54
Thank you all for the insight. I'll get busy studying the links and working out a solution.
---Bahaar Babcock
|