Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN SCRIPTS

- Jump to comments -
Title  Sunjammer's Fog Functions
Author  Sunjammer
Submitted / Updated  03-01-2006 / 11-22-2006
Category  Scripting routines
Expansions  NWN-1.67
Format  Code Only
Type  Type - Lighting
Includes  Custom
Description
Sunjammer's Fog Library
10 Jun 2006
v1.01

This library provides new fog amount and color functions to enhance BioWare's existing fog related functions and specifically enables scripters to:
  • store an area's fog amount and/or color
  • return an area's stored fog amount and/or color
  • restore an area's fog amount and/or color to previously stored values
  • smoothly fade and area's current fog amount and/or color to new values
  • adjust an area's fog color through its brightness

Sunjammer's RGB Library
10 Jun 2006
v1.01

This library provides symbolic constants for 140 standard colors, introduces a new color user-defined type (struct) and provides functions which enable scripters to:
  • create a color using individual red, green and blue values
  • convert a color type to and from a 24-bit int color value
  • manipulate a color directly or through its brightness
  • get, set and delete a color as a local variable

Getting Started

Simply download the ZIP file, extract the ERF and import it into your module. Use the #include directive to incorporate the main Fog Library file (sj_fog_i) into any script you wish to use the constants and functions in and you're good to go. If you wish to use the color type, constants or functions in isolation use the #include directive to incorporate the main RGB Library file (sj_rgb_i) into your script.

All the functions are fully prototyped so once you have saved a script which includes them they will appear in the F2 Auto-complete menu, the Functions palette and (when you click on one) in the Help tab.


Further Information

If you have any questions, suggestions or constructive comments in the please let me know either here, on the BioBoards or via my website.

Files

NameTypeSizeDownloads
sj_fog_demo_101.zipsj_fog_demo_101.zip
Submitted: 03-01-2006 / Last Updated: 06-10-2006
zip16.52Kb255
Sunjammer's Fog Library: Demo Module
sj_fog_101.zipsj_fog_101.zip
Submitted: 03-01-2006 / Last Updated: 06-10-2006
zip7.1Kb381
Sunjammer's Fog Library
SCORE OUT OF 10
10
5 votes
View Stats
Cast Your Vote!

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS





You Must Be Logged In to Participate.
Comments (9):

Posted by coreyh2 at 2007-06-30 13:56:22    Voted 10.00 on 06/30/07
Very cool effect.

Posted by RoadWyrm at 2006-06-11 22:36:30    Voted 10.00 on 06/11/06
HAH! This is great!
I can see fog rolling in on the coast early in the mornings, cutscene boss kills or trigger dark fog on an event.
Great work and nice demo :D

Posted by Sunjammer at 2006-06-10 14:48:32    
I've added some new functions that allow an area's fog colour to be manipulated using it's brightness (see the sj_rgb_i header comments for details) and fixed a small bug with the FadeToFogColor function. I've also uploaded a small demo module to show off some these features.

Enjoy!
_________________________
Sunjammer
Code Monkey

Posted by Sunjammer at 2006-03-03 14:35:18    
The library doesn't use anything from 1.67: SetFogColor was added by 1.64 and, as it turns out, the other 3 commands (GetFogColor, GetFogAmount, SetFogAmount) were added by 1.65.
_________________________
Sunjammer
Code Monkey

Posted by Sephiroth ( 212.234.xxx.xxx ) at 2006-03-03 00:30:50    
Yeah very cool script and usage, thanks!
Where do you find the SetFogAmount command in aurora? is it proper to 1.67 patch? thanks!

Posted by Jamine at 2006-03-02 05:40:01    Voted 10.00 on 03/02/06
This is great stuff! Thanks a lot Sunjammer.

- The Overfiend.

Posted by Sir_Elric at 2006-03-02 03:14:07    Voted 10.00 on 03/02/06
As always scripted well and a great package for builders novice to expert.
_________________________
City of Melnibone
ausnwn.dyndns.org:5121

Posted by Uthoroc ( 80.131.xxx.xxx ) at 2006-03-02 02:38:17    
Sunjammer, did you create this erf with the 1.67 beta? I'm trying to import it in our module and get the error message "This module was created with an updated version of Neverwinter Nights. ..."

I've been working with 1.66 for a while, but I'm not using the 1.67 beta.

Posted by Georg_Zoeller at 2006-03-02 01:16:41    Voted 10.00 on 03/02/06
Just plain useful if you're into fog :)

You must be Logged In to post comments in this section.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Visual Effects


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters