The PokéCommunity Forums Fan Games ROM Hacking Tools, Tutorials & Resources
Tutorial Controlling Legendary Battle Music (No ASM)

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.

Reply
 
Thread Tools
  #1    
Old July 19th, 2013 (10:04 AM). Edited July 21st, 2013 by xGal.
xGal xGal is offline
Mhm
     
    Join Date: Nov 2011
    Location: A tree
    Gender: Other
    Nature: Relaxed
    Posts: 242
    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
    __________________
    Reply With Quote

    Relevant Advertising!

      #2    
    Old July 20th, 2013 (5:56 PM).
    Wobbu's Avatar
    Wobbu Wobbu is offline
    Drag a needle on the good today
       
      Join Date: Mar 2012
      Location: Stardew Valley
      Gender: Male
      Nature: Relaxed
      Posts: 2,797
      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!
      __________________

      Boyboy - Vices
      Reply With Quote
        #3    
      Old July 21st, 2013 (6:08 AM).
      xGal xGal is offline
      Mhm
         
        Join Date: Nov 2011
        Location: A tree
        Gender: Other
        Nature: Relaxed
        Posts: 242
        Quote:
        Originally Posted by jsziede View Post
        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!
        Gee, I forgot to mention

        It is for R/S/E/FR/LG.
        __________________
        Reply With Quote
          #4    
        Old July 23rd, 2013 (1:44 AM). Edited July 23rd, 2013 by AtecainCorp..
        AtecainCorp.'s Avatar
        AtecainCorp. AtecainCorp. is offline
        Rejishan awake...
           
          Join Date: Jun 2008
          Location: Takoabe Town (Region Thonsu)
          Age: 24
          Gender: Male
          Nature: Hardy
          Posts: 1,228
          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.
          __________________
          - My new Project comming Soon
          Reply With Quote
            #5    
          Old July 23rd, 2013 (2:34 AM).
          xGal xGal is offline
          Mhm
             
            Join Date: Nov 2011
            Location: A tree
            Gender: Other
            Nature: Relaxed
            Posts: 242
            Quote:
            Originally Posted by Ksiazek Bartlomiej View Post
            It do not work. I try it several Times. Allways that same effect. Event freeze game <I do it in Ruby>
            Really? Because i tested it in ruby and it worked fine. Can you post here your script?
            __________________
            Reply With Quote
              #6    
            Old July 23rd, 2013 (4:10 AM).
            AtecainCorp.'s Avatar
            AtecainCorp. AtecainCorp. is offline
            Rejishan awake...
               
              Join Date: Jun 2008
              Location: Takoabe Town (Region Thonsu)
              Age: 24
              Gender: Male
              Nature: Hardy
              Posts: 1,228
              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.
              __________________
              - My new Project comming Soon
              Reply With Quote
                #7    
              Old July 23rd, 2013 (8:00 AM).
              xGal xGal is offline
              Mhm
                 
                Join Date: Nov 2011
                Location: A tree
                Gender: Other
                Nature: Relaxed
                Posts: 242
                Quote:
                Originally Posted by Ksiazek Bartlomiej View Post
                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...
                __________________
                Reply With Quote
                  #8    
                Old August 5th, 2013 (5:45 PM).
                Crocky's Avatar
                Crocky Crocky is offline
                SuperScarlet!
                   
                  Join Date: Feb 2009
                  Posts: 95
                  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
                  Reply With Quote
                    #9    
                  Old August 6th, 2013 (3:42 AM).
                  xGal xGal is offline
                  Mhm
                     
                    Join Date: Nov 2011
                    Location: A tree
                    Gender: Other
                    Nature: Relaxed
                    Posts: 242
                    Quote:
                    Originally Posted by Crocky View Post
                    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
                    Wow, seriously?

                    Can you send it on PM please?

                    I really wanna check this out!
                    __________________
                    Reply With Quote
                      #10    
                    Old August 6th, 2013 (5:18 AM).
                    LCCoolJ95's Avatar
                    LCCoolJ95 LCCoolJ95 is offline
                    Limited Capacity
                       
                      Join Date: May 2009
                      Location: The World That Never Was
                      Age: 22
                      Gender: Male
                      Nature: Naive
                      Posts: 513
                      Hey, what are the codes for the species, level, items, or music? Is it like 100 for level 100 or is it different?
                      __________________
                      "The greatest obstacle in life is Yourself. Overcome it, and you will achieve the greatest accomplishment of all." -Art Beins, 1982

                      Pokémon Theta Emerald EX: https://www.pokecommunity.com/showthread.php?t=386240
                      Reply With Quote
                        #11    
                      Old August 6th, 2013 (7:49 AM).
                      Aruaruu Aruaruu is offline
                         
                        Join Date: Sep 2011
                        Gender: Male
                        Posts: 199
                        Quote:
                        Originally Posted by LCCoolJ95 View Post
                        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.
                        Reply With Quote
                          #12    
                        Old August 7th, 2013 (11:16 AM).
                        AtecainCorp.'s Avatar
                        AtecainCorp. AtecainCorp. is offline
                        Rejishan awake...
                           
                          Join Date: Jun 2008
                          Location: Takoabe Town (Region Thonsu)
                          Age: 24
                          Gender: Male
                          Nature: Hardy
                          Posts: 1,228
                          Quote:
                          Originally Posted by Aruaruu View Post
                          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.
                          __________________
                          - My new Project comming Soon
                          Reply With Quote
                            #13    
                          Old August 7th, 2013 (11:19 AM).
                          xGal xGal is offline
                          Mhm
                             
                            Join Date: Nov 2011
                            Location: A tree
                            Gender: Other
                            Nature: Relaxed
                            Posts: 242
                            Quote:
                            Originally Posted by Ksiazek Bartlomiej View Post
                            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
                            __________________
                            Reply With Quote
                              #14    
                            Old August 7th, 2013 (11:29 AM). Edited August 7th, 2013 by AtecainCorp..
                            AtecainCorp.'s Avatar
                            AtecainCorp. AtecainCorp. is offline
                            Rejishan awake...
                               
                              Join Date: Jun 2008
                              Location: Takoabe Town (Region Thonsu)
                              Age: 24
                              Gender: Male
                              Nature: Hardy
                              Posts: 1,228
                              Meybe that was oblivious. But some do not know about it XD

                              BTW.

                              What with this Trainer Battle Music controling script?
                              __________________
                              - My new Project comming Soon
                              Reply With Quote
                                #15    
                              Old August 7th, 2013 (11:34 AM).
                              GoGoJJTech's Avatar
                              GoGoJJTech GoGoJJTech is offline
                              (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
                              • Gold Tier
                               
                              Join Date: Nov 2012
                              Location: Earth
                              Age: 18
                              Gender: Female
                              Nature: Jolly
                              Posts: 2,477
                              Yeah in XSE if you type in a number without the 0x it automatically assumes it's in dec.
                              __________________
                              I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
                              The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
                              Romhack.me Profile - Pokecommunity Profile - Youtube Channel

                              Support me at my site!
                              Pokémon Platinum Red and Blue
                              Reply With Quote
                                #16    
                              Old August 8th, 2013 (8:01 AM).
                              AtecainCorp.'s Avatar
                              AtecainCorp. AtecainCorp. is offline
                              Rejishan awake...
                                 
                                Join Date: Jun 2008
                                Location: Takoabe Town (Region Thonsu)
                                Age: 24
                                Gender: Male
                                Nature: Hardy
                                Posts: 1,228
                                Someone know that formula for Trainer Battles? I really need to know that.
                                __________________
                                - My new Project comming Soon
                                Reply With Quote
                                  #17    
                                Old August 8th, 2013 (9:04 AM).
                                xGal xGal is offline
                                Mhm
                                   
                                  Join Date: Nov 2011
                                  Location: A tree
                                  Gender: Other
                                  Nature: Relaxed
                                  Posts: 242
                                  Quote:
                                  Originally Posted by Ksiazek Bartlomiej View Post
                                  Someone know that formula for Trainer Battles? I really need to know that.
                                  I haven't discovered that yet, however, a guy here said he did discover it and he is waiting for his thread to get approved. Currently now, the only way to do that is to use Jambo51's ASM script or MX's jukebox script.
                                  __________________
                                  Reply With Quote
                                    #18    
                                  Old August 8th, 2013 (11:53 AM).
                                  AtecainCorp.'s Avatar
                                  AtecainCorp. AtecainCorp. is offline
                                  Rejishan awake...
                                     
                                    Join Date: Jun 2008
                                    Location: Takoabe Town (Region Thonsu)
                                    Age: 24
                                    Gender: Male
                                    Nature: Hardy
                                    Posts: 1,228
                                    MX Jokebox Script? Is there an link to thread about it? It sound intresting.
                                    __________________
                                    - My new Project comming Soon
                                    Reply With Quote
                                      #19    
                                    Old August 8th, 2013 (2:18 PM).
                                    xGal xGal is offline
                                    Mhm
                                       
                                      Join Date: Nov 2011
                                      Location: A tree
                                      Gender: Other
                                      Nature: Relaxed
                                      Posts: 242
                                      Quote:
                                      Originally Posted by Ksiazek Bartlomiej View Post
                                      MX Jokebox Script? Is there an link to thread about it? It sound intresting.
                                      Sure there is! Here you go: http://www.pokecommunity.com/showthread.php?t=157294.

                                      Mastermind_X created that feature a long time ago. It simply allows you to replace a music with another .
                                      __________________
                                      Reply With Quote
                                        #20    
                                      Old August 9th, 2013 (4:58 PM).
                                      LCCoolJ95's Avatar
                                      LCCoolJ95 LCCoolJ95 is offline
                                      Limited Capacity
                                         
                                        Join Date: May 2009
                                        Location: The World That Never Was
                                        Age: 22
                                        Gender: Male
                                        Nature: Naive
                                        Posts: 513
                                        Hey, where do I edit the battle music in this script:

                                        Spoiler:
                                        '---------------
                                        #org 0x8E53B6
                                        lock
                                        faceplayer
                                        msgbox 0x88E6460 MSG_NORMAL '"RAIKOU: Raaaaaai!"
                                        cry 0xF3 0x0
                                        wildbattle 0xF3 0x2D 0x0
                                        fadescreen 0x1
                                        fadescreen 0x0
                                        hidesprite LASTTALKED
                                        setflag 0x1206
                                        release
                                        end


                                        '---------
                                        ' Strings
                                        '---------
                                        #org 0x8E6460
                                        = RAIKOU: Raaaaaai!
                                        __________________
                                        "The greatest obstacle in life is Yourself. Overcome it, and you will achieve the greatest accomplishment of all." -Art Beins, 1982

                                        Pokémon Theta Emerald EX: https://www.pokecommunity.com/showthread.php?t=386240
                                        Reply With Quote
                                          #21    
                                        Old August 9th, 2013 (7:11 PM).
                                        xGal xGal is offline
                                        Mhm
                                           
                                          Join Date: Nov 2011
                                          Location: A tree
                                          Gender: Other
                                          Nature: Relaxed
                                          Posts: 242
                                          Quote:
                                          Originally Posted by LCCoolJ95 View Post
                                          Hey, where do I edit the battle music in this script:

                                          Spoiler:
                                          '---------------
                                          #org 0x8E53B6
                                          lock
                                          faceplayer
                                          msgbox 0x88E6460 MSG_NORMAL '"RAIKOU: Raaaaaai!"
                                          cry 0xF3 0x0
                                          wildbattle 0xF3 0x2D 0x0
                                          fadescreen 0x1
                                          fadescreen 0x0
                                          hidesprite LASTTALKED
                                          setflag 0x1206
                                          release
                                          end


                                          '---------
                                          ' Strings
                                          '---------
                                          #org 0x8E6460
                                          = RAIKOU: Raaaaaai!
                                          Sorry, but I don't wanna make this thread a script requesting thread. The answer can be found on the tutorial.
                                          __________________
                                          Reply With Quote
                                            #22    
                                          Old August 10th, 2013 (2:43 PM).
                                          LCCoolJ95's Avatar
                                          LCCoolJ95 LCCoolJ95 is offline
                                          Limited Capacity
                                             
                                            Join Date: May 2009
                                            Location: The World That Never Was
                                            Age: 22
                                            Gender: Male
                                            Nature: Naive
                                            Posts: 513
                                            Quote:
                                            Originally Posted by galooloo View Post
                                            Sorry, but I don't wanna make this thread a script requesting thread. The answer can be found on the tutorial.
                                            No, I'm not requesting a script. I'm just wondering where do I edit the music.
                                            __________________
                                            "The greatest obstacle in life is Yourself. Overcome it, and you will achieve the greatest accomplishment of all." -Art Beins, 1982

                                            Pokémon Theta Emerald EX: https://www.pokecommunity.com/showthread.php?t=386240
                                            Reply With Quote
                                              #23    
                                            Old August 10th, 2013 (4:08 PM).
                                            xGal xGal is offline
                                            Mhm
                                               
                                              Join Date: Nov 2011
                                              Location: A tree
                                              Gender: Other
                                              Nature: Relaxed
                                              Posts: 242
                                              Quote:
                                              Originally Posted by LCCoolJ95 View Post
                                              No, I'm not requesting a script. I'm just wondering where do I edit the music.
                                              Read the tutorial...

                                              I wouldn't post a tutorial (and it won't get approved) without the main thing. If you know basic English, you might find the answer in the tutorial.
                                              __________________
                                              Reply With Quote
                                                #24    
                                              Old August 14th, 2013 (5:54 PM). Edited August 15th, 2013 by manadhon.
                                              manadhon's Avatar
                                              manadhon manadhon is offline
                                              RTX-008L
                                                 
                                                Join Date: May 2013
                                                Location: Khazad-dûm
                                                Age: 18
                                                Gender: Male
                                                Nature: Lax
                                                Posts: 118
                                                If anyone is interested, I figured out how to do this in PKSV.

                                                Instead of using playsong as in XSE, you would use playsound:
                                                Code:
                                                battle (Pokemon) 0x(level) (Item)
                                                special 0x138
                                                playsound 0x(song) 0x(song)
                                                The song MUST be put twice, or it will be compiled as "playsound 0x0 0x0."
                                                __________________
                                                "You can't lie to the Moon!"

                                                The (self-appointed) co-leader of H.O.A.G.I.E.
                                                Reply With Quote
                                                  #25    
                                                Old August 15th, 2013 (7:50 AM).
                                                LCCoolJ95's Avatar
                                                LCCoolJ95 LCCoolJ95 is offline
                                                Limited Capacity
                                                   
                                                  Join Date: May 2009
                                                  Location: The World That Never Was
                                                  Age: 22
                                                  Gender: Male
                                                  Nature: Naive
                                                  Posts: 513
                                                  This process does not work with Emerald. I'm trying to add in a battle against Raikou using the Battle vs Legendary Dogs theme. I made the script, and when I talked to the Raikou sprite, Raikou makes its cry, the game shakes, and it freezes

                                                  What am I doing wrong? Should I post the script to show you?
                                                  __________________
                                                  "The greatest obstacle in life is Yourself. Overcome it, and you will achieve the greatest accomplishment of all." -Art Beins, 1982

                                                  Pokémon Theta Emerald EX: https://www.pokecommunity.com/showthread.php?t=386240
                                                  Reply With Quote
                                                  Reply
                                                  Quick Reply

                                                  Sponsored Links
                                                  Thread Tools

                                                  Posting Rules
                                                  You may not post new threads
                                                  You may not post replies
                                                  You may not post attachments
                                                  You may not edit your posts

                                                  BB code is On
                                                  Smilies are On
                                                  [IMG] code is On
                                                  HTML code is Off

                                                  Forum Jump


                                                  All times are GMT -8. The time now is 7:30 AM.