Jump to content

Mercutio Evanier

Resident
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Mercutio Evanier

  1. Fellow builders, I have question regarding the independent rotation of two or more prims within a build. Basically, I'd like a disc like prim within a linked build to rotate with a sculpted prim as well independently of the rest of the linked build. Example: A sculpted prim of a teddy bear and a vinyl record to rotate together on a record player. Any suggestions?
  2. I'm having some trouble trying to get muliple prims with the same fader script with the same settings to sync up with their fading and such. Each prim has a fader script in it with these settings. IS there a communication line needed somewhere? //How often to change texture in seconds float gTimer = 5; //Prim face to show texture //Use 'ALL_SIDES' if you wish to change all at once integer gSide = ALL_SIDES; //This is the speed for fader //Lower the number the slower it will go float gSpeed = 9; //-------Do NOT edit below here---------- integer gCurrent = 0; fCycle(integer next) { integer length = llGetInventoryNumber(INVENTORY_TEXTURE); --length; if(next > length) { gCurrent = 0; } else if(next < 0) { gCurrent = length; } } fFade2Black() { if(llGetInventoryNumber(INVENTORY_TEXTURE) > 0) { vector Color = llGetColor(gSide); if(Color != <0,0,0>) { while(Color != <0,0,0>) { if(Color.x < 0.0) Color.x = 0.0; if(Color.x != 0.0) Color.x = Color.x-gSpeed; if(Color.y < 0.0) Color.y = 0.0; if(Color.y != 0.0) Color.y = Color.y-gSpeed; if(Color.z < 0.0) Color.z = 0.0; if(Color.z != 0.0) Color.z = Color.z-gSpeed; Color = <Color.x,Color.y,Color.z>; llSetColor(Color, gSide); } } else { fFade2White(); } fCycle(++gCurrent); llSetTexture(llGetInventoryName(INVENTORY_TEXTURE, gCurrent), gSide); fFade2White(); } } fFade2White() { vector Color = llGetColor(gSide); if(Color != <1,1,1>) { while(Color != <1,1,1>) { if(Color.x > 1.0) Color.x = 1.0; if(Color.x != 1.0) Color.x = Color.x+gSpeed; if(Color.y > 1.0) Color.y = 1.0; if(Color.y != 1.0) Color.y = Color.y+gSpeed; if(Color.z > 1.0) Color.z = 1.0; if(Color.z != 1.0) Color.z = Color.z+gSpeed; Color = <Color.x,Color.y,Color.z>; llSetColor(Color, gSide); } } } default { state_entry() { gSpeed = gSpeed/5000; llSetTimerEvent(gTimer); fFade2Black(); } touch_start(integer total_number) { fFade2Black(); } timer() { fFade2Black(); } changed(integer change) { if(change & CHANGED_INVENTORY) { llResetScript(); } } on_rez(integer start_param) { llResetScript(); } }
  3. Greeting Second Life Community, Being a fairly new builder I'm having some trouble coming up with a script that will do two things. 1) Slide a door open and close up click. 2) Lock and allow myself, the owner, along with anyone else I add to the list or a group to allow them open access to the door. Those are the basics of what I desire in the script. If someone could include a system/chat messages, when clicked upon, for those with or without access, that would be great. Its a secret door with a statue, so I'd like the status/chat message to say, to those with access, something like "Upon turning the statue's ear, it begins to slide to the side and reveal a secret passage." For those without access it would say something like, "A gorgeous statue sits before you." Also any explaination of how the script works would be great. I would definately like to understand how the scripting works and what part of the script controls each part of its functions. Thanks ahead of time. :D
×
×
  • Create New...