Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need a pretty basic "Avitar-capture" script

Lota Lyon
Registered User
Join date: 5 Oct 2006
Posts: 245
01-17-2007 11:29
I am in need of a pretty basic capture script to allow an avitar chasing another to freeze the "prey" avitar when contact is made and to keep it frozen for 30 seconds. A drop down menu with options to "Release", "Re-Freeze", "Collar", "Bind Arms", "Froce to Knees" will be produced upon capture which will give the chaser options as long as within say a 5 meter radius of the captured Avitar. I'd prefer the script have a timer that begins as soon as the phatom ring containing the script is attached and deactivates after 90 minutes, or if removed before time expires. I have done a couple simple scripts to date and have been studying more complex ones and I'm pretty certain if I had a very rudimentary public domain capture/prey script set I could make the mods that would give the scripts the features I wish. So far I havn't been able to find such a script posted or referanced to. Does anyone know of such a set of pred/prey capture scripts and if so how might I obtain them? This project is not connected with any commercial venture but rather it will be a totally free to join group of several personal friends and anyone else interested. I've set aside on a section of land for this and have a 3 story building finished so now I just need the scripts... the hardest part it seems. Thank you for your time reading my question and have a great day!

Lota
Jessica Hull
Registered User
Join date: 11 Sep 2006
Posts: 3
01-17-2007 12:38
I'm not too surprised you have not seen the source posted for this anywhere, I don't believe I've ever seen such a script, oddly enough. I'm not going to take the time to write it for you just now because it would take a little bit of work, but I can imagine how it would be done and it shouldn't be too difficult.

Basically, if the script is going to control the prey then the prey will probably have to be wearing a scripted item.. I suppose in theory you could have one central item that could take control of the prey's keys but I'm not sure how reliable this would be at range. But basically, the prey would wear a scripted item with a built in sensor that would detect nearby avatars. If an avatar gets within a certain range, say one meter, it would use a timer event to seize control of the prey's keys for a given amount of time and present the capturer with a dialog box and some options - these options would issue commands to the scripted item the prey is wearing that might be linked to an animation override or lengthen the amount of time the prey is immobile or any functions you might want to make available.

Like I said, there's a bit of work in it but the script would really be composed more of a lot of fairly simple elements rather than anything particularly challenging. No trigonometry here at least. :)