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

Controlling Legendary Battle Music (No ASM)

xGal

Mhm
  • 241
    Posts
    13
    Years
    Okay, it's like that. Once, I've found a way doing that without ASM, but I didn't want to release it to the public until I do some research on it.

    Thanks to karatekid552, I am ready to release this!

    Okay, it's damn simple, even ridiculous.
    Any n00b could do that in no time!
    This code is for R/S/FR/LG/E.

    What we need:

    - XSE 1.1.1 (that's what I am using)

    _____________________________________________________________________________________

    Okay, just build a script going normally, and when you want your wildbattle to start, simply write that:

    Code:
    setwildbattle 0x[Species] 0x[Level] 0x[Item]
    special 0x138
    playsong 0x[Song to play INBATTLE] 0x0
    And we are done! No, it won't play that sound after battle, it will be INBATTLE.

    Please note that it is NOT fully developed, it is still under development, so I can't say it will work fine on ANY situation. I have checked that while using normal person talk script, a script block and even a level script and everything worked fine.

    Also, I'd like to note that while using that on a long script, you should put
    Code:
    goto @[pointer]
    , and in the new pointer, do the script I wrote before. After the playsong command, you should write another goto command to another pointer (if you want the script to continue), but for short scripts, example:
    Code:
    #dynamic 0x800000
    
    #org @start
    lock
    faceplayer
    cry 0x1 0x2
    msgbox @1 0x6
    setwildbattle 0x1 0x5 0x0
    special 0x138
    playsong 0x299 0x0
    hidesprite 0x800D
    setflag 0x105
    release
    end
    
    #org @1
    = A wild Bulbasaur attacks!
    You do NOT need the goto command.

    If you're intersted, while talking with karatekid552, the subject of doing that on trainerbattles was talked about.
    I will try to figure out if it's possible doing that on trainerbattles later on. Is one of the CMDs is actually settrainerbattle? (lol)

    - Gal
     
    Last edited:
    Is this for FireRed, Emerald, or does is it happen to be universal? I would check myself, but I'm hundreds of miles away from my computer. Great discovery, anyways!
     
    It do not work. I try it several Times. Allways that same effect. Event freeze game <I do it in Ruby>


    Sry... It do not work becouse I use it with PKSV. In XSE work's perfectly. Did you know the script for controling Trainer Battles Music? I need it to add extra TEAM ROCKET music and Kanto Gym Leader theme.
     
    Last edited:
    Sry... It do not work becouse I use it with PKSV. In XSE work's perfectly. Did you know the script for controling Trainer Battles Music? I need it to add extra TEAM ROCKET music and Kanto Gym Leader theme.
     
    Sry... It do not work becouse I use it with PKSV. In XSE work's perfectly. Did you know the script for controling Trainer Battles Music? I need it to add extra TEAM ROCKET music and Kanto Gym Leader theme.

    Currently now, I am still investigating if it's possible doing that on trainer battles. For now, I will recommend you to follow Jambo's tutorial on class based trainer battle music :). And yea, I didn't say it will work with PKSV...
     
    I figured out a way to get it working with trainers and I made a thread on it. Just waiting for it to be accepted :)
     
    Hey, what are the codes for the species, level, items, or music? Is it like 100 for level 100 or is it different?
     
    Hey, what are the codes for the species, level, items, or music? Is it like 100 for level 100 or is it different?

    Use hex
    so 100 would be 64

    For music, you can find the value of those in A-maps Header section IIRC.
     
    Use hex
    so 100 would be 64

    For music, you can find the value of those in A-maps Header section IIRC.

    In XSE you can in setwildbattle write Name of Pokemon <For 252-276 placeholder you must write numers> And near Level in hex. Example. We need to create deoxys battle. Simple to write.

    setwildbattle DEOXYS 100 NONE

    And done. It creat for you Dexoys in Lvl 100 without Item.
     
    In XSE you can in setwildbattle write Name of Pokemon <For 252-276 placeholder you must write numers> And near Level in hex. Example. We need to create deoxys battle. Simple to write.

    setwildbattle DEOXYS 100 NONE

    And done. It creat for you Dexoys in Lvl 100 without Item.

    Oh, really?

    That's something new!

    Thanks hahahaaha
     
    Yeah in XSE if you type in a number without the 0x it automatically assumes it's in dec.
     
    Hey, where do I edit the battle music in this script:

    Spoiler:
     
    Back
    Top