Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Lights.>?> (https://forums.graalonline.com/forums/showthread.php?t=9984)

Kobain319 08-20-2001 04:15 AM

Lights.>?>
 
Okay....I'm building a level and I want some lights like in the UG lake but the only one i can get is light2.gif Can anyone give me a script or something to get those bright green or Red lights?

LiquidIce00 08-20-2001 04:33 AM

Re: Lights.>?>
 
Quote:

Originally posted by Kobain319
Okay....I'm building a level and I want some lights like in the UG lake but the only one i can get is light2.gif Can anyone give me a script or something to get those bright green or Red lights?
you just use the setcoloreffect command

Kobain319 08-20-2001 04:36 AM

...
 
So i just script Light2.gif to the color i want?

LiquidIce00 08-20-2001 04:41 AM

Re: ...
 
Quote:

Originally posted by Kobain319
So i just script Light2.gif to the color i want?
no
on the setcoloreffect command there is 4 arguments which is

red,green,blue,alpha

Kobain319 08-20-2001 04:48 AM

.
 
Oh ok!

fuzie 08-20-2001 11:09 AM

Red
if (playerenters) {
setcoloreffect 1,0,0,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Blue
if (playerenters) {
setcoloreffect 0,0,1,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Green
if (playerenters) {
setcoloreffect 0,1,0,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Cyan
if (playerenters) {
setcoloreffect 0,1,1,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Goldif (playerenters) {
setcoloreffect 1,1,0,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Violet
if (playerenters) {
setcoloreffect 1,0,1,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

There ye go.....
-----Brian-----

TOT_GP1 08-20-2001 01:46 PM

.99 is kinda high.

konidias 08-20-2001 02:25 PM

Try 0.2 0.3 0.4 0.5

Those are around the size of the lights in the underground lake.. well some of them.. 2 is huge.. i wouldn't recommend it lol

Slaktmaster 08-20-2001 02:57 PM

I wish I had that idea for my sig before Konindias :(

It ownage on legs :)

konidias 08-20-2001 02:59 PM

I was going to make a small animation out of it like a mini-movie but I figured it would be too large in file size for my sig :cool:

Slaktmaster 08-20-2001 03:03 PM

Make it anyway so I can download it and use it as an animated background ;)

Jerom 08-20-2001 05:48 PM

Re: Lights.>?>
 
Quote:

Originally posted by Kobain319
Okay....I'm building a level and I want some lights like in the UG lake but the only one i can get is light2.gif Can anyone give me a script or something to get those bright green or Red lights?
if (playerenters){
setcoloreffect 1,-1,-1,0.99;
drawaslight;
setzoomeffect 2;
dontblock;
drawoverplayer;}
That should make it really really red =)

revalation 08-20-2001 11:57 PM

For r,g,b values can't you use numbers from 1-255?

Slaktmaster 08-21-2001 12:45 AM

rar, you learn something new every day.

i feel a bit uninformed for not knowing that.

Kobain319 08-21-2001 02:30 AM

...
 
Okay...Now i cant see the lights at all .......


All times are GMT +2. The time now is 12:16 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.