• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
[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
274
-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
211
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
274
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:
  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:
  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
211
Yes!

By example, change
Ruby:
  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:
  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

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

komeiji514

Cooltrainer
Member
Joined
Oct 28, 2023
Posts
191
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