The PokéCommunity Forums Fan Games ROM Hacking
[ARCHIVE] Simple Questions (SEARCH BEFORE ASKING A QUESTION)

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.


Closed Thread
 
Thread Tools
  #7976    
Old January 23rd, 2009 (8:30 PM).
Liquid Shadow's Avatar
Liquid Shadow Liquid Shadow is offline
xD
     
    Join Date: Mar 2008
    Gender:
    Posts: 224
    I have a question about the compare PLAYERFACING command.

    If I want a script to compare if the guy is facing up, a message shows up, and if he's not facing up, nothing shows up.

    I tried doing:

    compare PLAYERFACING 0x2
    if 0x2 goto @end
    msgbox @hello 0x6

    But the message pops up even if he's facing any other direction. Any help?
    __________________

    4 truths of life
    1. You cannot touch all your teeth with your tongue.
    2. All idiots, after reading the first truth, will try it.
    3. And discover that the first truth is a lie.
    4. You're smiling now because you're an idiot.

    Relevant Advertising!

      #7977    
    Old January 23rd, 2009 (8:33 PM).
    Ninja Caterpie's Avatar
    Ninja Caterpie Ninja Caterpie is offline
    Sitting by the back window
       
      Join Date: Mar 2008
      Location: Best City OCE
      Age: 22
      Gender: Male
      Nature: Bold
      Posts: 5,988
      Quote:
      Originally Posted by NeoNemesis View Post
      I have a question about the compare PLAYERFACING command.

      If I want a script to compare if the guy is facing up, a message shows up, and if he's not facing up, nothing shows up.

      I tried doing:

      compare PLAYERFACING 0x2
      if 0x2 goto @end
      msgbox @hello 0x6

      But the message pops up even if he's facing any other direction. Any help?
      Uh, "if 0x2 goto @end" is the problem. There's no 0x2 in if. It's either 0x1 or 0x0.

      Put "if 0x0 goto @end" meaning - if it's not <what you compared before> then it'll go to end.
      __________________
      Brony represent.
        #7978    
      Old January 23rd, 2009 (9:41 PM).
      JPAN JPAN is offline
      pokemon rom researcher
         
        Join Date: Dec 2008
        Posts: 104
        I have some questions for those of you who ASM hack: do you know the locations of the variables and flags in the RAM?

        Also, do you know how to use memory content on your scripts? The command LoadByteFromOffset stores the byte in a bank, but how do you use it?

        Thanks in advance.
          #7979    
        Old January 23rd, 2009 (10:36 PM).
        Zaptinex's Avatar
        Zaptinex Zaptinex is offline
           
          Join Date: May 2008
          Location: USA
          Gender:
          Posts: 43
          Does anyone know how to edit the flower animations successfully? I tried it with the tutorial on Whack a Hack and it didnt work out too well. Do you know how to open it up in the pallete the flower usually is?
            #7980    
          Old January 23rd, 2009 (11:22 PM).
          Cy-Chan's Avatar
          Cy-Chan Cy-Chan is offline
          GSC Hacker
             
            Join Date: Jan 2005
            Location: UK, England.
            Age: 27
            Gender:
            Nature: Timid
            Posts: 152
            Quote:
            Originally Posted by destinedjagold View Post
            Elow pipz.
            I got a question...
            Is there a way to script a trainer who will have the same PKMN you have in your party?
            Thanks~
            Not sure about the limitations, but couldn't it be done with writebytetooffset and loadbytefrompointer? Find the RAM locations of your Pokémon, read them with loadbytefrompointer, and then writebytetooffset to an unused trainer slot.

            Probably need to use a countpokemon as well, to make sure the trainer you battle has the same amount of Pokémon as you.

            Wow, that could get creative, if the theory works.

            Quote:
            Originally Posted by Cy-Chan
            Two questions for you Gold gurus! Simple one first, in the ADV games, there's a limit to five evolutions, is that also true for Gold?

            Second, how do I add images in for Pokémon slots FC and FE (FD is Egg)? Right now, it loads tileset 0 (for the front sprite), or the trainer back sprite (for the back sprite).
            Quoted for emphasis.
              #7981    
            Old January 23rd, 2009 (11:29 PM).
            IIMarckus's Avatar
            IIMarckus IIMarckus is offline
               
              Join Date: Oct 2007
              Gender:
              Posts: 402
              Quote:
              Originally Posted by Cy-Chan View Post
              Two questions for you Gold gurus! Simple one first, in the ADV games, there's a limit to five evolutions, is that also true for Gold?
              No, Gold has no limit on the number of evolutions. You will need to repoint though.
              __________________
              iimarck.us / hax.iimarck.us

              If you want me, please contact me by email. [email protected]

              If you want to hack Pokémon RBY or GSC, read, read, and read some more. This has tons of valuable information.

              Pokémon Red disassembly project

              Rules that should be rethought: 25charlimit, bumping.
              Bad posts are bad posts, regardless of how many words are in them or how old the thread is.
              Good posts are good posts, regardless of how old the thread is—and brevity is underrated.
                #7982    
              Old January 24th, 2009 (1:54 AM).
              chelly1107's Avatar
              chelly1107 chelly1107 is offline
              The Unseen
                 
                Join Date: Jan 2009
                Posts: 15
                how do i change the trainer's backpic?
                  #7983    
                Old January 24th, 2009 (4:20 AM).
                Christos's Avatar
                Christos Christos is offline
                 
                Join Date: Feb 2006
                Gender: Male
                Nature: Serious
                Posts: 6,344
                Quote:
                Originally Posted by chelly1107 View Post
                how do i change the trainer's backpic?
                You can do it with any tile editor such as Tile Molester or TLP.
                Take a look at this tutorial for Fire Red.
                __________________

                A Pokemon that is discriminated!
                Support squirtle and make it everyone's favourite.
                  #7984    
                Old January 24th, 2009 (6:02 AM).
                Dark Sakurati Dark Sakurati is offline
                Gone
                   
                  Join Date: Aug 2008
                  Posts: 146
                  Quote:
                  Originally Posted by Cy-Chan View Post
                  Search Google for "Visual Basic 6 Runtime Files". They're free and everything. Alternatively, I believe Whack-a-Hack has them for download.
                  Uh...I downloaded it then I had to extract a file then I clicked on it then it came up with a window with component names then quickly dissapered. XD After that I though it was done, so I opened a hacking tool and it still does not work. XD

                  Did it work? Or did I do something wrong? XD (And yes I laugh at everything XD)
                    #7985    
                  Old January 24th, 2009 (6:35 AM).
                  hot_kage's Avatar
                  hot_kage hot_kage is offline
                  I am like a rose cute and calm
                     
                    Join Date: Oct 2008
                    Location: Long Beach , California
                    Age: 25
                    Gender:
                    Nature: Naughty
                    Posts: 35
                    how do you make a splash/dive script
                      #7986    
                    Old January 24th, 2009 (7:07 AM).
                    HentaiHentai HentaiHentai is offline
                    Banned
                       
                      Join Date: Dec 2008
                      Location: Washington, USA
                      Age: 29
                      Gender:
                      Nature: Calm
                      Posts: 52
                      Hello, I was wondering if it was possible to get a pallete from a file/image.

                      Ex. I have a rather large tileset that doesnt relate to Pokemon and I wanted to take tiles from that tileset and put them in my hack. So i got the tile In game. However the palletes are messed up on it. Is there any way to get the palletes from a specific part of the image. (I can crop my tile out, so basically is there a way to get the palletes from that file., also if not how would I know what pallets to change in AMaps pallete editor)

                      Thank You.
                        #7987    
                      Old January 24th, 2009 (7:12 AM).
                      Banjora Marxvile's Avatar
                      Banjora Marxvile Banjora Marxvile is offline
                      hOI!!!!!! i'm tEMMIE!!
                         
                        Join Date: May 2008
                        Age: 24
                        Gender: Male
                        Nature: Bashful
                        Posts: 3,487
                        Quote:
                        Originally Posted by HentaiHentai View Post
                        Hello, I was wondering if it was possible to get a pallete from a file/image.

                        Ex. I have a rather large tileset that doesnt relate to Pokemon and I wanted to take tiles from that tileset and put them in my hack. So i got the tile In game. However the palletes are messed up on it. Is there any way to get the palletes from a specific part of the image. (I can crop my tile out, so basically is there a way to get the palletes from that file., also if not how would I know what pallets to change in AMaps pallete editor)

                        Thank You.
                        Recolour your tiles into the pallette in the game that fits the tile. Insert it, then edit the A-Map pallette colours that you used on your tiles.
                        __________________


                        Temmie vibrates intensely.

                        awwAwa cute!! (pets u)

                        OMG!! humans TOO CUTE (dies)

                        can't blame a BARK for tryin'...

                        RATED TEM OUTTA TEM.

                          #7988    
                        Old January 24th, 2009 (7:30 AM).
                        hot_kage's Avatar
                        hot_kage hot_kage is offline
                        I am like a rose cute and calm
                           
                          Join Date: Oct 2008
                          Location: Long Beach , California
                          Age: 25
                          Gender:
                          Nature: Naughty
                          Posts: 35
                          Quote:
                          Originally Posted by hot_kage View Post
                          how do you make a splash/dive script
                          does anyone know how to make one?

                          like in pokemon zephyr the HYDRA ISLAND script
                            #7989    
                          Old January 24th, 2009 (7:43 AM). Edited January 24th, 2009 by wingzro17.
                          wingzro17's Avatar
                          wingzro17 wingzro17 is offline
                          ......................... .....
                             
                            Join Date: Aug 2007
                            Location: Under a box, near 31st street, on FAKE AVE. in FAKE YORK.
                            Nature: Quiet
                            Posts: 46
                            Quote:
                            Originally Posted by hot_kage View Post
                            does anyone know how to make one?

                            like in pokemon zephyr the HYDRA ISLAND script
                            A dive script?
                            Well here's one. I think it works.
                            Someone try it.

                            (PKMN_FR)
                            Spoiler:

                            #dynamic 0xoffset

                            #org @start
                            checkattack 0x123
                            compare LASTRESULT 0x6
                            if 0x1 goto @start2
                            msgbox @1 0x5
                            compare LASTRESULT 0x1
                            if 0x0 goto @release
                            bufferpartypokemon 0x0 LASTRESULT
                            msgbox @2 0x6
                            warp 0x? 0x? 0x? 0x? 0x?
                            release
                            end

                            #org @start2
                            msgbox @3 0x6
                            release
                            end

                            #org @release
                            release
                            end

                            #org @1
                            = The water is deep.\pWould you like to use dive?

                            #org @2
                            = [buffer1] used DIVE!

                            #org @3
                            = The water is deep.
                              #7990    
                            Old January 24th, 2009 (7:47 AM).
                            hot_kage's Avatar
                            hot_kage hot_kage is offline
                            I am like a rose cute and calm
                               
                              Join Date: Oct 2008
                              Location: Long Beach , California
                              Age: 25
                              Gender:
                              Nature: Naughty
                              Posts: 35
                              Quote:
                              Originally Posted by wingzro17 View Post
                              A dive script?
                              Well here's one. I think it works.
                              Someone try it.

                              (PKMN_FR)
                              Spoiler:

                              #dynamic 0xoffset

                              #org @start
                              checkattack 0x123
                              if 0x0 goto @start2
                              msgbox @1 0x5
                              compare LASTRESULT 0x1
                              if 0x0 goto @release
                              bufferpartypokemon 0x0 LASTRESULT
                              msgbox @2 0x6
                              warp 0x? 0x? 0x? 0x? 0x?
                              release
                              end

                              #org @start2
                              msgbox @3 0x6
                              release
                              end

                              #org @release
                              release
                              end

                              #org @1
                              = The water is deep.\pWould you like to use dive?

                              #org @2
                              = [buffer1] used DIVE!

                              #org @3
                              = The water is deep.
                              thank you but i need the splash animation an ideas?
                                #7991    
                              Old January 24th, 2009 (7:50 AM).
                              Tropical Sunlight's Avatar
                              Tropical Sunlight Tropical Sunlight is offline
                              The Faltine
                                 
                                Join Date: Mar 2008
                                Location: Slovenia
                                Age: 22
                                Gender: Male
                                Posts: 3,577
                                Quote:
                                Originally Posted by hot_kage View Post
                                does anyone know how to make one?

                                like in pokemon zephyr the HYDRA ISLAND script
                                You should ask Jacotey for that...
                                I think he'll be willing to answer.
                                __________________
                                  #7992    
                                Old January 24th, 2009 (7:56 AM).
                                hot_kage's Avatar
                                hot_kage hot_kage is offline
                                I am like a rose cute and calm
                                   
                                  Join Date: Oct 2008
                                  Location: Long Beach , California
                                  Age: 25
                                  Gender:
                                  Nature: Naughty
                                  Posts: 35
                                  Quote:
                                  Originally Posted by Tropical Sunlight View Post
                                  You should ask Jacotey for that...
                                  I think he'll be willing to answer.
                                  thanks

                                  but do you know how to make the diving animation bubbles
                                    #7993    
                                  Old January 24th, 2009 (8:34 AM).
                                  wingzro17's Avatar
                                  wingzro17 wingzro17 is offline
                                  ......................... .....
                                     
                                    Join Date: Aug 2007
                                    Location: Under a box, near 31st street, on FAKE AVE. in FAKE YORK.
                                    Nature: Quiet
                                    Posts: 46
                                    Quote:
                                    Originally Posted by hot_kage View Post
                                    thanks

                                    but do you know how to make the diving animation bubbles
                                    Well, in advanced map, there's a weather called "Underwater Mist".
                                    It's not like R/S/E, but it looks like underwater.

                                    If you want animation when you dive, I don't know.
                                      #7994    
                                    Old January 24th, 2009 (8:56 AM).
                                    hot_kage's Avatar
                                    hot_kage hot_kage is offline
                                    I am like a rose cute and calm
                                       
                                      Join Date: Oct 2008
                                      Location: Long Beach , California
                                      Age: 25
                                      Gender:
                                      Nature: Naughty
                                      Posts: 35
                                      Quote:
                                      Originally Posted by wingzro17 View Post

                                      If you want animation when you dive, I don't know.
                                      thanks anyway
                                      so i'll go ask the creator of pokemon zephyr
                                        #7995    
                                      Old January 24th, 2009 (10:34 AM).
                                      Gamer2020's Avatar
                                      Gamer2020 Gamer2020 is offline
                                      Accept no Imitations!
                                         
                                        Join Date: Jun 2008
                                        Location: Distant Land
                                        Gender: Male
                                        Nature: Bold
                                        Posts: 934
                                        In ruby how do I change the poochyena that you fight when you get your first pokemon to a different pokemon?
                                        __________________

                                        The new home for ROM Hacking!
                                          #7996    
                                        Old January 24th, 2009 (10:45 AM).
                                        Andryandrew Andryandrew is offline
                                        Italian Asm Hacker
                                           
                                          Join Date: Mar 2007
                                          Age: 24
                                          Gender:
                                          Nature: Timid
                                          Posts: 117
                                          Quote:
                                          Originally Posted by Gamer2020 View Post
                                          In ruby how do I change the poochyena that you fight when you get your first pokemon to a different pokemon?
                                          you have to analyze that script and search for the "wildbattle" command. Then change its first parametre with the number of the pokemon you want
                                          __________________

                                          Sorry for my bad English... I'm Italian :embarrass
                                          Anybody that is a GBA ASM hacker is cool!
                                          I'm a GBA ASM hacker --> I'm cool :D

                                          Made Day-Night Routine! You can find the thread HERE
                                            #7997    
                                          Old January 24th, 2009 (10:59 AM).
                                          Aljam's Avatar
                                          Aljam Aljam is offline
                                          Pierce the heavens
                                           
                                          Join Date: Jul 2008
                                          Location: Canada
                                          Age: 24
                                          Gender: Male
                                          Nature: Modest
                                          Posts: 583
                                          how do you make a thread look more appealing to the eyes???
                                          __________________
                                          Paired with Druyii.
                                            #7998    
                                          Old January 24th, 2009 (11:39 AM).
                                          Gamer2020's Avatar
                                          Gamer2020 Gamer2020 is offline
                                          Accept no Imitations!
                                             
                                            Join Date: Jun 2008
                                            Location: Distant Land
                                            Gender: Male
                                            Nature: Bold
                                            Posts: 934
                                            Quote:
                                            Originally Posted by Gamer2020 View Post
                                            In ruby how do I change the poochyena that you fight when you get your first pokemon to a different pokemon?
                                            Quote:
                                            Originally Posted by Andryandrew View Post
                                            you have to analyze that script and search for the "wildbattle" command. Then change its first parametre with the number of the pokemon you want
                                            I tried that...

                                            There is no "wildbattle" for that script. I think it's one of the specials. I need to change poocheyena to a pidgey.
                                            __________________

                                            The new home for ROM Hacking!
                                              #7999    
                                            Old January 24th, 2009 (11:58 AM).
                                            Destrozone's Avatar
                                            Destrozone Destrozone is offline
                                            Finally Flyin' Solo
                                               
                                              Join Date: Apr 2008
                                              Location: Narnia Hills, California.
                                              Age: 23
                                              Gender: Male
                                              Nature: Adamant
                                              Posts: 290
                                              Quote:
                                              Originally Posted by Cy-Chan View Post
                                              Check out the resources thread. I uploaded an ips to add Sound as a type. Compare it to a clean Fire Red rom in a hex editor, and see the differences. It's basically just repointing some stuff.
                                              Thats not what I really meant. How do you set it up, like making what its weak or good against? I also cannot find your IPS patch. I looked at one of your tutorials, and saw that you had all of the types listed, and that there was one unknown. If I could, I would like to change that type. If you could help me find variables to change it so that its weak to certain types and strong against others.
                                              __________________
                                              I have Returned!
                                                #8000    
                                              Old January 24th, 2009 (12:11 PM).
                                              TB Pro's Avatar
                                              TB Pro TB Pro is offline
                                              Old-timer
                                                 
                                                Join Date: Nov 2004
                                                Location: Midwestern USA
                                                Age: 23
                                                Gender: Male
                                                Posts: 2,739
                                                Quote:
                                                Originally Posted by Zaptinex View Post
                                                Does anyone know how to edit the flower animations successfully? I tried it with the tutorial on Whack a Hack and it didnt work out too well. Do you know how to open it up in the pallete the flower usually is?
                                                Yeah, open up VBA, and go to an area with a flower. Open up palette viewer and hit "Save BG". In Time Molester goto Palette→Open from another file(or something like that)→choose that pal. Hit the arrows at the bottom, next to the pal till You get to the correct palette.

                                                Quote:
                                                Originally Posted by hot_kage View Post
                                                thank you but i need the splash animation an ideas?
                                                If you have the player do the "Jump" movement command, then disappear, It will do the splashing effect automatically.

                                                Quote:
                                                Originally Posted by Destrozone View Post
                                                Thats not what I really meant. How do you set it up, like making what its weak or good against? I also cannot find your IPS patch. I looked at one of your tutorials, and saw that you had all of the types listed, and that there was one unknown. If I could, I would like to change that type. If you could help me find variables to change it so that its weak to certain types and strong against others.
                                                Darthatron made a tool for that, in the Toolbox.
                                                __________________
                                                --I'm a creepin'..
                                                Closed Thread

                                                Quick Reply

                                                Join the conversation!

                                                Create an account to post a reply in this thread, participate in other discussions, and more!

                                                Create a PokéCommunity Account

                                                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 10:19 PM.