Weather Effects

version 3/080508 by Mikael Segercrantz

  • Home page
  • Beginning
  • Previous
  • Next



  • Part 4 - Weather

    When Sunny is a recurring scene. When Sunny begins when it is sunny. When Sunny ends when When Partly Cloudy begins. When Sunny Ends when When Cloudy begins. When Sunny Ends when When Raining begins. When Sunny Ends when When Snowing begins.

    When Partly Cloudy is a recurring scene. When Partly Cloudy begins when it is partly cloudy. When Partly Cloudy ends when When Sunny begins. When Partly Cloudy ends when When Cloudy begins. When Partly Cloudy ends when When Raining begins. When Partly Cloudy ends when When Snowing begins.

    When Cloudy is a recurring scene. When Cloudy begins when it is cloudy. When Cloudy ends when When Sunny begins. When Cloudy ends when When Partly Cloudy begins. When Cloudy ends when When Raining begins. When Cloudy ends when When Snowing begins.

    When Raining is a recurring scene. When Raining begins when it is raining. When Raining ends when When Sunny begins. When Raining ends when When Partly Cloudy begins. When Raining ends when When Cloudy begins. When Raining ends when When Snowing begins.

    When Snowing is a recurring scene. When Snowing begins when it is snowing. When Snowing ends when When Sunny begins. When Snowing ends when When Partly Cloudy begins. When Snowing ends when When Cloudy begins. When Snowing ends when When Raining begins.

    To decide whether it is sunny:
        If Weather is less than 4, decide yes;
        decide no.

    To decide whether it is partly cloudy:
        If Weather is less than 4, decide no;
        If Weather is less than 6, decide yes;
        decide no.

    To decide whether it is cloudy:
        If Weather is less than 6, decide no;
        If Weather is less than 9, decide yes;
        decide no.

    To decide whether it is raining:
        If Weather is less than 9, decide no;
        If it is day and DTemp is less than 33, decide no;
        If it is night and NTemp is less than 33, decide no;
        decide yes.

    To decide whether it is snowing:
        If Weather is less than 9, decide no;
        If it is day and DTemp is less than 33, decide yes;
        If it is night and NTemp is less than 33, decide yes;
        decide no.