Website/docs/md/tutorials/create_weather.md
2023-03-02 21:09:33 -05:00

1.5 KiB
Raw Blame History

  1. We will need a text editor, it is recommended:

    ·Notepad++

    ·Visual Studio Core

  2. The files to be modified are located inside the folder

    \db\weather

  3. Within this WEATHER folder, we have weather files. (We will study the sun.json as an example)

    \db\weather\sun.json

  4. Modify sun.json file:

    You can modify existing files or create new ones.

4.1. Open sun.json file

`"timestamp": 1577890800,
 "cloud": -0.99,
 "wind_speed": 1,
 "wind_direction": 3,
 "wind_gustiness": 0.022,
 "rain": 0,
 "rain_intensity": 0,
 "fog": 0.004,
 "temp": 18,
 "pressure": 763,
 "date": "2020-01-01",
 "time": "16:00:00"`

4.2. The range of maximum values and minimum values be used:

cloud:

-1 to -0.4 Sunny

-0.4 to 0.8 lightclouds

0.8 to 1 heavyclouds

1.1 to 2 thunder

wind_speed:

0 calm

1 lightwind

1  4 heavywind

wind_direction:

0 to 8

rain:

0 no rain

1 to 3 lightrain

3 to 4 heavyrain

rain_intensity:

0 to 1

fog:

 0 to 0.001 no fog

 0.001 to 0.01 lightfog

 0.01 to 0.1 fog

 0.1 to 1 heavyfog

acceleration:

1 to 7. Velocity weather in raid

The combinations of these parameters will give us the different types of weather.

See below for examples on how the values above affect weather progression in raid.

Guilded link: https://www.guilded.gg/senkospub