Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How to MAKE RANDOM WEATHER?

Hi! I would really enjoy having RANDOMLY CHANGING weather in my game (Using RM XP). I mean when you enter/leave a map, the weather is changed to any RANDOM WEATHER. How do I do this? Plz help ~9robin3
 
Assuming you're using XP, the way I would do it is, on the event(s) to teleport the player to the map that you want random weather to be on, add a control variable command set to random and set values between 1 and how ever many types of weather you want, for example three (maybe snow, rain and sun?)

Then I would add a conditional branch which checks to see what the variable is and changes the weather accordingly. For example if the variable is set to 1 then you'll get rain, if it's 2 snow etc.

Hopefully that isn't too confusing

The actual event command would probably look something like this
 
@>Transfer Player:[001: Map] (001,001)
@>Control Variables: [0001: Weather] = Random No. (1...3)
@>Conditional Branch: Variable [0001: Weather]==1
   @>Set Weather Effects: Rain, 5, @0
   @>
  :  Else
   @>Conditional Branch: Variabl [001: Weather]==2
      @>Set Weather Effects: Snow, 5, @0
      @>
     :  Else
      @>Set Weather Effects: None, @0
      @>
     :  Branch End
      @>
@>
  :  Branch End
 

It that is too confusing I can add screenshots when I get home to a computer that has XP installed
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top