• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Overworld Sound Effect for Rain

Derxwna Kapsyla

Derxwna "The Badman" Kapsyla
  • 437
    Posts
    13
    Years
    Ever since Generation 3, weather has become one of the most common staples of a Pokemon Game. In Battle, and the Overworld. Pokemon Essentials emulates those effects almost perfectly. The almost comes from the lack of sound effect when it is raining.

    For a good hour or so, I've been futzing about with numerous methods to try and get a sound effect to play during rain. I tried looking in the scripts for where to place it, but I wasn't quite sure. So I moved on to Common Events. Unfortunately, my attempts were shot down my errors. I can say I put in legitimate trial and error in trying to get this working, but it still ended up going kersplat.

    Directing my question here, how would I go about getting a Rain sound effect to play when it is raining, and only when it is raining? I must have overlooked something, and will be not surprised it all when it turns out to be extremely simple.
     
    I doubt adding that effect will sound remotely good, you can't use BGM unless your game is silent, ME's are used to give maps/events effects... SE's are use constantly, well in my game they are...

    There are 2 ways I would try... 1 won't repeat the audio, since I don't know how to do that yet, the other will play all the time, even if it's not raining.

    1) Enter something like this:
    Code:
        if $game_screen.weather_type==1 || $game_screen.weather_type==2
          pbMEPlay("004-Victory04")
        end
    In Game_Map_ around line 130.. This will play it once though.

    2) Right click the map and select the Auto-Change BGS as your rain... This will repeat, even if it's not raining.

    This is a start and you can work from there I guess.
     
    I doubt adding that effect will sound remotely good, you can't use BGM unless your game is silent, ME's are used to give maps/events effects... SE's are use constantly, well in my game they are...

    There are 2 ways I would try... 1 won't repeat the audio, since I don't know how to do that yet, the other will play all the time, even if it's not raining.

    1) Enter something like this:
    Code:
        if $game_screen.weather_type==1 || $game_screen.weather_type==2
          pbMEPlay("004-Victory04")
        end
    In Game_Map_ around line 130.. This will play it once though.

    2) Right click the map and select the Auto-Change BGS as your rain... This will repeat, even if it's not raining.

    This is a start and you can work from there I guess.

    That first method doesn't seem to work. I have it pasted in the scripts like so:
    [PokeCommunity.com] Overworld Sound Effect for Rain

    But it's not playing anything. I checked to make sure the audio file was there, and it was.

    The second method is not something I intend to do, because I need it to distinguish between rain and not rain.
     
    Don't use MEs. They stop your BGM from playing, and only play once (i.e. don't loop). BGSs (Background Sounds) on the other hand do loop, and are treated like looping sound effects (i.e. they don't stop your BGM).

    Next part is, you're talking about weather, so it'd be logical to put it in the script PokemonFieldWeather. There you could try putting something like CODE in the update
    Code:
    case @type
      when 1
        pbBGSPlay("SE_Rain")
      when 2
        pbBGSPlay("SE_HeavyRain")
      else
        $game_system.bgs_stop if !($game_system.getPlayingBGS==nil)
    end
    Just fiddle around with that idea, and see what gives you the desired result. Also, since you're talking about sound effects for weather, did you remember the lightning during heavy rain? In the update you also have something like
    Code:
    if @type==2
      rnd=rand(300)
      if rnd<4
        @viewport.flash(Color.new(255,255,255,230),rnd*20)
        [COLOR="Lime"]pbSEPlay("Lightning")[/COLOR]
      end
    end
    You could just add the part in green for that.
     
    Well at least I know how to loop now lol, but hey, mine wasn't a legit thing to do, I gave him somewhere to start looking... I thought about Field Weather too, but that was after I posted here.
     
    Back
    Top