• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

need help permanently changing music via script

  • 5
    Posts
    1
    Years
    • Seen Apr 19, 2025
    Hello, I hope whoever is reading is in good health. I want to create a cutscene in which after a certain flag is set, the music of the map should permanently change even after transitioning through different maps but i am having a problem. It works fine if i am entering the map from a route but if i enter through a door the music reverts to the previous one. I am using the Mapscript on Transition to run the script if anyone can help i would really appreciate it.Here's the script
    script musicchange {
    if(flag(FLAG_UNUSED_0x4AA)){
    playse(MUS_DUMMY)
    setweather(WEATHER_RAIN_THUNDERSTORM)
    doweather

    }}
     
    It works fine if i am entering the map from a route but if i enter through a door the music reverts to the previous one.
    Yeah, if you want to handle that through an overworld script you'll want to add a map script ON_WARP_INTO_MAP_TABLE to activate a script based on your conditions that calls the playse macro.

    Alternatively, you can do it directly on the C side like Game Freak did a number of times.
    Check GetLocationMusic, GetCurrLocationDefaultMusic and/or GetWarpDestinationMusic for more info.
     
    Back
    Top