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 03-26-2001, 05:15 AM
TylerS36 TylerS36 is offline
I want my pet bomy dangit
TylerS36's Avatar
Join Date: Mar 2001
Location: Seattle.
Posts: 937
TylerS36 is on a distinguished road
Send a message via ICQ to TylerS36 Send a message via AIM to TylerS36
How do you go about using the new light effects?
__________________
-SpongeBob SquarePants (SoG)
SoG = Smilies of Graal


If the text is yellow, SpongeBob is posting. If the text is blue, SpongeBob is posting. if the text is normal, SpongeBob is posting. If the text is any font or any color of the rainbow, SpongeBob is posting. Basically, SpongeBob is the only one posting.
Reply With Quote
  #2  
Old 03-26-2001, 05:35 AM
Lion'el-Jonson Lion'el-Jonson is offline
Please Wait....
Lion'el-Jonson's Avatar
Join Date: Mar 2001
Location: I like to eat food samples at price club.
Posts: 1,663
Lion'el-Jonson will become famous soon enough
Send a message via AIM to Lion'el-Jonson Send a message via Yahoo to Lion'el-Jonson
A friend of mine scripted this :P

// NPC made by «¤â€*hè Ñîght Ñïñj㤻 ¾©
NPC Code:
if (playerenters) {
dontblock;
drawoverplayer;
drawaslight;
this.lightonoff=0;
this.lightplusminus=0.25;
timeout=0.05;
timereverywhere;
setgif light2.png;
setcoloreffect 1,1,0,this.lightplusminus;
}
if (timeout) {
if (this.lightonoff==0) {
setcoloreffect 1,1,0,this.lightplusminus;
this.lightplusminus+=0.01;
}
if (this.lightonoff==1) {
setcoloreffect 1,1,0,this.lightplusminus;
this.lightplusminus-=0.01;
}
if (this.lightplusminus==0.99) {
this.lightonoff=1;
}
if (this.lightplusminus==0) {
this.lightonoff=0;
}
timeout=0.05;
}


(I added the [code] block - G)

Too bad somethings messed up with graal so lighting effects come out as little blocks of color on my comp >
__________________


"My words are like weaponry on a record"

Last edited by galen; 03-26-2001 at 09:12 AM..
Reply With Quote
  #3  
Old 03-26-2001, 02:21 PM
TylerS36 TylerS36 is offline
I want my pet bomy dangit
TylerS36's Avatar
Join Date: Mar 2001
Location: Seattle.
Posts: 937
TylerS36 is on a distinguished road
Send a message via ICQ to TylerS36 Send a message via AIM to TylerS36
seems a bit complicated.
__________________
-SpongeBob SquarePants (SoG)
SoG = Smilies of Graal


If the text is yellow, SpongeBob is posting. If the text is blue, SpongeBob is posting. if the text is normal, SpongeBob is posting. If the text is any font or any color of the rainbow, SpongeBob is posting. Basically, SpongeBob is the only one posting.
Reply With Quote
  #4  
Old 03-26-2001, 02:24 PM
Lion'el-Jonson Lion'el-Jonson is offline
Please Wait....
Lion'el-Jonson's Avatar
Join Date: Mar 2001
Location: I like to eat food samples at price club.
Posts: 1,663
Lion'el-Jonson will become famous soon enough
Send a message via AIM to Lion'el-Jonson Send a message via Yahoo to Lion'el-Jonson
yes
__________________


"My words are like weaponry on a record"
Reply With Quote
  #5  
Old 03-26-2001, 04:14 PM
Psyker Psyker is offline
Tired Sloth
Join Date: Mar 2001
Posts: 6,217
Psyker will become famous soon enough
Send a message via AIM to Psyker Send a message via Yahoo to Psyker
my lights show up as huge black circles
__________________
Reply With Quote
  #6  
Old 03-26-2001, 07:37 PM
Fai Fai is offline
!!!!!!!!!!!!!!!!!!!!!!!!!
Fai's Avatar
Join Date: Mar 2001
Location: New York
Posts: 4,491
Fai will become famous soon enough
Send a message via ICQ to Fai Send a message via AIM to Fai
IT IS EASIER THAN THAT

TAKE LIGHT2.PNG

MAKE IT AN NPC

TYPE

SETCOLOREFFECT .5,.1,.1,.5;

AND SEE WHAT YOU GET
__________________
SIGNATURE
Reply With Quote
  #7  
Old 03-26-2001, 07:52 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Yup what Fai said works... And the script that Gabriel posted is for giving it a slowly getting bigger/smaller effect I actually already scripted something like that on the first day I downloaded Graal2001 However if you want to use it with showimg you'll have to amke use of the command:

NPC Code:
changeimgcolors index,r,g,b,a;



