| Scripting Discuss scripting for SL and other platforms |
| |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Junior Member ![]() Join Date: Oct 2008
Posts: 1
| Scripting hurdle to overcome! Hello, I am a post-graduate student part of a project to convert some philosophical language games into the Second Life Universe. We are at the moment trying to construct a pile of pillars, such that upon clicking on the pile, it attaches a pillar to your arm. The idea being that you are picking a pillar up off a pile. We have been scripting it so that upon clicking the pile of pillars, it produces a single pillar next to the pile, which if you then click on, it asks if you would like to attach that pillar to your arm. Our problem is, that if you are not the owner of the pillar, it denies you from doing this. The only person who can pull it off succesfully is the original owner of the pile of pillars, and the pillar inside it. Is there some way around this issue of ownership, other then having it first placed into your inventory. Our aim is to side-step as much of the Second Life interface as possible when participating in this language game. Thanks for any help! Matt |
| | |
| | #2 (permalink) |
| The Purple ![]() ![]() ![]() ![]()
Kinda at work. Somewhat.
Join Date: Dec 2007 Location: Somewhere purple, Germany
Posts: 3,096
My Mood: | Sadly (and thankfully) no, there is no wayto autochange owners or attach non-owned things to an avatar. The only way would be for the pillor to be set leftclick-pay for 0l first. then after buy and CHANGED_OWNER (buying the original so nothing lands in the inventory), change leftclick to touch and attach. |
| | |
| | #4 (permalink) | |
| Doing stuff ![]() ![]() ![]() ![]()
Happles!
Join Date: Sep 2007 Location: Glasgow, Scotland
Posts: 2,778
My Mood: SLShopper Ads: 1 SL Join Date: 14/10/2006
Business: MagoTek Industries | Using the built in buy system to buy the original, is the only way to transfer an inworld object without it passing through an inventory.
__________________ Wounds, both physical and mental, heal in time. bones reknit, therapy and drugs make you forget. Life goes on. But nothing cures death. Please remember this. Quote:
| |
| | |
| | #5 (permalink) |
| Account Closed Join Date: Sep 2008
Posts: 2,137
| Another option is to have the players wear a scripted attachment that contains a pillar in its contents. Then, when a player clicks on one of main pillars in the game, it could then say the avatar's name or key on a backchannel. The attachment then listens on that backchannel, and if it hears the correct line, it then rezzes a copy of the pillar from inventory, which could then be attached to the arm. Personally, I think that this is the best option. The downside is that they would have to obtain and wear the attachment first, but that could be done pretty easily by putting a box next to the pillars with a sign saying "Get your FREE game attachment by clicking HERE" or some such. |
| | |
| | #6 (permalink) |
| Rain Pixie ![]() ![]()
Identity duplicated due to
technical difficulties...
Join Date: Dec 2008 Location: Concentrate and ask again
Posts: 196
SL Join Date: Years ago :P | the attachment route is probably the most user friendly way to go, with one modification to Jahar's idea. Make the attachment a hidden pillar, then when the user clicks on a pillar, unhide it, and delete or hide the one in the pile. It's not the same pillar, but you can pretend it is. That way there's no need to attach anything via script at all. |
| | |
| | #7 (permalink) |
| Baby Baroness ![]() ![]() ![]() ![]()
Pew pew pew.
Join Date: Jun 2007
Posts: 4,010
My Mood: SLShopper Ads: 4 SL Join Date: 2005.10.28
Business: Desperation Isle Estates | But is it possible for a rezzed in-world object to become an attachment? I thought attachments could only come straight from inventory?
__________________ Desperation Isle Estates: Great prices, great neighbors, great service! New Desperation Isle: The prettiest BDSM Playground and Fetish Mall in SL! Desperation Isle Productions: Scripted skyboxes for lots (and budgets) of all sizes! Wildefire Walcott's Mistressy Musings: My blog about D/s and BDSM in Second Life. |
| | |
| | #8 (permalink) | |
| Rain Pixie ![]() ![]()
Identity duplicated due to
technical difficulties...
Join Date: Dec 2008 Location: Concentrate and ask again
Posts: 196
SL Join Date: Years ago :P | Quote:
. But a pain, like mentioned above it only works for the objects owner (because attaching to someone else would involve transfering ownership), and you always have to ask for permission.Used it once to auto attach some vehicle huds. Slightly better than just giving them the hud and saying attach it from inventory when using vehicle. The problem was that it could end up putting a bunch of copies in their inventory if they always used it that way. | |
| | |
| | #9 (permalink) |
| Wordcrafter ![]() ![]()
Always in Motion
Join Date: Jun 2008 Location: Cleveland, OH
Posts: 452
My Mood: SL Join Date: June 3, 2008
Business: DG Productions Blog Entries: 5 | What about setting up a temporary group for the game and having people join it to play. Then the objects could be set to owned by the group and you'd have no problem. Would this be feasible for your game? --- Rema |
| | |
| | #10 (permalink) | |
| Rain Pixie ![]() ![]()
Identity duplicated due to
technical difficulties...
Join Date: Dec 2008 Location: Concentrate and ask again
Posts: 196
SL Join Date: Years ago :P | Quote:
| |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |