Using scripts to modify others' avatars?
|
|
Benjamin Savira
Registered User
Join date: 10 Aug 2008
Posts: 1
|
08-19-2008 11:44
I'm thinking of trying to develop food items that would actually modify/improve the partakers avatar or environment. For instance, the "anitoxidants" in chocolate could clean up scrap code in the avatars clothing or skin.
Is this even possible? I apologize if I sound like a noob, but it would be sweet to see this idea come to life (or Second Life).
|
|
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
|
08-19-2008 11:51
You can't control non-prim stuff on an avatar - there's just no scripting access to things like shirts and pants and such.
If you wanted to hack the client up (it's open source) you might be able to do it but it could be expensive - any change in the non-prim parts of an avatar causes a rebake..
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!! - Go here: http://jira.secondlife.com/browse/SVC-1224- If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left
|
|
Jahar Aabye
Registered User
Join date: 14 Mar 2007
Posts: 58
|
08-19-2008 23:06
I have seen a number of roleplaying systems in SL where one can click on scripted objects or food and have it modify their HUD, systems like DCS, CCS, Safezone, etc.
However, for obvious reasons the methods to scripting objects to do this are trade secrets. You would generally need permission from the creator/administrator of that system, who in most cases would give you some sort of no-mod script and instructions for how to use it. Alternatively, you might be able to sell the models to them to script, or sell the models to a company that already has permission to script into that system.
So while you can't directly script these things, people have created systems to allow it to happen. That would be my suggestion for where to start.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-20-2008 00:16
From: Jahar Aabye I have seen a number of roleplaying systems in SL where one can click on scripted objects or food and have it modify their HUD, systems like DCS, CCS, Safezone, etc.
However, for obvious reasons the methods to scripting objects to do this are trade secrets....
So while you can't directly script these things, people have created systems to allow it to happen. That would be my suggestion for where to start. Err...you mean like a touch/say/listen type thing? Trade secret? :-/ Modifying a HUD is one thing (which is easy as pie, in fact); modifying SL avatar clothes, skin, shape, etc. is another. At this point it requires a custom client (in which I am including proxy-like solutions that inject packets between the viewer and SL servers).
|
|
Jahar Aabye
Registered User
Join date: 14 Mar 2007
Posts: 58
|
08-20-2008 21:13
touch_start(integer touched) { llSay(commchannel,stuff); }
isn't a trade secret, no.
The specific commchannel, how to get the commchannel if it's dynamic, and the format for what to say usually are trade secrets, however. The people who create the system generally don't want every Tom, Dick, and Harry to be able to affect it.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-21-2008 01:13
From: Jahar Aabye The specific commchannel, how to get the commchannel if it's dynamic, and the format for what to say usually are trade secrets, however. The people who create the system generally don't want every Tom, Dick, and Harry to be able to affect it. Ah. Yes. Hooking into a SPECIFIC system might be problematic. Is that what the OP was asking about, or was it a question about how such functionality works, and how a system can be built? I interpreted it as the latter.
|
|
Jahar Aabye
Registered User
Join date: 14 Mar 2007
Posts: 58
|
08-21-2008 22:20
Ah, it appeared to me that he was not aware of such systems in general, and was asking if it could be done using the standard default SL settings.
In any event, building such a system from the ground up might not be too difficult if it were simple, but depending on how complex he wanted it to get, it could become a much larger project. And then of course one must convince a large number of people to use the system.
If he simply wishes to make an object to do those things, his best bet might be to try to build it to work with existing systems. If he's more interested in the technical stuff of getting everything to work, then yeah, I suppose he'd want help on how to build the system.
|
|
Casandra Kumsung
Registered User
Join date: 6 Sep 2006
Posts: 93
|
My avatar was messed up
08-22-2008 16:44
At a sand box. Some lurks caused it to be all stretched out, like taffy. So it is possible to change someone avatar but not ethical. I had to log out of SL to get my avatar back.
The thing is there are transformation groups that would like to be able to go into a machine and be changed into a girl, cow, horse dog etc and not know which will happen. But at least giving permission would be acceptable. Like when you click a dance ball in a club and it asks if it can animate your avatar.
|
|
Jahar Aabye
Registered User
Join date: 14 Mar 2007
Posts: 58
|
08-22-2008 20:00
Ah, those "deformers" work by triggering animations that deform the avatar. They work, in general, by rezzing an invisible prim around the avatar in such a way that it is likely that the avatar will click on it by accident. The prim is set so that left-clicking automatically causes the person to sit on it. When sitting on an object, the object has implicit permission to trigger animations in the sitting avatar, so the object can trigger the deforming animations.
There are modifications to the "Stop All Animations" devices out there that include triggering animations that seem to work in reversing the deformation so that you don't have to relog. These are usually available as freebies, and I have a few transferable copies, so I'll send you one when I log in next. There are also some gestures that do the same. I found that sometimes the object will fix all but one limb, and then the gesture will fix all but another limb, so using both fixes everything.
In terms of going into a machine and having it affect the avatar, that would be very difficult to do. Unfortunately, there is no way for an object to affect non-prim clothing, shapes, or skins. Objects can attach or detach from avatars IF they are scripted to do so AND IF they are owned by that avatar. However, it is possible that some of the Restrained Life capabilities would allow for more options.
|
|
Casandra Kumsung
Registered User
Join date: 6 Sep 2006
Posts: 93
|
Thanks Jahar Aabye
08-22-2008 22:06
for your information. It was very helpfull.
|