Weather Effects with UserPatch 1.5
************************************************************
This guide will show you how to implement the new weather effects included in the
************************************************************
There are four things you can control about the weather system. They are the precipitation type, the tint color for visible areas, the tint color for areas obscured by fog of war, and the direction of moving water. Each is controlled by certain numbers, where 0 is the default. Precipitation is rendered above everything, while tinting only applies to terrains but not to objects.
Rain is drops of water and includes a sound effect.
Thunderstorm is like rain but with with occasional flashes of lightning.
Snow is snowflakes and has no sound effect by default.
Depending on the color, you can make the lighting appear cloudy or otherwise obscured.
Often it makes sense to pick a similar color for both the live and fog colors.
Generally it looks good to match the direction of the water with the direction of the precipitation.
************************************************************
Here are a few examples of color values that you can experiment with:
Precipitation: 0
Live color: 0
Fog color: 0
Water direction: 0
Precipitation: 0
Live color: 16
Fog color: 33
Water direction: 0
Precipitation: -3
Live color: 16
Fog color: 0
Water direction: -1
Precipitation: 3
Live color: 11
Fog color: 0
Water direction: 1
Precipitation: 4
Live color: 16
Fog color: 17
Water direction: 1
Precipitation: 0
Live color: 255
Fog color: 132
Water direction: 0
************************************************************
So how do you actually make use of all this?
In a
<PLAYER_SETUP>
weather_typefor example:[precipitation] [live] [fog] [water]
This would give snow, a blueish tint to both live and fog colors and random water direction.
weather_type -4 16 17 0
That's all you need to do. The only other thing worth noting is that you can check for the UserPatch 1.5 using the
if UP_EXTENSION
************************************************************
So how do you actually make use of all this?
In a
First, you must tribute
Once you have done this, you can tribute other gaia resources to control the 4 aspects of the weather system discussed earlier.
Weather can be changed dynamically over the course of the scenario, by triggering new tributes of these gaia resources.
Here is an example of what your trigger effects should look like:
************************************************************
Thanks for reading, and I hope you learned something! If you have any questions, feel free to ask them here.
......../¯/\
......./ / / \ Check out my Blacksmith submissions as well as my Random Map Scripts.
....../ / /\\ \
...../ /_/_\\ \ Proud guardian of the Definitive Random Map Scripting Guide
..../_____\\\ \
....\\\\\\\\\\\\\/ and the Random Map Scripting Links and FAQ thread.
[This message has been edited by Zetnus (edited 08-26-2017 @ 04:15 PM).]