Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

World Wide Script Activation

Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
04-19-2007 20:13
I want to activate a script from anywhere within SL - how would I do this? - A pointer to an existing script would be appreciated so I can see how it works.

Tarak
:)
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
04-19-2007 20:40
The easiest method is to use a trigger script that will llEmail() the object (script) you wish to trigger.
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
04-19-2007 21:45
From: DoteDote Edison
The easiest method is to use a trigger script that will llEmail() the object (script) you wish to trigger.


Well, more than that, llEmail() is really the *only* prim to prim communication method that works between any two arbitrary points, according to the LSL Wiki entry for communication. And there really isn't any avatar-to-prim method, so you are kind of stuck with that :)


.
_____________________
Vi Shenley
Still Rezzing
Join date: 24 Oct 2006
Posts: 103
04-20-2007 06:37
No idea if this would work really, just musing, but could you not teleport a phantom temp on rezz object to the location of the script that you wish to activate, and have it chat an activate command to it on a channel?
Cindy Crabgrass
Crashed to Desktop
Join date: 9 Sep 2006
Posts: 158
04-20-2007 07:03
From: Vi Shenley
No idea if this would work really, just musing, but could you not teleport a phantom temp on rezz object to the location of the script that you wish to activate, and have it chat an activate command to it on a channel?


You cant teleport objects, not even avatars can be teleported directly on long range.

Email sucks, you rez an Object, save the Key and can send Email to it.
Rez a new one, get a new Key... dammit.
But it works.

Another Way to communicate is to run an external server and use HTTP and/or XMLRPC.
Its a bit more complicated, but you dont need the Key/UUID of the Object for that.
I tried a simple Demo like this : Object opens XMLRPC Channel, sends Channel ID by
HTTP, Server answers back by XMLRPC. Now Communication works in 2 Ways, without
the need to 'poll' all the time.
Vi Shenley
Still Rezzing
Join date: 24 Oct 2006
Posts: 103
04-20-2007 08:18
From: Cindy Crabgrass
You cant teleport objects, not even avatars can be teleported directly on long range.

Email sucks, you rez an Object, save the Key and can send Email to it.
Rez a new one, get a new Key... dammit.
But it works.

Another Way to communicate is to run an external server and use HTTP and/or XMLRPC.
Its a bit more complicated, but you dont need the Key/UUID of the Object for that.
I tried a simple Demo like this : Object opens XMLRPC Channel, sends Channel ID by
HTTP, Server answers back by XMLRPC. Now Communication works in 2 Ways, without
the need to 'poll' all the time.


Maybe teleport is the wrong term, but the wiki does refer to llSetPrimitiveParams() and llSitTarget() being used to fake short-range teleports. So let me correct my statement, and suggest that an object be fake teleported to the script with a chat on channel x activate command. The wiki also goes on to say:

Another, albeit slightly more complex, method of "faking" a teleport between two points is to have the avatar sit on an object and move the object. LibraryWarpPos can do this over great distances instantaneously, even through objects, and as such gives the appearance of teleportation. The object would probably then unsit the avatar and move back to its original position, as is done in LibraryTeleporter.

Does WarpPos 'need the avatar' to send the object over great distances? Are 'great distances' still only within a sim, or can global coordinates be used to get an object from one sim to another?
Sys Slade
Registered User
Join date: 15 Feb 2007
Posts: 626
04-20-2007 08:50
WarpPos was broken. Don't know if they ever repaired it, or if you still need the various fixes that were posted.

Anyway, to move to an object in order to send communication over chat, you would have to know exactly where that object was in relation to where your target object is. Good for objects you place, bad for objects placed by others.
You'd possibly run into problems when crossing sims as well, as coordintes are measured from 0,0,0 in the sim.
Another consideration, a single "object entry" ban between the 2 points would break your moving object.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
04-20-2007 12:47
From: Sys Slade
WarpPos was broken. Don't know if they ever repaired it, or if you still need the various fixes that were posted.

Anyway, to move to an object in order to send communication over chat, you would have to know exactly where that object was in relation to where your target object is. Good for objects you place, bad for objects placed by others.
You'd possibly run into problems when crossing sims as well, as coordintes are measured from 0,0,0 in the sim.
Another consideration, a single "object entry" ban between the 2 points would break your moving object.



To say nothing of void sims
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
04-26-2007 18:32
Thankyou all - And thanks Cindy for the added in World Support.

Tarak
:-)