Jump to content

VeranniCakes

Resident
  • Posts

    41
  • Joined

  • Last visited

Everything posted by VeranniCakes

  1. If you want to be mildly more sophisticated, there are better ways to build a HUD than with separate ON/OFF buttons, but the way you are doing it will work just fine. _________________________________________________________________________________________________________________________________________________________________ Yeah It's an easy project, I'm a beginner. I guess it can pass as sophisticated, thanks lol.
  2. Ok! wow oof! Thank you!! and for replying thks. That's what I did wrong?! I just putting the SetPrimitiveParams in the wrong object? lol I was thinking it was the Hud that will do all the work lol, Ok I will indent my braces more and aline them better.
  3. Hello, I need help with this script pls, I'm a beginner but I know a little bit about coding. I'm trying to turn on a light with a hud, but the light isn't turning on. Here is my code. //This is the HUD script //This is a simple Light Hud, turning a Light on and off. //The light source is on an object called GlowStick, The HUD is called Glowstick HUD //PRIM_POINT_LIGHT is being used No PRIMGLOW codes //Channel being used is 100 integer switch; integer ONButton = 2; integer OFFButton = 3; default { state_entry() { } touch_start(integer total_number) { integer press = llDetectedLinkNumber(0); if(press == ONButton) { llOwnerSay("ON Button"); llRegionSayTo(llGetOwner(),100,"ON Button Connected"); llSetPrimitiveParams([PRIM_POINT_LIGHT, TRUE, <0.2, 0.8, 0.8>, 1.0, 10, 0.75 ]); } else if(press == OFFButton) { llOwnerSay("OFF Button"); llRegionSayTo(llGetOwner(),100,"OFF Button Connected"); llSetPrimitiveParams([PRIM_POINT_LIGHT, FALSE, <0.2, 0.8, 0.8>, 1.0, 10, 0.75 ]); } } } _____________________________________________________ //Glowstick Object default { state_entry() { llListen(100,"Glow Stick HUD","",""); } listen(integer channel, string name, key id, string message) { if(llGetOwnerKey(id) != llGetOwner() ) return; else llOwnerSay(message); } }
  4. The code is telling me that this line is an error llSetLink.... PRIM_COLOR, color, .....
  5. Ok and last question what if I wanted the object to change different colors so one block changes blue then yellow then orange
  6. I didn't understand the question, I thought she wanted me to guess the answer, but she helped great. Sorry about that. Ok so let's say I want to change One object to flash purple and one to flash blue how can I do that?
  7. Ok so I have two objects. both of them light up at different times, but I want them to change colors, how do I get them to change colors? Here's a video of what I have Here's my code so far integer iON; default { state_entry() { llSetTimerEvent(3.0); llSetLinkPrimitiveParamsFast(LINK_SET,[34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON, 34,1,PRIM_FULLBRIGHT, ALL_SIDES, !iON, PRIM_GLOW, ALL_SIDES, 0.05*!iON]); } timer() { iON = !iON; llSetLinkPrimitiveParamsFast(LINK_SET,[34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON, 34,1,PRIM_FULLBRIGHT, ALL_SIDES, !iON, PRIM_GLOW, ALL_SIDES, 0.05*!iON]); } }
  8. Aghh Ok it's in two places so I had to copy paste it twice! ok I got it. thanks again.
  9. I'm trying to get two cubes to flash at different times, but as two linked objects can someone help me with this? I got this code from Rolig Loon and so far she told me to subsitute this section llSetLinkPrimitiveParamsFast(LINK_SET,[34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON, 34,1,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON]); ____Here is the full code_______________________________________________________________________________________________________________________ integer iON; default { state_entry() { llSetTimerEvent(3.0); llSetLinkPrimitiveParamsFast(LINK_SET,[34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON, 34,1,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON]); } timer() { iON = !iON; llSetLinkPrimitiveParamsFast(LINK_SET,[34,1,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON, 34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON]); } }
  10. Ok I got one more question, how can I get them to blink LINKED? I got the code to work but, the heart and star only blink separately.
  11. Ok I figured out how to link two objects both of them are glowing, and I think I got the link numbers set heart is 1 and star is 2, how do I get them to flash now? kinda like christmas lights
  12. The link numberr I don't get, how would I know the link number for each object? Would the link number be the UUID number? Also what does SLPPF stand for?
  13. I'm making a headband and I want to have some cute objects like a star and a heart shape blink at the same time. Anyone know how to do this?
  14. I did it, it finally showed up thank you so much for your help! I loaded it unto blender then exported it and it worked thanks again
  15. OK I'll give that try I'll load the texture unto Blender and then export it, I'll get back on here later and let you know if it worked.
  16. The size of the texture is 2048x2048 Yes I just drag and drop it into the box, Ok I'll try that.
×
×
  • Create New...