Jump to content

TheNick10

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. is this becoming a multi person project XD do i need to give credits lmao, so what does that do Mollymews? ive managed to work out what Qie Niangao has done and why, but thats something i dont understand unless... it changes what its telling me based on the switch state?
  2. Thankyou KT Kingsley, i dont really understand the PRIM_LINK_TARGET quite yet and will need to open tab number 30 of the wiki XD (im still on day 1 of any scripting ever) does that create a less impactful 'event' and what i can tell is combining all my 4 calls into 1?
  3. YES! THANKYOU Qie Niangao! its working fully as intended! a massive thankyou to both you and Jenna Huntsman ive learnt 4 new things with your help its really appreciated! integer switch; default { state_entry() { } touch_start(integer total_number) { if (switch==0) { switch=1; list primcolor = llGetLinkPrimitiveParams (2, [PRIM_COLOR, 0]); // this fixed it vector colorpick = llList2Vector(primcolor, 0); //with this also llOwnerSay ("lamp on"); llSetLinkPrimitiveParamsFast (LINK_ALL_OTHERS, [PRIM_FULLBRIGHT, ALL_SIDES, TRUE]); llSetLinkPrimitiveParamsFast (2, [PRIM_GLOW, ALL_SIDES, 0.10]); llSetLinkPrimitiveParamsFast (3, [PRIM_GLOW, ALL_SIDES, 0.05]); llSetLinkPrimitiveParamsFast (2, [PRIM_POINT_LIGHT, TRUE, colorpick, 1.0, 3.0, 0.0]); } else if (switch==1) { switch=0; llOwnerSay ("lamp off"); llSetLinkPrimitiveParamsFast (LINK_ALL_OTHERS, [PRIM_FULLBRIGHT, ALL_SIDES, FALSE]); llSetLinkPrimitiveParamsFast (LINK_ALL_OTHERS, [PRIM_GLOW, ALL_SIDES, 0.0]); llSetLinkPrimitiveParamsFast (2, [PRIM_POINT_LIGHT, FALSE, ZERO_VECTOR, 1.0, 3.0, 0.0]); } } }
  4. aha thankyou! ok ive made a couple changes adding vector colorpick; to the top made it work/accept it, (i had a extra getprimparam in the lampoff part ive removed that, i think that was the right thing to do) and it saved and is turning the emits light on and off but it's setting it to black (the main crystal is tinted blue) could you advise as to whats going wrong here? i moved the list and vector colorpick lines into the lamp on part also as i like the idea of it updating when re clicked instead of resetting integer switch; vector colorpick; default { state_entry() { } touch_start(integer total_number) { if (switch==0) { switch=1; list primcolor = llGetLinkPrimitiveParams (2, [PRIM_COLOR, 1]); vector colorpick = llList2Vector (primcolor, 0); llOwnerSay ("lamp on"); llSetLinkPrimitiveParamsFast (LINK_ALL_OTHERS, [PRIM_FULLBRIGHT, ALL_SIDES, TRUE]); llSetLinkPrimitiveParamsFast (2, [PRIM_GLOW, ALL_SIDES, 0.10]); llSetLinkPrimitiveParamsFast (3, [PRIM_GLOW, ALL_SIDES, 0.05]); llSetLinkPrimitiveParamsFast (2, [PRIM_POINT_LIGHT, TRUE, colorpick, 1.0, 3.0, 0.0]); } else if (switch==1) { switch=0; llOwnerSay ("lamp off"); llSetLinkPrimitiveParamsFast (LINK_ALL_OTHERS, [PRIM_FULLBRIGHT, ALL_SIDES, FALSE]); llSetLinkPrimitiveParamsFast (LINK_ALL_OTHERS, [PRIM_GLOW, ALL_SIDES, 0.0]); llSetLinkPrimitiveParamsFast (2, [PRIM_POINT_LIGHT, FALSE, ZERO_VECTOR, 1.0, 3.0, 0.0]); } } }
  5. Hi im very new to scripting but making progress (ive managed a few simple things) now im trying to make a on/off script for a crystal lamp ive made, its 3 diff meshes linked, stand is the root and the two others are the floating crystals and the main crystal. the script ive managed turns the linked prims glow and full bright on or off on touch, thats all working, i also wanted it to turn on/off a emits light on the main crystal but i wanted it to change the color of that to correspond with whatever the main top crystal is tinted too without having to change this in a script, so read the tint that the crystal is and then set the emits light color to the same, ive run into alot of hurdles but cannot seem to overcome this part on my own, please offer help and also any advice to making this better, integer switch; default { state_entry() { list primcolor = llGetLinkPrimitiveParams (2, [PRIM_COLOR, 1]); vector colorpick = llList2Vector (primcolor, 0); } touch_start(integer total_number) { if (switch==0) { switch=1; llOwnerSay ("lamp on"); llSetLinkPrimitiveParams (LINK_ALL_OTHERS, [PRIM_FULLBRIGHT, ALL_SIDES, TRUE]); llSetLinkPrimitiveParams (2, [PRIM_GLOW, ALL_SIDES, 0.10]); llSetLinkPrimitiveParams (3, [PRIM_GLOW, ALL_SIDES, 0.05]); llSetLinkPrimitiveParams (2, [PRIM_POINT_LIGHT, TRUE, colorpick, 1.0, 3.0, 0.0]); // this is where its saying error name not within scope with the colorpick part } else if (switch==1) { switch=0; llOwnerSay ("lamp off"); llGetLinkPrimitiveParams (1, [PRIM_COLOR, ALL_SIDES]); llSetLinkPrimitiveParams (LINK_ALL_OTHERS, [PRIM_FULLBRIGHT, ALL_SIDES, FALSE]); llSetLinkPrimitiveParams (LINK_ALL_OTHERS, [PRIM_GLOW, ALL_SIDES, 0.0]); llSetLinkPrimitiveParams (2, [PRIM_POINT_LIGHT, FALSE, ZERO_VECTOR, 1.0, 3.0, 0.0]); } } } https://prnt.sc/20mva0v
×
×
  • Create New...