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.
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
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.
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.