Jump to content

CataeaAstrielle

Resident
  • Posts

    8
  • Joined

  • Last visited

Everything posted by CataeaAstrielle

  1. So I used LSL color in the vector color place where the wiki shows to, but I def misread the wiki for SetColor. Been staring at this for days now and just glazed right over. Thank you so much! It's alive!!
  2. So I've gotten the HUD to work and added a couple LlOwnerSay messages in there to make sure the correct msg is being processed. But the prim color and vector color are just not processing and I'm not sure why. This is the latest listener script: integer chan = 15113234731; // ================== default { state_entry() { llListen(chan,"",NULL_KEY,""); } listen(integer channel, string name, key id, string msg) { llOwnerSay(msg); if(msg == "gold") { llOwnerSay(msg + " if statement has been processed."); llSetColor(<226,201,111>, ALL_SIDES); llSetPrimitiveParams([PRIM_SPECULAR, ALL_SIDES, "85b41f09-515a-0886-7c50-a8675d5e60af", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <1.0, 1.0, 0.0> , 75, 0]); } if(msg == "rose gold") { llOwnerSay(msg + " if statement has been processed."); llSetColor(<240,158,111>, ALL_SIDES); llSetPrimitiveParams([PRIM_SPECULAR, ALL_SIDES, "85b41f09-515a-0886-7c50-a8675d5e60af", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <1.0, 0.502, 0.0> , 75, 0]); } if(msg == "silver") { llOwnerSay(msg + " if statement has been processed."); llSetColor(<168,168,168>, ALL_SIDES); llSetPrimitiveParams([PRIM_SPECULAR, ALL_SIDES, "85b41f09-515a-0886-7c50-a8675d5e60af", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <1.0, 1.0, 1.0> , 75, 0]); } if(msg == "gunmetal") { llOwnerSay(msg + " if statement has been processed."); llSetColor(<67,67,67>, ALL_SIDES); llSetPrimitiveParams([PRIM_SPECULAR, ALL_SIDES, "85b41f09-515a-0886-7c50-a8675d5e60af", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <0.502, 0.502, 0.502> , 75, 0]); } } }
  3. I've been doing pretty ok with basic scripting, but ran into an issue I can't seem to figure out. I have a HUD script and listener script (placed in a piece of jewelry). Trying to get the HUD to change only the tint and vector color when each box is clicked. Zero idea where I'm going wrong. Any help would be greatly appreciated. HUD script: integer chan = 15113234731; // ------------------------------------------------------------------------------ Face All_Sides :: Metal // Gold string clrgld = "gold"; // Rose Gold string clrrgld = "rose gold"; // Silver string clrslvr = "silver"; // Gunmetal string clrgnmtl = "gunmetal"; // =============================================================================================================== default { changed(integer change) { if (change & CHANGED_OWNER) // Makes sure it's changing the CURRENT OWNER's object, rather than previous owner { llOwnerSay("Script owner changed; resetting"); llResetScript(); } } state_entry() { llListen(chan,"",llGetOwner(),""); } touch_start(integer total_number) { // Options for All_Sides :: Metal if (llGetLinkName(llDetectedLinkNumber(5)) == "gold") { llRegionSay(chan,clrgld); } if (llGetLinkName(llDetectedLinkNumber(4)) == "rose gold") { llRegionSay(chan,clrrgld); } if (llGetLinkName(llDetectedLinkNumber(3)) == "silver") { llRegionSay(chan,clrslvr); } if (llGetLinkName(llDetectedLinkNumber(2)) == "gunmetal") { llRegionSay(chan,clrgnmtl); } } } Listener script: integer chan = 15113234731; // ================== default { state_entry() { llListen(chan,"",NULL_KEY,""); } listen(integer channel, string name, key id, string msg) { if(msg == "gold") { llSetColor(<226,201,111>, ALL_SIDES); llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "85b41f09-515a-0886-7c50-a8675d5e60af", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <1.0, 1.0, 0.0> , 75, 0]); } if(msg == "rose gold") { llSetColor(<240,158,111>, ALL_SIDES); llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "85b41f09-515a-0886-7c50-a8675d5e60af", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <1.0, 0.502, 0.0> , 75, 0]); } if(msg == "silver") { llSetColor(<168,168,168>, ALL_SIDES); llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "85b41f09-515a-0886-7c50-a8675d5e60af", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <1.0, 1.0, 1.0> , 75, 0]); } if(msg == "gunmetal") { llSetColor(<67,67,67>, ALL_SIDES); llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "85b41f09-515a-0886-7c50-a8675d5e60af", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <0.502, 0.502, 0.502> , 75, 0]); } } }
  4. Thank you so much! I appreciate all your help. So much to learn!
  5. I appreciate your answer! And it does work, however the states seem to be sequential and not simultaneous.
  6. Hello! I am BRAND new to scripting, and wrote up two separate scripts that I'm trying to now combine to get a candle flame to animate, toggle on and off by touch, and glow (also toggled). I keep getting a syntax error and just have no idea where I'm going wrong. I'd LOVE to have the script put in the object itself and not just the specific face in the linkset, but that seems beyond my understanding at this point. Any help would be greatly appreciated. integer OFF = TRUE; integer toggleState = 0; // 0: Normal state, 1: Active state integer faceToToggle = ALL_SIDES; // Replace with the face number you want to control default { state_entry() { llSetTextureAnim (ANIM_ON | LOOP, ALL_SIDES, 5, 2, 0, 0,14.0); llSetAlpha(1.0, ALL_SIDES); } on_rez(integer start_param) { llResetScript(); } touch_start(integer num) { if(llDetectedKey(0) == llGetOwner()) { if(OFF) { llSetAlpha(1.0, ALL_SIDES); OFF = FALSE; { // Toggle between states on touch toggleState = 1 - toggleState; { // Turn off glow, set full bright to false, set transparency to 100 llSetPrimitiveParams( [PRIM_GLOW, faceToToggle, 0.0, PRIM_FULLBRIGHT, faceToToggle, FALSE]); llSetLinkAlpha(LINK_THIS, 0.0, faceToToggle); } else { llSetAlpha(0.01, ALL_SIDES); OFF = TRUE; { // Turn on glow, set full bright to true, set transparency to 0 llSetPrimitiveParams( [PRIM_GLOW, faceToToggle, 0.3, PRIM_FULLBRIGHT, faceToToggle, TRUE]); llSetLinkAlpha(LINK_THIS, 1.0, faceToToggle); }
×
×
  • Create New...