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 06-01-2002, 02:39 AM
Yushiwa Yushiwa is offline
Registered User
Join Date: Feb 2002
Posts: 496
Yushiwa is on a distinguished road
Room dimness

How can I make a room a little bit dim? Or to where I can change the dimness in the NPC Script? I am working on a thing and I forgot how to do it. It has been such a long time.
__________________
- Nai

Reply With Quote
  #2  
Old 06-01-2002, 02:49 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Change the backpal of the room.
Reply With Quote
  #3  
Old 06-01-2002, 02:59 AM
Yushiwa Yushiwa is offline
Registered User
Join Date: Feb 2002
Posts: 496
Yushiwa is on a distinguished road
And how would I come along to doing this?
__________________
- Nai

Reply With Quote
  #4  
Old 06-01-2002, 03:29 AM
Yushiwa Yushiwa is offline
Registered User
Join Date: Feb 2002
Posts: 496
Yushiwa is on a distinguished road
Wait, got it. Nevermind, thanks.
__________________
- Nai

Reply With Quote
  #5  
Old 06-01-2002, 04:27 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
backpals are bad =/ use effects (seteffect)
Reply With Quote
  #6  
Old 06-01-2002, 06:32 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Lol! Backpals are good! Here's an idea:
if (playerchats&&strequals(#c,Setbackpal dusk1.png)) setbackpal dusk1.png;
and add it for each of the backpals you want. Or you can try:
if (playerchats&&strcontains(#c,setbackpal)) setbackpal #c; and set the string length to minus 11.
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #7  
Old 06-01-2002, 08:52 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by Python523
backpals are bad =/ use effects (seteffect)
What do you have against backpals?
Reply With Quote
  #8  
Old 06-01-2002, 12:30 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by BBflat

What do you have against backpals?
they are useless and outdated, they don't even color NPCs, all a backpal does is temporarely 'dye' the tile set, seteffect is much better and more efficent
Reply With Quote
  #9  
Old 06-01-2002, 01:07 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 Python523

they are useless and outdated, they don't even color NPCs, all a backpal does is temporarely 'dye' the tile set, seteffect is much better and more efficent
*total agreeance*
__________________

!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
  #10  
Old 06-01-2002, 04:12 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
I prefere seteffect:
NPC Code:

seteffect red,green,blue,alpha


Since you want to make the room darker lets use black.
NPC Code:

seteffect 0,0,0,alpha


The red, green, and blue have been replaced by zeros because using a RGB coloring system 0 red, 0 green, and 0 blue is black.
Now for the alpha, the alpha is the degree of intensity the color is put out.
0 being the most and 1 being the least.

This means you vary the level of darkness with decimals between them.
NPC Code:

//#CLIENTSIDE
seteffect 0,0,0,1;


This makes the level completely visible and it your starting point.
Now to make it half between dark and light you would change the alpha to 0.50.
NPC Code:

seteffect 0,0,0,0.50


Now just adjust the alpha to your specifications and enjoy.
This is //#CLIENTSIDE.

Last edited by nyghtGT; 06-01-2002 at 06:44 PM..
Reply With Quote
  #11  
Old 06-01-2002, 06:21 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by Python523

they are useless and outdated, they don't even color NPCs, all a backpal does is temporarely 'dye' the tile set, seteffect is much better and more efficent
They are actually quite useful, since you don't want NPCs to change colour for a season system which uses setbackpal.
It's only outdated for day-night purposes.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #12  
Old 06-01-2002, 06:28 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Spanko
They are actually quite useful, since you don't want NPCs to change colour for a season system which uses setbackpal.
It's only outdated for day-night purposes.
You can use the command drawaslight to make the npcs show their true colour.
Reply With Quote
  #13  
Old 06-01-2002, 06:52 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by nyghtGT

You can use the command drawaslight to make the npcs show their true colour.
Yes, but you also don't want players to spontaneously turn a different colour just because it's a different season do you?
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #14  
Old 06-01-2002, 07:31 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Spanko
Yes, but you also don't want players to spontaneously turn a different colour just because it's a different season do you?
There is surely a command for that...

Stefan is just being greedy
Reply With Quote
  #15  
Old 06-01-2002, 11:57 PM
azuretek23 azuretek23 is offline
Registered User
azuretek23's Avatar
Join Date: May 2002
Location: Phoenix, AZ
Posts: 516
azuretek23 is on a distinguished road
Send a message via ICQ to azuretek23 Send a message via AIM to azuretek23
well I am preety sure alot of that crap dosent work for me so backpals are tasty enough
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 12:17 PM.


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