For R G B and A you should always use values between 0 and 1, adding the command rawaslight to an NPC will make it immune to the effects of seteffect (Or was it setcolor?) which Graal2001 uses for it's day/night.
Although if for showimg you are already making use of seteffect in the level, I think that if you add the seteffect effects to the normal values for that showimg it will look like drawaslight.

But there is also the more easy and logical to use:
NPC Code:
setzoomeffect zoom;


Which basically takes the imageheight and imageweight * zoom. The showimg variation of that one is:
NPC Code:
changeimgzoom index,zoom;



And blah this is about my longest post yet I think
__________________

Reply With Quote
  #8  
Old 04-02-2001, 01:30 AM
GexGecko GexGecko is offline
Registered User
Join Date: Mar 2001
Location: Deep in Heck
Posts: 169
GexGecko is on a distinguished road
Send a message via AIM to GexGecko Send a message via Yahoo to GexGecko
Easy.

<quote>if (playerenters) dontblock; drawoverplayer; drawaslight; setcoloreffect ?,?,?,0.99;</quote>
__________________
I think I'll have fun in my siggy!
Funny Sayings by Omochao:
"Welcome do the desert! It's hot!"
"OK, i understand... I'll eat all my carrots now"
Reply With Quote
  #9  
Old 04-02-2001, 01:54 AM
Lion'el-Jonson Lion'el-Jonson is offline
Please Wait....
Lion'el-Jonson's Avatar
Join Date: Mar 2001
Location: I like to eat food samples at price club.
Posts: 1,663
Lion'el-Jonson will become famous soon enough
Send a message via AIM to Lion'el-Jonson Send a message via Yahoo to Lion'el-Jonson
I have no cluse what the script I posted is supposed to do, since G2K1 Lights a screwed up all I see are little colored dots, its very screwed.
Attached Thumbnails
Click image for larger version

Name:	nicelits.png
Views:	321
Size:	62.5 KB
ID:	183  
__________________


"My words are like weaponry on a record"
Reply With Quote
  #10  
Old 04-02-2001, 09:49 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
yeah, you cant see light effects at all, or well unless you have a good 3D card...
Reply With Quote
  #11  
Old 04-02-2001, 05:27 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Blah.

Riva TNT == Being able to see light effects, and I have a riva tnt2.. Graal isn't Voodoo compatiable which causes many problems for people. And whoa Gabriel that looks severely messed up.
__________________

Reply With Quote
  #12  
Old 04-02-2001, 06:46 PM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
Would something lke this work: STB VELOCITY 4400 16MB SVIDEO NVIDA RIVA TNT?
Reply With Quote
  #13  
Old 04-02-2001, 07:39 PM
Immitat0r Immitat0r is offline
Registered User
Immitat0r's Avatar
Join Date: Mar 2001
Posts: 792
Immitat0r will become famous soon enough
Im good at the X and Y areas of a sign, I only mess up atleast once lol
Reply With Quote
  #14  
Old 04-02-2001, 09:28 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by Thak2
Would something lke this work: STB VELOCITY 4400 16MB SVIDEO NVIDA RIVA TNT?
I think it should yes.
__________________

Reply With Quote
  #15  
Old 04-14-2002, 11:28 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Quote:
Originally posted by Immitat0r
Im good at the X and Y areas of a sign, I only mess up atleast once lol
not too hard!
__________________
--Spark911
Reply With Quote
  #16  
Old 04-18-2002, 02:41 AM
Faheria_GP4 Faheria_GP4 is offline
Registered User
Join Date: Feb 2002
Location: USA -North Carolina-
Posts: 431
Faheria_GP4 is on a distinguished road
Send a message via AIM to Faheria_GP4
okay im not a scripter. Whats with the script on the first or second post? Its all long and complicated....
__________________

Graal Occupation
AIM:DarkVillin2k1
Reply With Quote
  #17  
Old 04-18-2002, 07:26 AM
Faheria_GP4 Faheria_GP4 is offline
Registered User
Join Date: Feb 2002
Location: USA -North Carolina-
Posts: 431
Faheria_GP4 is on a distinguished road
Send a message via AIM to Faheria_GP4
ill stick with sfx,music,lvls, and gfx.
__________________

Graal Occupation
AIM:DarkVillin2k1
Reply With Quote
  #18  
Old 04-18-2002, 11:17 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Man you all confused me, I thought there was something new I was like... new light effects?! o.O then I saw it was old ones...:-/
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #19  
Old 04-18-2002, 01:19 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Quote:
Originally posted by Saga2001
Man you all confused me, I thought there was something new I was like... new light effects?! o.O then I saw it was old ones...:-/
What were you expecting?
Reply With Quote
  #20  
Old 04-18-2002, 11:34 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Slaktmaster

What were you expecting?
I was just excited. Woooooo... I think I was expecting something more. :-P
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
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 09:06 PM.


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