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.

special battle music

i need help withc poccil's pokemon starter kit. i want to give roaming pokemon a special battle music. like how in crystal you had the special music for the legendary dogs. how would i do that?
 
Use this script by PK8, and where I wrote HERE! you configure it... for example, if you want enemy group number 12 to play Pokemon Are Awesome, you would go: Troops_Theme[12] = ["Pokemon Are Awesome", 100, 100].

Code:
 

#==============================================================================

# Individual Troop BGM by PK8

#==============================================================================

class PK8

  Troops_Theme = {} # Do not touch this.

 

#Troops_Theme[id] = ["Music File", Volume, Pitch]

#HERE!

end

 

class Spriteset_Battle

  alias_method(:pk8_troops_theme_initialize, :initialize)

  def initialize

    pk8_troops_theme_initialize

    start_troop_theme

  end

 

  def start_troop_theme

    PK8::Troops_Theme.each_key { | i |

    # If Troop ID equals the key.

    if $game_temp.battle_troop_id == i

      # If specified BGM isn't nil or empty.

      if PK8::Troops_Theme[i][0] != nil and !PK8::Troops_Theme[i][0].empty?

        # Sets BGM volume to 100 if nil.

        PK8::Troops_Theme[i][1] = 100 if PK8::Troops_Theme[i][1] == nil

        # Sets BGM pitch to 100 if nil.

        PK8::Troops_Theme[i][2] = 100 if PK8::Troops_Theme[i][2] == nil

        # Plays BGM.

        Audio.bgm_play("Audio/BGM/#{PK8::Troops_Theme[i][0]}",

        PK8::Troops_Theme[i][1], PK8::Troops_Theme[i][2])

      end

      break

    end }

  end

end
 
I think you misunderstood. Im using poccil's pokemon starter kit. It doesn't use troops, it uses individual battles. i need it to play a special battle bgm while in a certain battle, but with scripting
 

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