EllieAnne Silverfall Posted July 21, 2017 Share Posted July 21, 2017 I'm so frustrated. I'm don't know how to write scripts, and as much as I love learning, it's not a task I feel like taking on just yet. I am willing to pay for what I am looking for, I just can't find it. I am certain it is a simple thing to do, however. I made a mesh lamp. I found a on/off script that I managed to get to work on my lamp the way I want it to (light/glow/fullbright (I think) from the bulb only). It took a few goes to get it to light from my bulb and not the shade, but I managed. (shade is face 0, bulb is face 2). everything looks great - except - I want the shade to be full bright when the lamp is on - and not when it is not. I have no idea how to make this happen. Can I use a second script? do I have to mod the first script? If anyone can help, I'd be very grateful. I'm not looking for freebies, I'm willing to pay if need be. I just want my lamp to work as I want it to. PS... a on/off switch sound would be cool too Link to comment Share on other sites More sharing options...
Ivanova Shostakovich Posted July 21, 2017 Share Posted July 21, 2017 If the lamp is all one mesh, then the whole lamp, and not just the bulb, casts the light as an object. The light emanates from its geometric center. It is the faces of a prim that are set full bright and to glow. I realize that it's possible someone has already PM'd you about this. Fortunately it's easy to do. Link to comment Share on other sites More sharing options...
EllieAnne Silverfall Posted July 21, 2017 Author Share Posted July 21, 2017 Thanks for responding, Ivanova. I have the light working as I want (intensity, glow, etc) but the only thing is I need the lampshade (only) to become full bright as well, when the lamp is on. currently, this is what I have: Off, On, and how I want On to look. No one has PMed me yet... Link to comment Share on other sites More sharing options...
Ivanova Shostakovich Posted July 21, 2017 Share Posted July 21, 2017 llSetPrimitiveParams([PRIM_FULLBRIGHT, 0, FALSE]); This statement should do the trick. As you said, 0 is the shade face. Just use a method to change FALSE to TRUE and back again when you turn the lamp off and on. 1 Link to comment Share on other sites More sharing options...
Xiija Posted July 21, 2017 Share Posted July 21, 2017 when the lamp in ON, just add the SLPPF call ? llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_FULLBRIGHT,0, TRUE ] ); and when it is OFF .... llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_FULLBRIGHT,0, FALSE ] ); ...or if you use a variable for the on/off ...lets call it "switch"... then llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_FULLBRIGHT,0, switch ] ); Link to comment Share on other sites More sharing options...
EllieAnne Silverfall Posted July 21, 2017 Author Share Posted July 21, 2017 I really appreciate the help, but since I know zero about scripting (other than to change an integer number based on the scriptor's instructions), I'm clueless. Do I insert those lines into the script I am using (where and how?) or do I make a new script? Could I pm someone the script I am using and get a script back with the mod? (again, I'll pay a reasonable fee). Link to comment Share on other sites More sharing options...
Rolig Loon Posted July 21, 2017 Share Posted July 21, 2017 If you are hoping to hire a scripter, please post your request in the InWorld Employment forum. The Scripting forum is intended as a place for LSL scripters to share ideas and to commiserate about scripts that they are working on. 1 Link to comment Share on other sites More sharing options...
EllieAnne Silverfall Posted July 21, 2017 Author Share Posted July 21, 2017 2 minutes ago, Rolig Loon said: If you are hoping to hire a scripter, please post your request in the InWorld Employment forum. The Scripting forum is intended as a place for LSL scripters to share ideas and to commiserate about scripts that they are working on. noted. I was hoping someone could just explain to me how to insert the script, but perhaps just putting out a want ad is best. cheers. Link to comment Share on other sites More sharing options...
Berksey Posted July 21, 2017 Share Posted July 21, 2017 (edited) If you put 20 minutes or so into looking on the wiki, and study a couple of basic script templates to see how the flow goes, you could do it yourself and would probably have one of those facepalm moments so many of us have had, like, "OMG that was SO easy once I waded through the broken glass and razor wire!" In fact, the replies above contain the key to the whole thing, if you're stubborn enough to pursue it on your own. But yeah, if you're not looking to contract our particular form of madness (I call it the Scripting Bug), you should save yourself and just pay someone to do it. By the way, that's a really nice lamp. ^-^ Edited July 21, 2017 by Berksey 1 Link to comment Share on other sites More sharing options...
EllieAnne Silverfall Posted July 21, 2017 Author Share Posted July 21, 2017 38 minutes ago, Berksey said: If you put 20 minutes or so into looking on the wiki, and study a couple of basic script templates to see how the flow goes, you could do it yourself and would probably have one of those facepalm moments so many of us have had, like, "OMG that was SO easy once I waded through the broken glass and razor wire!" In fact, the replies above contain the key to the whole thing, if you're stubborn enough to pursue it on your own. But yeah, if you're not looking to contract our particular form of madness (I call it the Scripting Bug), you should save yourself and just pay someone to do it. By the way, that's a really nice lamp. ^-^ I know, I know - I really should just learn to do it. Unfortunately, RL has me 6 days a week running a business and 2 teens, a hubby, and a house to look after. I barely get time to build my mesh objects. I'm sure it wouldn't take me long to figure out, as I have played with programming here and there in the past, but I haven't the mind for it right now. Maybe in the future when mesh gets too easy! lol Thank you! (it'll be for sale as soon as I get this script worked out ) 2 Link to comment Share on other sites More sharing options...
Ivanova Shostakovich Posted July 21, 2017 Share Posted July 21, 2017 1 hour ago, Rolig Loon said: commiserate Isn't that the truth. 1 Link to comment Share on other sites More sharing options...
Berksey Posted July 21, 2017 Share Posted July 21, 2017 @Ivanova Shostakovich: LOL! @EllieAnne Silverfall: I understand. Just as long as your SL doesn't start to feel too much like real work, you should be okay. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now