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:	319
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
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 07:08 AM.


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