• 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.
[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
306
-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...
 

JogatinandoC

Cooltrainer
Member
Joined
May 17, 2022
Posts
213
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.
 

-FL-

Pokémon Island Creator
Member
Joined
Aug 28, 2022
Posts
306
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.
 

JogatinandoC

Cooltrainer
Member
Joined
May 17, 2022
Posts
213
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.
 

komeiji514

Elite Trainer
Member
Joined
Oct 28, 2023
Posts
272
I want to name Music Labels in Chinese but when Chinese characters are used error log says invalid multibyte char (UTF-8).
 

komeiji514

Elite Trainer
Member
Joined
Oct 28, 2023
Posts
272
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