Jump to content

Todd Sivith

Resident
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Todd Sivith

  1. Thanks all for the input everyone, like I said I don't have a lot of LSL experience and it shows. I will try the suggested fixes and see if I can fare better. And yes Zhaoying, this is just for a rezzed object.
  2. Hey all, I'm fairly new to scripting. I have a little experience with XML and HTTP. I've searched all over and tried multiple different LSL script variations (and more than likely it's just because I've gone down the rabbit hole and the answer is obvious), but I'm trying to make a simple script to push a button down and have it pop back up. It will have a whitelist and a sound as well when it's pushed. It's a linked prim #2 of 2. Here's what I have so far, I have the script inside the linked #2 prim. The sound plays, but the button does not move. (I haven't put the whitelist ID#s in yet) Added picture- the white part is the prim I want to move down then up after a short delay. Thank you for your help! list gAvWhitelist = ["","",""]; integer toggle = -1; integer toggle2 = -1; move(vector direction) { integer p = 0; integer n = 10; for (; p < n; ++p) { llSetPos(llGetPos() + direction); } } default { touch_start(integer total_number) { list Properties = llGetObjectDetails(llGetKey(),[OBJECT_CLICK_ACTION]); integer Click = llList2Integer(Properties,0); if (!Click && (~llListFindList(gAvWhitelist,[(string)llDetectedKey(0)])) ) { llPlaySound(llGetInventoryName(INVENTORY_SOUND,0), 1); } { toggle = ~ toggle; if(toggle) llSetTimerEvent(1); else llSetTimerEvent(0); } } timer() { toggle2 = ~ toggle2; if(toggle2) move(<0,0,-0.5>); else move(<0,0,0.5>); } }
  3. Geeze, thank you Rolig. I had them outside the test 🙃 Thank you so much for your assistance.
  4. I'm having a brain fart on this one.... I'm sure it's just obvious, but I'm tired and just can't see where I made the mistake. I'm back to SL after about a 10 year hiatus, and trying to pick up the scripting and such again with builds. Help please. Trying to make a simple check for group > if in group allow touch to turn object transparent on/off, if not in group doesn't allow touch. key kGroup = llList2Key(llGetObjectDetails(llGetKey(),[OBJECT_GROUP]),0); default { touch_start(integer total_number) { llSetAlpha(0.0, ALL_SIDES); state texture; } if ( ( kGroup != NULL_KEY) && (llSameGroup(llDetectedKey(0)) ) { Dialog(llDetectedKey(0), MENU1); } } state texture { touch_start(integer total_number) { llSetAlpha(1.0, ALL_SIDES); state default; } if ( ( kGroup != NULL_KEY) && (llSameGroup(llDetectedKey(0)) ) { Dialog(llDetectedKey(0), MENU1); } }
  5. I've found the same thing Kytteh. I've been playing around trying to figure it out, but I get no response from anyone that I've asked. I think it's their way of eliminating any competition for lindens. 🤨
  6. Thank you so much! You guys are amazingly awesomesauce! :smileyvery-happy:
  7. apparently photobucket is either being very slow updating URLs or something... anyways the bad candle the scrit I have works great for making the flame texture "dissapear" when it's off, but when it is touched to turn "on" the texture is still transparent causing the flickering flame animated texture to be tinted whatever color is behind the "flame" instead of a fully opaque texture
  8. I'm new to trying to script stuff, and I've gotten a lot of insight from this site so first off thank you to all you wonderful people that are way smarter about scripting than I am! I'm trying to make a script for a candle flame to make the flame appear when touched. I have the prim shape and texture already done, as well as the scripting to turn the light and glow on and off. However the alpha script I'm trying makes the whole prim invisible even when the light is on, and I want it to be a visible prim when the light is on so that the actual candle flame glows. Here's my very simple alpha swap script. default { touch_start(integer total_number) { llSetAlpha(0.0, ALL_SIDES); } } state texture { touch_start(integer total_number) { llSetAlpha(1.0, ALL_SIDES); } } Here's how the candle looks with the script I have which turns the whole texture transparent all the time apparently Bad Candle And here's how I want it to look when the candle is lit Good Candle
×
×
  • Create New...