• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
[v20+] Select Music in Options

Resource [v20+] Select Music in Options 2024-03-11

-FL-

Pokémon Island Creator
Member
Joined
Aug 28, 2022
Posts
375
-FL- submitted a new resource:

[v20+] Select Music in Options - Adds new settings in options screen to change wild battle, trainer battle, bicycle and surf musics.

gif.gif

Adds new settings in options screen to change wild battle, trainer battle, bicycle and surf musics. Includes "random" and "off" options.

Tested on Essentials v20.1 and v21.1. If this script isn't working on latest Essentials version, please inform on this thread.

Read more about this resource...
 
One question, is it possible to "unlock" music to play? Like, if I can set a Switch or something after a battle, or even get an Item, like a CD, to unlock a new music.
 
One question, is it possible to "unlock" music to play? Like, if I can set a Switch or something after a battle, or even get an Item, like a CD, to unlock a new music.
Yes!

By example, change
Ruby:
Expand Collapse Copy
  def wild_battle_name_bgm_array
    return [
      #["Music label here", "Filename here"],
      ["Standard","Battle wild"],
      ["Roaming","Battle roaming"],
      ["Random",RANDOM],
      ["Off",OFF],
    ]
  end
to

Ruby:
Expand Collapse Copy
  def wild_battle_name_bgm_array
    ret = [
      #["Music label here", "Filename here"],
      ["Standard","Battle wild"],
      ["Roaming","Battle roaming"],
    ]
    ret.push(["Secret Music","Battle trainer"]) if $game_switches&.[](128)
    ret.push(["Secret Music 2","Battle Gym Leader"]) if $game_switches&.[](129)
    ret+=[
      ["Random",RANDOM],
      ["Off",OFF],
    ]
    return ret
  end
This example uses switches 128 and 129.
 
Yes!

By example, change
Ruby:
Expand Collapse Copy
  def wild_battle_name_bgm_array
    return [
      #["Music label here", "Filename here"],
      ["Standard","Battle wild"],
      ["Roaming","Battle roaming"],
      ["Random",RANDOM],
      ["Off",OFF],
    ]
  end
to

Ruby:
Expand Collapse Copy
  def wild_battle_name_bgm_array
    ret = [
      #["Music label here", "Filename here"],
      ["Standard","Battle wild"],
      ["Roaming","Battle roaming"],
    ]
    ret.push(["Secret Music","Battle trainer"]) if $game_switches&.[](128)
    ret.push(["Secret Music 2","Battle Gym Leader"]) if $game_switches&.[](129)
    ret+=[
      ["Random",RANDOM],
      ["Off",OFF],
    ]
    return ret
  end
This example uses switches 128 and 129.
That's so cool! Thanks, I'll use in my next project (almost) for sure.
 
I want to name Music Labels in Chinese but when Chinese characters are used error log says invalid multibyte char (UTF-8).
 
This isn't directed related with this script. but with MKXP-Z and/or plugin manager.

An idea: If you use it as plugin, try to open the text file and save with UTF-8 encoding.
I will try then.
 
Back
Top