Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-18-2001, 09:03 AM
JinZero JinZero is offline
something vague
Join Date: Mar 2001
Location: pokemon
Posts: 1,384
JinZero is on a distinguished road
Send a message via AIM to JinZero
Light Effect Help

I want light effects to move around in different colors like in the bomy hangout. How do i do that?
__________________
there's. no. retreat.
Reply With Quote
  #2  
Old 10-18-2001, 07:06 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Ive never seen them in there but do you mean change colors or move x and ys?
Reply With Quote
  #3  
Old 10-18-2001, 08:11 PM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
Quote:
Originally posted by Poogle
Ive never seen them in there but do you mean change colors or move x and ys?
both, read closer
Reply With Quote
  #4  
Old 10-18-2001, 08:36 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
You could just make it set random colors in a timeout loop. Not too hard.
__________________

-=Shard IceFire=-
Reply With Quote
  #5  
Old 10-18-2001, 09:41 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Unhappy

Can anyone tell me why I can't see light effects? It makes me mad because I used to be able to and was using them for my server, but now I can't see them.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #6  
Old 10-18-2001, 09:44 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by joseyisleet
Can anyone tell me why I can't see light effects? It makes me mad because I used to be able to and was using them for my server, but now I can't see them.
well me I can see light effects but I turn them off because they are dumb when there are to much light effects... It like freezes my computer when there are a lot of light effects...

you could have the option off that says enable dx..

look in your f1 and look for
disable dx and uncheck it if its checked
__________________
Thanks,
-KJL
Reply With Quote
  #7  
Old 10-18-2001, 09:47 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Yea it's unchecked.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #8  
Old 10-19-2001, 03:37 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by joseyisleet
Yea it's unchecked.
checking that would enable your light effects
Reply With Quote
  #9  
Old 10-19-2001, 06:49 AM
JinZero JinZero is offline
something vague
Join Date: Mar 2001
Location: pokemon
Posts: 1,384
JinZero is on a distinguished road
Send a message via AIM to JinZero
I CANT THINK OF TEH SCRIPT
__________________
there's. no. retreat.
Reply With Quote
  #10  
Old 10-19-2001, 08:30 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
NPC Code:

if (playerenters) {
setcoloreffect .99,.99,.99,.9;
dontblock;
drawaslight;
}

__________________

-=Shard IceFire=-
Reply With Quote
  #11  
Old 10-19-2001, 11:56 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
NPC Code:

if (playerenters||timeout) {
x=int(random(0,64));
y=int(random(0,64));
setcoloreffect int(random(0,255)),int(random(0,255)),int(random(0 ,255)),.99;
dontblock;
drawaslight;
timeout=.05
}

Reply With Quote
  #12  
Old 10-20-2001, 06:24 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
NPC Code:


if (created) {
dontblock;
}
//#CLIENTSIDE
if (playerenters) {
drawaslight;
setzoomeffect 2;
while (true) {
setcoloreffect random(0,1),random(0,1),random(0,1),random(0.5,0.7 5);
sleep 0.05;
}
}
dontblock; dontblock;

Reply With Quote
  #13  
Old 10-20-2001, 06:35 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by Python523
NPC Code:


if (created) {
dontblock;
}
//#CLIENTSIDE
if (playerenters) {
drawaslight;
setzoomeffect 2;
while (true) {
setcoloreffect random(0,1),random(0,1),random(0,1),random(0.5,0.7 5);
sleep 0.05;
}
}
dontblock; dontblock;

Where'd ya yoink that from?? I would generally say you didn't make that yourself, as for the lack of explanation, the fun redundancies, and the weird indenting. Unless of course, that is exactly what you intended, in which case, you have my apologies.
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #14  
Old 10-20-2001, 08:35 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Xaviar


Where'd ya yoink that from?? I would generally say you didn't make that yourself, as for the lack of explanation, the fun redundancies, and the weird indenting. Unless of course, that is exactly what you intended, in which case, you have my apologies.
the random needs to be from 0-255 for all the colors
Reply With Quote
  #15  
Old 10-20-2001, 09:11 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by btedji


the random needs to be from 0-255 for all the colors
I tried doing that, it gave me an actual color besides the bright white light every few seconds but most of the times it was white
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:55 AM.


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