The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Blizzard on April 05, 2006, 04:16:30 PM

Title: Lol!
Post by: Blizzard on April 05, 2006, 04:16:30 PM
Lol, even I need help sometimes! Okay, I want the map bgm to continue after a battle is over. I don
Title: Re: Lol!
Post by: haloOfTheSun on April 05, 2006, 08:09:25 PM
I've requested this several times before, and no one ever even tried to help. Maybe you'll get lucky this time.  :|
Title: Re: Lol!
Post by: Blizzard on April 05, 2006, 08:13:59 PM
I will try it again everytime I have some free time. It is simple, I just need to find the catch...
What I
Title: Re: Lol!
Post by: haloOfTheSun on April 05, 2006, 08:15:10 PM
I don't have RMXP anymore anyway, so....  :mrgreen:
Title: Re: Lol!
Post by: Blizzard on April 05, 2006, 08:16:10 PM
Lol, right! I forgot!
:mrgreen: *throws rocks at Blizzard*

Ouch!
Title: Re: Lol!
Post by: Tsunokiette on April 05, 2006, 10:46:20 PM
This is rather simple, it just involves placing these two lines:

$game_system.bgm_memorize & $game_system.bgm_restore

in the proper places.

Just place this above main, it SHOULD work -

[code]class Scene_Map
   #--------------------------------------------------------------------------
   # * Battle Call
   #--------------------------------------------------------------------------
   def call_battle
      # Clear battle calling flag
      $game_temp.battle_calling = false
      # Clear menu calling flag
      $game_temp.menu_calling = false
      $game_temp.menu_beep = false
      # Make encounter count
      $game_player.make_encounter_count
      # Memorize map BGM and stop BGM
      $game_temp.map_bgm = $game_system.playing_bgm
      $game_system.bgm_memorize
      $game_system.bgm_stop
      # Play battle start SE
      $game_system.se_play($data_system.battle_start_se)
      # Play battle BGM
      $game_system.bgm_play($game_system.battle_bgm)
      # Straighten player position
      $game_player.straighten
      # Switch to battle screen
      $scene = Scene_Battle.new
   end
end
class Scene_Battle
   #--------------------------------------------------------------------------
   # * Battle Ends
   #
Title: Re: Lol!
Post by: Blizzard on April 06, 2006, 12:32:06 AM
Lol, no! (You think I haven
Title: Re: Lol!
Post by: Tsunokiette on April 06, 2006, 12:47:00 AM
Erm, actualy it should work, because that's exactly what they do, they store the position in the bgm.

It's how it's set up in Interpreter as well.

Are you sure you weren't just putting them in the wrong place?

B/c is you put it in the wrong place, it could memorize the music, play it from the saved spot, then play it automaticly from the begining if you put it in the wrong place.

EDIT: that and you just said $game_system.bgm_play, I'm talking about restore :wink:
Title: Re: Lol!
Post by: Blizzard on April 06, 2006, 01:42:29 AM
Hm... I
Title: Re: Lol!
Post by: Tsunokiette on April 06, 2006, 02:08:39 AM
Well I'll be darned, it doesn't work lol. I betcha I know why. It's either because the scene changed and the data was changed from within, or it's the fact that rmxp doesn't have dynamic audio controlls.

It's most likely the former, but there are people working on programming through the use of the RGSS dynamic audio controlls.
Title: Re: Lol!
Post by: Blizzard on April 06, 2006, 02:13:59 AM
No, I tried to make the variabes global and it also didn