Jump to content
EllieAnne Silverfall

Full bright script?

Recommended Posts

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 :D

Share this post


Link to post
Share on other sites

   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.

Share this post


Link to post
Share on other sites

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...

Snapshot_009.png

Snapshot_008.png

Snapshot_001.png

Share this post


Link to post
Share on other sites
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.

 

 

  • Like 1

Share this post


Link to post
Share on other sites

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 ] );

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites

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 by Berksey
  • Like 1

Share this post


Link to post
Share on other sites
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 :D)

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...