Jump to content

Marrelda

Resident
  • Posts

    5
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank you - the question was directed towards anyone willing to answer! I knew it would be something obvious.... im guessing something like : handle=llListen(-1,"",NULL_KEY,"who"); avatar2=llDetectedKey(0); I'll have a play and see if i can make it work. Scripting is still a relatively new thing for me so I'll no doubt make a mistake somewhere
  2. Ok, I have it so it is rezzing the HUD with this script: default { touch_start(integer param) { llRezObject("HUD", llGetPos() + <0.0,0.0,1.0>, <0.0,0.0,0.0>, <0.0,0.0,0.0,1.0>, 0); } } And have added this script to the HUD: integer handle; default { listen(integer channel, string name, key id, string msg) { llRequestPermissions( (key)msg, PERMISSION_ATTACH ); } run_time_permissions( integer vBitPermissions ) { if( vBitPermissions & PERMISSION_ATTACH ) { llAttachToAvatarTemp(ATTACH_HUD_CENTER_1); llSetTimerEvent(0); llListenRemove(handle); } else { llWhisper(0, "Permission to attach denied - click the stone again if you want a new try" ); llDie(); } } on_rez(integer rez) { if(!llGetAttached()) { //reset the script if it's not attached. llResetScript(); } } state_entry() { handle=llListen(-1,"",NULL_KEY,""); llSay(-1,"who"); // llSay(0,"who"); llSetTimerEvent(30); } timer() { llWhisper(0, "Permission to attach denied - click the stone again if you want a new try" ); llDie(); } } But Its not asking for permission to rattach when it rezzes.... any idea where ive gone wrong?
  3. Yes thats what I was thinking. I'm guessing the temp attach script is the one that goes in the HUD, which should request permission to attach on rez. just need one in the object now will give it a try, thank you
  4. Hello, I was wondering if anyone could help me with a scripting query please. I have the following script that allows for an object to temporarily transfer to another avatar (not the object owner). When they touch the object, it requests permission to attach, and then when permission is granted, it attaches to them without appearing in their inventory. The script is: default { touch_start(integer num_touches) { llRequestPermissions( llDetectedKey(0), PERMISSION_ATTACH ); } run_time_permissions( integer vBitPermissions ) { if( vBitPermissions & PERMISSION_ATTACH ) { llAttachToAvatarTemp( ATTACH_HUD_CENTER_1 ); } else { llOwnerSay( "Permission to attach denied" ); } } on_rez(integer rez) { if(!llGetAttached()) { //reset the script if it's not attached. llResetScript(); } } } Now what I'm wondering, is rather than attaching the object it is inside, is it possible to change this script so it temorarily attaches an item within the contents of the object. To try and clarify incase I am not making sense (its early and I am so far without coffee...) If I have a prim, for arguments sake, a sign, at the moment the script is attaching the sign to the AV that clicks it. Can I / how would I change this so that clicking the sign actually attaches a HUD that is in the signs contents? Any assistance or advice / explanation you can give would be greatly appreciated... I'm trying to learn a bit more about scripting and this one has me scratching my head.
  5. This might be a very stupid question, but I noticed today a link to a store manager's profile embedded on the profile of a creator. I know you can use https://my.secondlife.com/First.Last to create a link that opens in browser but this was different. It was just the persons name underlined, and clicking it opened up their profile to IM them (much like a calling card). Any ideas how to do this?
×
×
  • Create New...