I'm no script expert be any means, however I do know my way around some functions, and variables. This is a basic weather system, designed specifically for single player modules. It may work for persistent worlds, I've tinkered with it for a while to see if it was possible. I haven't been able to truly test it with other players, but I do know it works for single player modules.
The installation is very simple, just place the Weather Box in the center of an area, and attach the weather script into the Area's OnEnter script slot. Bake/rebake the area, and your all set.
The way it works, is through a series of dice rolls, and variable checks. First it will roll a 3 sided die, 1 for snow, 2 for rain, 3 for clear day. Once rolled, it will add a +1 value to the variable attached to the vfx that is placed on the Weather Box. Now in theory; for modules with more then one player it should check each variable to see what weather variable is set to +1. If there is, it will roll another set of dice to determine if it should remain raining/snowing. Then add or remove the vfx, based on the roll. I've included RP messages to the PC if the rain/snow stops, or starts for debugging, and ambience reasons.
I've also added sound to the system, I've left them commented out, so that you can put in your own for specific areas with different ambient settings. Just fill in with the area tag, and the ambient tracks for night/day. When you set them, simply remove the "//" in front of them.
For the weather VFX, I'm using the files from my VFX Pack located here on the vault. You can find it here; http://nwvault.ign.com/View.php?view=NWN2VisualEffects.Detail&id=9
I don't think you can change the sky settings via script. Using the Script Assist, I did a check for sky, clouds, and cycles... didn't come up with anything. I'm not saying you can't, but just that I haven't learned how too. As far as good setting, its more of a "to each his/her own" kind of thing. With all the neat options you can tinker with its hard to pinpoint what settings are the best. I try not to change much, except for the cloudcover, fog, and movement. _________________________ AKA: GuardianofLore.
This is v good, as are your vfx features themselves. I tried something like this myself in NWN 1 for jungle rainfall. Can I ask if there is a way to change the sky and lighting/cloud area settings, or even if you know of good standard settings that can be imported to replace the default ones at different times of day?
John McA
You must be Logged In to post comments in this section.
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone