
<3 Camie

These forums are CLOSED. Please visit the new forums HERE
Help! I NEED A COLOR CHANGE SCRIPT ASAP! |
|
Camie Cooper
loves you!
![]() Join date: 20 Nov 2004
Posts: 737
|
03-02-2005 11:20
I have not messed with scripts unless they were given to me, so I dont know where to find somthing i need oh so badly, i also dont do forums that often so dont kill me if this is posted in the wrong place, anyway I am looking for a color change script, for some shoes I made, If you have one I can purchace or know where I can get one, please lemme know here or in game
![]() <3 Camie ![]() |
Chrischun Fassbinder
k-rad!
Join date: 19 Feb 2005
Posts: 154
|
03-02-2005 15:21
Sorry Camie, think you best get a better example from someone else.
(reply to below) Cross, you're right they do. I was using strings for the initial variable type then typecasting them as integers to x,y,z in the vector which works up to a value of 100. Doing that while thinking before checking that things worked as RGB for colors. Glad I learned it's easy as just using float types. That along with my inability to check if this worked for a linked multi-prim object, which it doesn't, makes me realize I shouldn't have posted the script to begin with. Back to reading and writting basic scripts for me. |
Cross Lament
Loose-brained Vixen
![]() Join date: 20 Mar 2004
Posts: 1,115
|
03-02-2005 16:51
We can specify colours in RGB now? I thought colour vector components had to be floats in the range of 0.0 -> 1.0.
_____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?" |
Masakazu Kojima
ケロ
![]() Join date: 23 Apr 2004
Posts: 232
|
03-02-2005 18:43
I only tested this a little so let me know if anything seems screwy.
Usage: /1color #RRGGB Set color by hex code. Example: /1color #00ccff /1color <R,G,B> Set color by vector. Can be 0.0 - 1.0 or 0 - 255. Only the opening bracket really matters. Note that <1,1,1> will be treated as white (#ffffff), not almost black (#010101). Example: /1color < 255 128 192 /1color name Set color by name. Spaces and capitalization don't matter. Example: /1color Carnation Pink /1listcolors List known color names. (slow) CODE // This code is public domain. |
Preciosa Monde
Registered User
Join date: 10 Mar 2004
Posts: 6
|
03-03-2005 13:36
How much strain does a script like this add to the server?
|
Hiro Pendragon
bye bye f0rums!
![]() Join date: 22 Jan 2004
Posts: 5,905
|
03-04-2005 00:09
llListen( CHANNEL, "", NULL_KEY, "" ); For the love of Content Linden, PLEASE change this to: llListen( CHANNEL, "", llGetOwner(), "" ); Else your color changer will be listening to everyone in the sim = laaaaaaaaag. Also, you can have a simple set color script and use the command: llSetColor llSetColor(vector color, integer face); the most common use of "face" being "ALL_SIDES". you can also do a simple translation from 0-255 color format (like your normal SL editor) by dividing by 255: CODE vector input = <100,255,60>; _____________________
Hiro Pendragon
------------------ http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio Visit my SL blog: http://secondtense.blogspot.com |
Jack Lambert
Registered User
Join date: 4 Jun 2004
Posts: 265
|
03-04-2005 01:19
Not sure if anyone has mentioned this but here we go...
Some popular color choices for those who don't get the vector RGBs and/or are too lazy to figure it out: Red = <255, 0, 0> Green = <0, 255, 0> Blue = <0, 0, 255> Yellow = <255, 255, 0> White = <255, 255, 255> Black = <0, 0, 0> It's obvious to a lot of us scripters but some people just don't know yet. --Jack Lambert |
Torley Linden
Enlightenment!
![]() Join date: 15 Sep 2004
Posts: 16,530
|
03-04-2005 01:32
Neon Pink = <255,0,128>
![]() _____________________
|
Masakazu Kojima
ケロ
![]() Join date: 23 Apr 2004
Posts: 232
|
03-04-2005 02:28
Else your color changer will be listening to everyone in the sim = laaaaaaaaag. It is my understanding that specific criteria in the llListen call causes more load on the sim, while checking the criteria yourself causes more load on the script. I think load on the script is more acceptable than load on the entire sim, since scripts are allocated a fixed amount of time every frame already anyway. /invalid_link.html If you have any evidence to the contrary I would love to see it, as I have been designing scripts with this in mind for quite some time. In my own tests the effects of both have been equally negligible. |
Jack Lambert
Registered User
Join date: 4 Jun 2004
Posts: 265
|
03-04-2005 02:36
Yup I tested exactly the same thing under "heavy loads" in Isabel...
I couldn't tell one bit of difference between the two methods, though admittedly I didn't have a very scientific tool for measuring the difference (see the Elapsed function in the wiki scripting library) --Jack Lambert |
cell Neutra
That's L$50k please
Join date: 26 Sep 2004
Posts: 28
|
03-04-2005 16:39
It is my understanding that specific criteria in the llListen call causes more load on the sim, while checking the criteria yourself causes more load on the script. I think load on the script is more acceptable than load on the entire sim, since scripts are allocated a fixed amount of time every frame already anyway. I may be completely wrong (I AM a newb). But I believe Cory's point was that TWO listens will cause more load on the sim, which makes sense. I think the fact that it is more than one listen that causes the extra load, not the fact that it is more specific. From all of my readings in my 2 weeks or so in SL, I've taken in that it is definitely less burdensome on the sim to be specific in the listen call and from a logical standpoint I would need a very good reason not to believe that. Best example I could give would be TDMA cellphone usage, but I don't think that would be useful to most ![]() |