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

Reply
 
Thread Tools
  #76    
Old April 7th, 2013 (1:45 PM).
The Legacy of The Legends Creator :D's Avatar
The Legacy of The Legends Creator :D The Legacy of The Legends Creator :D is offline
     
    Join Date: May 2010
    Gender: Male
    Posts: 234
    When i look for the 00250c04 i have
    00250bff
    then it goes to
    00250c08 is that ok?
    __________________
    Hey guys. lol i didnt think my username through. Wish i could change it.

    Hey guys, I think you would enjoy a Pokemon RPG: Pokemon Eclipse!

    It has all the current pokes. And More!!
    Lost of variety of things to do while playing. See how high you can level your poke past 100?
    Whats the rarest poke you can find!!
    *New features have been added~*
    Hope to see ya there :D
    Reply With Quote

    Relevant Advertising!

      #77    
    Old April 9th, 2013 (3:30 PM).
    dondon151 dondon151 is offline
       
      Join Date: Jan 2012
      Gender: Male
      Posts: 33
      I've got a question here.

      I'm trying to create the effect for Hurricane, so I basically copied Thunder and replaced the 05 byte (for paralysis) with a 07 (for confusion). I then paste wrote the code to another offset, pointed one of the effect indices to that offset, and then assigned that effect to the attack slot for Hurricane (which I had already created).

      The problem is that although Hurricane successfully confuses, it doesn't always hit in the rain, but I pasted the code for Thunder byte-for-byte. So I don't know what's wrong here.

      I then decided to test something else: I assigned Thunder's effect to Hurricane, except this time I changed the 05 byte in Thunder to 07. Now Hurricane confuses and always hits in the rain with the effect at this offset, but not with the effect at the copied offset.

      The code for Thunder is:
      2E 85 3E 02 02 05 35 D0 3D 02 02 00 00 01 00 28 00 69 1D 08

      Can anyone help me out?
      Reply With Quote
        #78    
      Old April 9th, 2013 (6:25 PM).
      DoesntKnowHowToPlay's Avatar
      DoesntKnowHowToPlay DoesntKnowHowToPlay is offline
      Tiny Umbrella with Lots and Lots of Good
         
        Join Date: Jan 2012
        Posts: 258
        Thunder's perfect accuracy in rain is a hard-coded effect associated with the slot, not a property of the battle script- the extra junk in the script is to set the variables that make it pierce Fly/Bounce. If you want to make proper Hurricane you'll need to find the check in the accuracy calc (put a breakpoint on Thunder's effect byte and use it in rain.)
        __________________

        Yet Another Fire Red Hack

        Physical/Special Split
        Reply With Quote
          #79    
        Old April 9th, 2013 (6:39 PM). Edited April 9th, 2013 by dondon151.
        dondon151 dondon151 is offline
           
          Join Date: Jan 2012
          Gender: Male
          Posts: 33
          Well, crap. I don't know how to do that (quite yet).

          Is Solarbeam skipping its charge turn in strong sunlight also hardcoded to the moveslot?
          Reply With Quote
            #80    
          Old April 11th, 2013 (2:32 AM). Edited April 11th, 2013 by Kurapika.
          Kurapika's Avatar
          Kurapika Kurapika is offline
          Grudgebearer
             
            Join Date: Feb 2013
            Location: Lavendar Town - Morocco
            Gender: Male
            Nature: Naughty
            Posts: 406
            Hi! I followed this great tutorial to add new moves a while ago. Now I wanted to customize the descriptions of these new moves.
            I found what it looks like the original table of pointers to moves' description, and copied it somewhere else in order to extend it and re-pointed it. But it didn't work, I don't know exactly what I am missing and need some assistance please. Or if someone already knows the pointer to the real table or something please tell me. Or if you know an easier way to edit those description it might work, too.
            Thanks in advance! :]


            EDIT: Sorry! I just realized I forgot to update the roms.ini with the new pointer. Sorry! '
            __________________
            Reply With Quote
              #81    
            Old April 11th, 2013 (4:32 AM).
            Jambo51's Avatar
            Jambo51 Jambo51 is offline
            Glory To Arstotzka
               
              Join Date: Jun 2009
              Gender: Male
              Nature: Quiet
              Posts: 732
              Quote:
              Originally Posted by dondon151 View Post
              I've got a question here.

              I'm trying to create the effect for Hurricane, so I basically copied Thunder and replaced the 05 byte (for paralysis) with a 07 (for confusion). I then paste wrote the code to another offset, pointed one of the effect indices to that offset, and then assigned that effect to the attack slot for Hurricane (which I had already created).

              The problem is that although Hurricane successfully confuses, it doesn't always hit in the rain, but I pasted the code for Thunder byte-for-byte. So I don't know what's wrong here.

              I then decided to test something else: I assigned Thunder's effect to Hurricane, except this time I changed the 05 byte in Thunder to 07. Now Hurricane confuses and always hits in the rain with the effect at this offset, but not with the effect at the copied offset.

              The code for Thunder is:
              2E 85 3E 02 02 05 35 D0 3D 02 02 00 00 01 00 28 00 69 1D 08

              Can anyone help me out?
              Doesn't is correct in saying it's hardcoded. However, all is not lost, as you could also set the script up to branch dependent on the Move's ID. Given that it uses the same effect ID, that could potentially work just as well.

              Code:
              2A 00 4A 3D 02 02 57 00 [Thunder Offset] 2E 85 3E 02 02 07 28 00 69 1D 08
              Obviously, this code assumes that Hurricane doesn't pierce Fly/Bounce, but if it did, you would simply branch to the original Thunder code AFTER the setting of 0x02023E85 to 0x5. In this way, you can have variations on Thunder's effect of 100% accuracy in rain with confusion and such.

              Quote:
              Originally Posted by dondon151 View Post
              Well, crap. I don't know how to do that (quite yet).

              Is Solarbeam skipping its charge turn in strong sunlight also hardcoded to the moveslot?
              No, IIRC that one is built into the Battle Script. It simply checks the current weather and if it's Sunny, skips the usual waiting turn.
              __________________
              Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
              Reply With Quote
                #82    
              Old April 11th, 2013 (11:05 AM).
              bradyroush bradyroush is offline
                 
                Join Date: Mar 2013
                Gender: Male
                Nature: Hasty
                Posts: 2
                Does anyone know the Ruby move animation table pointer?
                Reply With Quote
                  #83    
                Old April 11th, 2013 (7:57 PM). Edited April 12th, 2013 by Perri Lightfoot.
                Perri Lightfoot's Avatar
                Perri Lightfoot Perri Lightfoot is offline
                Proud to hack Ruby Version!
                • Crystal Tier
                 
                Join Date: Mar 2008
                Location: Nevada
                Age: 31
                Gender: Female
                Nature: Modest
                Posts: 176
                Some supplemental information to this tutorial for Ruby hackers:

                Offsets:
                0x1FB12C = Attack Data (0x1FB130 for PP pointers)
                0x1F8320 = Attack Names
                0x1C7168 = Attack Animation Table
                0x1D6BBC = Move Effect Table
                0x3CF594 = Contest Data. This must be repointed along with the rest of the above data (and the new moves given contest data), or else the game will freeze when attempting to display the Contest Moves tab. To repoint it using the same technique described in the tutorial; go to this offset and Select Block = 2840. Copy, and go from there.
                0x3C09D8 = Attack Description Table. This must also be repointed, or the game will start to overwrite important data (starting with Natures). To repoint it using the same technique described in the tutorial; go to this offset and Select Block = 1416. Copy, and go from there.

                How to give a new move Contest Data:

                A screenshot from Super Rising Thunder; demonstrating the contest data for new moves. Since my hack doesn't use Contests; I edited the graphics and text to display the move's type instead.

                Every move in Pokemon Ruby has Contest Data. This is an eight-byte data structure that contains the information that determines how the move functions when used in a Contest setting, and is set up like this:

                00 04 3C 00 00 00 00 00

                This is Pound's Contest data. The first byte determines what message is displayed in the summary - for example, "A highly appealing move!" This also determines the move's appeal/jam. The second byte is the Contest Type - in this case, Tough. The next byte is a combo identifier, used to identify the first move used in a Contest Combination. In contests, Pound can be used in combination with DoubleSlap, Faint Attack and Slam to rack up additional points. The next three bytes also relate to combos - if the move can be used second in a Contest Combination, the byte for the move(s) it can be combined with would go here, up to three.
                The last two bytes are padding and should always be set to 00. For more information, refer here and here.

                Now, go to where you repointed your Contest data table and skip down to the end (where the FF's begin again). If your hack doesn't bother with Contests you can put anything you want here - even 00 00 00 00 00 00 00 00 for each move if you so desired, just to keep the game from freezing. If your hack DOES use contests...I don't see why it wouldn't be possible to be able to use the new moves in combination with an old one in Contests, or to assign it a byte unused by the moves already there to have it lead a new set of Combinations. I don't think this is something anyone has experimented with yet (my hack doesn't use Contests; I use this screen in the summary to display the Physical/Special split instead), so it would require more exploration to see just where the limit is here!

                Ruby Versions of Moves With New Effects:

                If you use these in your own hack, please credit the original creators first and myself second. They are the ones who truly did the hard work; all I did was rewrite them to work on Ruby rather than Fire Red. The main differences between the codes for the two versions has to do with the pointers; and in some cases these are all you would need to change in order to port a move from one version to another. As a word of warning though, the move effect data itself between Ruby and Fire Red, while very similar, is often not exactly identical. Compare the codes for the unmodified Hammer Arm in Fire Red from the first post and the unmodified Hammer Arm for Ruby below, for example.

                U-TURN/VOLT SWITCH by Itman:
                Spoiler:

                00 01 72 6F 1D 08 00 00 02 03 04 05 06 07 09 0A 0E 5C 00 3A 0B 00 0C 00 0D 12 40 00 0F 12 40 00 4F 81 5B 6F 1D 08 50 01 D6 83 1D 08 E2 01 3A 51 01 02 58 01 4C 01 4D 01 73 01 10 03 00 4E 01 01 3A 52 01 28 62 6F 1D 08 28 5B 6F 1D 08


                HAMMER ARM (no Clear Body fix) by Itman:
                Spoiler:

                2E 21 4D 02 02 D8 28 14 6F 1D 08


                *new* HAMMER ARM (Clear Body fix) by DoesntKnowHowToPlay:
                Spoiler:

                00 01 72 6F 1D 08 00 00 02 03 04 05 06 07 09 0A 0E 5C 00 3A 0B 00 0C 00 0D 12 40 00 0F 12 40 00 29 04 68 4C 02 02 29 5B 6F 1D 08 20 01 00 03 00 5B 6F 1D 08 2E DC 60 01 02 00 48 01 08 09 2E 1E 60 01 02 93 89 C1 5B 6F 1D 08 13 70 15 40 08 12 40 00 28 5B 6F 1D 08


                I will edit this post with more moves as I continue to work on this. I hope this helps all the other Ruby hackers out there!
                __________________
                Signature under construction. Watch this space~
                Reply With Quote
                  #84    
                Old April 11th, 2013 (9:01 PM).
                DoesntKnowHowToPlay's Avatar
                DoesntKnowHowToPlay DoesntKnowHowToPlay is offline
                Tiny Umbrella with Lots and Lots of Good
                   
                  Join Date: Jan 2012
                  Posts: 258
                  A while back I posted a "polished" Hammer Arm that still lowered Speed when it failed to do damage. This version fixes that issue:

                  Spoiler:
                  00 01 5E 69 1D 08 00 00 02 03 04 05 06 07 09 0A 0E 5C 00 3A 0B 00 0C 00 0D 12 40 00 0F 12 40 00 29 04 CC 3D 02 02 29 47 69 1D 08 20 01 00 03 00 47 69 1D 08 2E DF 3F 02 02 00 48 01 08 09 2E DE 3F 02 02 93 89 C1 47 69 1D 08 13 7C E5 3F 08 12 40 00 28 47 69 1D 08


                  Or, if you prefer using BSP:
                  Spoiler:

                  #org 0x96F7B0
                  attackcanceler
                  accuracycheck 0x81D695E 0x0
                  attackstring
                  ppreduce
                  calculatedamage
                  attackanimation
                  waitanimation
                  missmessage
                  cmd5c 0x0
                  waitstate
                  graphicalhpupdate 0x0
                  datahpupdate 0x0
                  critmessage
                  waitmessage 0x40
                  resultmessage
                  waitmessage 0x40
                  jumpifbyte 0x4 0x2023DCC 0x29 0x81D6947
                  jumpifstat 0x1 0x0 0x3 0x0 0x81D6947
                  setbyte 0x2023FDF 0x0
                  playstatchangeanimation 0x1 0x8 0x9
                  setbyte 0x2023FDE 0x93
                  statbuffchange 0x81 true 0x81D6947
                  printfromtable 0x83FE57C
                  waitmessage 0x40
                  goto 0x81D6947


                  For FireRed, as usual, although if you know what you're doing you can probably port it.
                  __________________

                  Yet Another Fire Red Hack

                  Physical/Special Split
                  Reply With Quote
                    #85    
                  Old April 11th, 2013 (10:05 PM). Edited April 11th, 2013 by dreamengine.
                  dreamengine's Avatar
                  dreamengine dreamengine is offline
                     
                    Join Date: Aug 2012
                    Gender: Male
                    Posts: 68
                    I made these really quick, but yeah I'm pretty sure it works fine.

                    Flare Blitz(Ruby)
                    Spoiler:
                    00 01 72 6F 1D 08 00 00 02 03 04 05 06 07 09 0A 0E 5C 00 3A 0B 00 0C 00 0D 12 40 00 0F 12 40 00 2E 21 4D 02 02 E6 15 2E 21 4D 02 02 03 15 28 5B 6F 1D 08


                    Close Combat(Ruby)
                    Spoiler:
                    00 01 72 6F 1D 08 00 00 02 03 04 05 06 07 09 0A 0E 5C 00 3A 0B 00 0C 00 0D 12 40 00 0F 12 40 00 2E 21 4D 02 02 D7 15 2E 21 4D 02 02 DA 15 28 5B 6F 1D 08
                    __________________
                    I support...
                    Reply With Quote
                      #86    
                    Old April 11th, 2013 (10:22 PM).
                    BlackWhiteRobin's Avatar
                    BlackWhiteRobin BlackWhiteRobin is offline
                       
                      Join Date: Sep 2012
                      Age: 19
                      Gender: Male
                      Nature: Quirky
                      Posts: 534
                      Quote:
                      Originally Posted by Pink Parka Girl View Post
                      Some supplemental information to this tutorial for Ruby hackers:

                      Offsets:
                      0x1FB12C = Attack Data (0x1FB130 for PP pointers)
                      0x1F8320 = Attack Names
                      0x1C7168 = Attack Animation Table
                      0x1D6BBC = Move Effect Table
                      0x3CF594 = Contest Data. This must be repointed along with the rest of the above data (and the new moves given contest data), or else the game will freeze when attempting to display the Contest Moves tab. To repoint it using the same technique described in the tutorial; go to this offset and Select Block = 2840. Copy, and go from there.
                      0x3C09D8 = Attack Description Table. This must also be repointed, or the game will start to overwrite important data (starting with Natures). To repoint it using the same technique described in the tutorial; go to this offset and Select Block = 1416. Copy, and go from there.

                      How to give a new move Contest Data:


                      Every move in Pokemon Ruby has Contest Data. This is an eight-byte data structure that contains the information that determines how the move functions when used in a Contest setting, and is set up like this:

                      00 04 3C 00 00 00 00 00

                      This is Pound's Contest data. The first byte determines what message is displayed in the summary - for example, "A highly appealing move!" This also determines the move's appeal/jam. The second byte is the Contest Type - in this case, Tough. The next byte is a combo identifier, used to identify the first move used in a Contest Combination. In contests, Pound can be used in combination with DoubleSlap, Faint Attack and Slam to rack up additional points. The next three bytes also relate to combos - if the move can be used second in a Contest Combination, the byte for the move(s) it can be combined with would go here, up to three.
                      The last two bytes are padding and should always be set to 00. For more information, refer here and here.

                      Now, go to where you repointed your Contest data table and skip down to the end (where the FF's begin again). If your hack doesn't bother with Contests you can put anything you want here - even 00 00 00 00 00 00 00 00 for each move if you so desired, just to keep the game from freezing. If your hack DOES use contests...I don't see why it wouldn't be possible to be able to use the new moves in combination with an old one in Contests, or to assign it a byte unused by the moves already there to have it lead a new set of Combinations. I don't think this is something anyone has experimented with yet (my hack doesn't use Contests; I use this screen in the summary to display the Physical/Special split instead), so it would require more exploration to see just where the limit is here!

                      Ruby Versions of Moves With New Effects:

                      If you use these in your own hack, please credit the original creators first and myself second. They are the ones who truly did the hard work; all I did was rewrite them to work on Ruby rather than Fire Red.

                      U-TURN/VOLT SWITCH by Itman:
                      Spoiler:

                      00 01 72 6F 1D 08 00 00 02 03 04 05 06 07 09 0A 0E 5C 00 3A 0B 00 0C 00 0D 12 40 00 0F 12 40 00 4F 81 5B 6F 1D 08 50 01 D6 83 1D 08 E2 01 3A 51 01 02 58 01 4C 01 4D 01 73 01 10 03 00 4E 01 01 3A 52 01 28 62 6F 1D 08 28 5B 6F 1D 08


                      HAMMER ARM by Itman:
                      Spoiler:

                      2E 21 4D 02 02 D8 28 14 6F 1D 08


                      I will edit this post with more moves as I continue to work on this. I hope this helps all the other Ruby hackers out there!
                      What Animation was used in U-Turn?
                      __________________

                      Reply With Quote
                        #87    
                      Old April 11th, 2013 (11:12 PM).
                      Perri Lightfoot's Avatar
                      Perri Lightfoot Perri Lightfoot is offline
                      Proud to hack Ruby Version!
                      • Crystal Tier
                       
                      Join Date: Mar 2008
                      Location: Nevada
                      Age: 31
                      Gender: Female
                      Nature: Modest
                      Posts: 176
                      Quote:
                      Originally Posted by robin22gongon View Post
                      What Animation was used in U-Turn?
                      I used Body Slam for now so there would be SOMETHING going on when I went to take screenshots, but I'll probably experiment and see if I can find something that looks better go to with it later.
                      __________________
                      Signature under construction. Watch this space~
                      Reply With Quote
                        #88    
                      Old April 11th, 2013 (11:19 PM). Edited April 12th, 2013 by BlackWhiteRobin.
                      BlackWhiteRobin's Avatar
                      BlackWhiteRobin BlackWhiteRobin is offline
                         
                        Join Date: Sep 2012
                        Age: 19
                        Gender: Male
                        Nature: Quirky
                        Posts: 534
                        Quote:
                        Originally Posted by Pink Parka Girl View Post
                        I used Body Slam for now so there would be SOMETHING going on when I went to take screenshots, but I'll probably experiment and see if I can find something that looks better go to with it later.
                        Okay I was just wondering because I thaught I saw stars

                        BTW guys!!!!

                        Can I overwrite the original move data, name data, etc. with FFs once I repointed those?
                        __________________

                        Reply With Quote
                          #89    
                        Old April 12th, 2013 (10:18 PM).
                        dondon151 dondon151 is offline
                           
                          Join Date: Jan 2012
                          Gender: Male
                          Posts: 33
                          Alright, another question:

                          I was trying to change Surf's double battle effect from its gen 3 range (both opponents) to its gen 4 range (all Pokemon on field). If I just change the relevant field in most generic attack editors, such as MoveEditor or GBAPGE's Attack Editor, what ends up happening is that Surf only ends up hitting one of the opponents.

                          So I took a look at the effect codes for the other moves that hit all Pokemon on the field in gen 3 and tried to figure out what allowed them to hit all Pokemon.

                          Earthquake/Magnitude:
                          Spoiler:
                          00 02 03 C2 25 21 00 80 00 00 00 01 37 7B 1D 08 35 D0 3D 02 02 00 00 02 00 2E D2 3F 02 02 02 28 46 7B 1D 08 38 D0 3D 02 02 00 00 02 00 2E D2 3F 02 02 01 01 7F 7B 1D 08 00 00 04 05 06 07 09 0A 0E 5C 00 3A 0B 00 0C 00 0D 12 40 00 0F 12 40 00 10 30 01 12 01 00 19 00 00 00 00 00 00 2E D8 3F 02 02 00 49 02 10 7A 17 7B 1D 08 3D 39 20 00 06 0E 0F 12 40 00 2E D8 3F 02 02 00 49 02 10 7A 17 7B 1D 08 3D


                          Selfdestruct/Explosion:
                          Spoiler:
                          00 02 03 78 79 3A 29 05 CC 3D 02 02 01 91 6A 1D 08 41 E7 6A 1D 08 28 93 6A 1D 08 09 0A 25 04 05 06 07 01 CC 6A 1D 08 00 00 0E 5C 00 3A 0B 00 0C 00 0D 12 40 00 0F 12 40 00 19 00 00 00 00 00 00 2E D8 3F 02 02 00 49 02 10 7A 93 6A 1D 08 19 01 00 00 00 00 00 3D 0E 0F 12 40 00 2E D8 3F 02 02 00 49 02 10 7A 93 6A 1D 08 19 01 00 00 00 00 00 3D 36 CC 3D 02 02 01 09 0A 33 CC 3D 02 02 01 3C


                          Teeter Dance:
                          Spoiler:
                          00 02 03 2E 6C 3D 02 02 00 25 2E 85 3E 02 02 07 2C 6B 3D 02 02 6C 3D 02 02 01 94 83 1D 08 1E 00 14 B2 83 1D 08 1D 00 00 00 00 01 CE 83 1D 08 1D 00 07 00 00 00 DC 83 1D 08 01 EA 83 1D 08 00 00 1F 00 20 00 C0 83 1D 08 09 0A 16 0F 12 40 00 2E D8 3F 02 02 00 49 02 10 2F 6C 3D 02 02 01 2D 6C 3D 02 02 CC 3B 02 02 01 4E 83 1D 08 3D 39 20 00 10 CA 00 12 40 00 28 94 83 1D 08 39 20 00 10 50 00 12 40 00 28 94 83 1D 08 39 20 00 10 E5 00 12 40 00 28 94 83 1D 08 39 20 00 10 44 00 12 40 00 28 94 83 1D 08 0F 12 40 00 28 94 83 1D 08


                          I observed some similarities between the scripts (especially between Earthquake and Selfdestruct), but I don't know what they correspond to. Can anyone help me out here? I suspect that making the desired effect for Surf just involves copying the Earthquake script and removing the 35 D0 3D 02 02 00 00 02 00 part that corresponds to double damage against opponents underground. Am I correct, or is there something more to that?

                          On another note, I tried making Poison Gas target all Pokemon on the field by just copying Teeter Dance's effect and changing one of the 07's to an 02, and that worked perfectly.

                          Thanks for the response on my Thunder/Hurricane question, Jambo, I'll try that out.
                          Reply With Quote
                            #90    
                          Old April 13th, 2013 (9:18 PM). Edited April 14th, 2013 by dondon151.
                          dondon151 dondon151 is offline
                             
                            Join Date: Jan 2012
                            Gender: Male
                            Posts: 33
                            So I figured out Surf and Poison Gas (targeting all Pokemon on field).

                            Surf:
                            Spoiler:
                            00 02 03 C2 25 21 00 80 00 00 00 01 91 6A 1D 08


                            Poison Gas (note that the actual gen 5 range of Poison Gas is both opponents only, not all Pokemon on field; this is for a WIP of mine):
                            Spoiler:
                            00 02 03 2E 6C 3D 02 02 00 25 2E 85 3E 02 02 02 2C 6B 3D 02 02 6C 3D 02 02 01 94 83 1D 08 1E 00 14 B2 83 1D 08 1D 00 00 00 00 01 CE 83 1D 08 1D 00 07 00 00 00 DC 83 1D 08 01 EA 83 1D 08 00 00 1F 00 20 00 C0 83 1D 08 09 0A 16 0F 12 40 00 2E D8 3F 02 02 00 49 02 10 2F 6C 3D 02 02 01 2D 6C 3D 02 02 CC 3B 02 02 01 4E 83 1D 08 3D 39 20 00 10 CA 00 12 40 00 28 94 83 1D 08 39 20 00 10 50 00 12 40 00 28 94 83 1D 08 39 20 00 10 E5 00 12 40 00 28 94 83 1D 08 39 20 00 10 44 00 12 40 00 28 94 83 1D 08 0F 12 40 00 28 94 83 1D 08

                            EDIT: dammit, this is still causing confusion. I definitely got this to cause burn, freeze, and poison to all other units on the field before. I'm not sure why this isn't working.

                            Now, I tried making Discharge by adding something to the beginning of Surf, but the game would freeze when I tried to use a move with the effect. What would I have to do to add a chance of paralysis (or any status effect)?
                            Reply With Quote
                              #91    
                            Old April 14th, 2013 (1:14 AM).
                            MrDollSteak's Avatar
                            MrDollSteak MrDollSteak is offline
                            Formerly known as 11bayerf1
                               
                              Join Date: Dec 2008
                              Location: Hong Kong
                              Age: 22
                              Gender: Male
                              Posts: 810
                              Quote:
                              Originally Posted by dondon151 View Post
                              So I figured out Surf and Poison Gas (targeting all Pokemon on field).

                              Surf:
                              Spoiler:
                              00 02 03 C2 25 21 00 80 00 00 00 01 91 6A 1D 08


                              Poison Gas (note that the actual gen 5 range of Poison Gas is both opponents only, not all Pokemon on field; this is for a WIP of mine):
                              Spoiler:
                              00 02 03 2E 6C 3D 02 02 00 25 2E 85 3E 02 02 02 2C 6B 3D 02 02 6C 3D 02 02 01 94 83 1D 08 1E 00 14 B2 83 1D 08 1D 00 00 00 00 01 CE 83 1D 08 1D 00 07 00 00 00 DC 83 1D 08 01 EA 83 1D 08 00 00 1F 00 20 00 C0 83 1D 08 09 0A 16 0F 12 40 00 2E D8 3F 02 02 00 49 02 10 2F 6C 3D 02 02 01 2D 6C 3D 02 02 CC 3B 02 02 01 4E 83 1D 08 3D 39 20 00 10 CA 00 12 40 00 28 94 83 1D 08 39 20 00 10 50 00 12 40 00 28 94 83 1D 08 39 20 00 10 E5 00 12 40 00 28 94 83 1D 08 39 20 00 10 44 00 12 40 00 28 94 83 1D 08 0F 12 40 00 28 94 83 1D 08

                              EDIT: dammit, this is still causing confusion. I definitely got this to cause burn, freeze, and poison to all other units on the field before. I'm not sure why this isn't working.

                              Now, I tried making Discharge by adding something to the beginning of Surf, but the game would freeze when I tried to use a move with the effect. What would I have to do to add a chance of paralysis (or any status effect)?
                              So Pokemon Game Editor's move editor isn't working for you? I just set target to all pokemon and it works perfectly.
                              __________________
                              Reply With Quote
                                #92    
                              Old April 14th, 2013 (6:45 AM).
                              Muchasmarcos's Avatar
                              Muchasmarcos Muchasmarcos is offline
                                 
                                Join Date: Mar 2013
                                Location: Croatia
                                Gender: Male
                                Nature: Lax
                                Posts: 11
                                Does this work on emerald too?
                                If it does i'd like to ask for the offsets in emerald.
                                Reply With Quote
                                  #93    
                                Old April 14th, 2013 (9:49 AM). Edited April 14th, 2013 by dondon151.
                                dondon151 dondon151 is offline
                                   
                                  Join Date: Jan 2012
                                  Gender: Male
                                  Posts: 33
                                  Quote:
                                  Originally Posted by 11bayerf1 View Post
                                  So Pokemon Game Editor's move editor isn't working for you? I just set target to all pokemon and it works perfectly.
                                  For which move? I just tried doing this on a clean ROM with Poison Gas and it didn't work. See the video below, where the move highlights all Pokemon on the field but only affects one opponent Pokemon. I also tried Poison Fang and the outcome ends up being the same.



                                  If it's not working, try youtu.be/bt3boebV2SU

                                  EDIT: Okay, I think I fixed Poison Gas. I took a closer look at Teeter Dance's script and then looked at the pointers in the script. Turns out that those pointers point back to Teeter Dance.

                                  Well, I really don't know what any of it means, but I copied over everything involved, repointed all of the pointers, and I guess it seems to work now?
                                  Reply With Quote
                                    #94    
                                  Old April 14th, 2013 (3:29 PM).
                                  MrDollSteak's Avatar
                                  MrDollSteak MrDollSteak is offline
                                  Formerly known as 11bayerf1
                                     
                                    Join Date: Dec 2008
                                    Location: Hong Kong
                                    Age: 22
                                    Gender: Male
                                    Posts: 810
                                    Quote:
                                    Originally Posted by dondon151 View Post
                                    For which move? I just tried doing this on a clean ROM with Poison Gas and it didn't work. See the video below, where the move highlights all Pokemon on the field but only affects one opponent Pokemon. I also tried Poison Fang and the outcome ends up being the same.



                                    If it's not working, try youtu.be/bt3boebV2SU

                                    EDIT: Okay, I think I fixed Poison Gas. I took a closer look at Teeter Dance's script and then looked at the pointers in the script. Turns out that those pointers point back to Teeter Dance.

                                    Well, I really don't know what any of it means, but I copied over everything involved, repointed all of the pointers, and I guess it seems to work now?
                                    If it works then that's fine. My question is why didn't the animation play or any of the text assosciated with it come on? Because chances are the move is hitting everyone it just has a 55% accuracy and is missing the majority of the pokemon. I've set hydro pump as double target and it has successfully done damage to both targets. I put it back, but it has worked for me.
                                    __________________
                                    Reply With Quote
                                      #95    
                                    Old April 14th, 2013 (9:14 PM).
                                    dondon151 dondon151 is offline
                                       
                                      Join Date: Jan 2012
                                      Gender: Male
                                      Posts: 33
                                      Quote:
                                      Originally Posted by 11bayerf1 View Post
                                      If it works then that's fine. My question is why didn't the animation play or any of the text assosciated with it come on?
                                      Animations were off. The text doesn't come up for the other Pokemon because Poison Gas is not doing anything to the other Pokemon. It's ignoring them entirely.

                                      Quote:
                                      Originally Posted by 11bayerf1 View Post
                                      Because chances are the move is hitting everyone it just has a 55% accuracy and is missing the majority of the pokemon. I've set hydro pump as double target and it has successfully done damage to both targets. I put it back, but it has worked for me.
                                      I changed Poison Gas to 100% accuracy for the test.

                                      I don't think I was being entirely clear here, as it seems that you've misunderstood. There are no problems with moves set to target only both opponent Pokemon. As you've said already, you can set Hydro Pump to target both opponents and it'll work just fine. The problem here is when a move is set to target both opponent Pokemon and your partner. In this case, the move will only hit one opponent Pokemon (and I think that it will always hit the same Pokemon).

                                      I can guarantee that if you set Hydro Pump to target both opponent Pokemon and your partner, it will hit only one opponent Pokemon. Try it!
                                      Reply With Quote
                                        #96    
                                      Old April 14th, 2013 (10:40 PM).
                                      MrDollSteak's Avatar
                                      MrDollSteak MrDollSteak is offline
                                      Formerly known as 11bayerf1
                                         
                                        Join Date: Dec 2008
                                        Location: Hong Kong
                                        Age: 22
                                        Gender: Male
                                        Posts: 810
                                        Quote:
                                        Originally Posted by dondon151 View Post
                                        Animations were off. The text doesn't come up for the other Pokemon because Poison Gas is not doing anything to the other Pokemon. It's ignoring them entirely.



                                        I changed Poison Gas to 100% accuracy for the test.

                                        I don't think I was being entirely clear here, as it seems that you've misunderstood. There are no problems with moves set to target only both opponent Pokemon. As you've said already, you can set Hydro Pump to target both opponents and it'll work just fine. The problem here is when a move is set to target both opponent Pokemon and your partner. In this case, the move will only hit one opponent Pokemon (and I think that it will always hit the same Pokemon).

                                        I can guarantee that if you set Hydro Pump to target both opponent Pokemon and your partner, it will hit only one opponent Pokemon. Try it!
                                        Ahhh I see. I misunderstood, I thought you meant double targetting. In that case, it's very useful that you've found that out.
                                        __________________
                                        Reply With Quote
                                          #97    
                                        Old April 15th, 2013 (2:31 AM).
                                        Jambo51's Avatar
                                        Jambo51 Jambo51 is offline
                                        Glory To Arstotzka
                                           
                                          Join Date: Jun 2009
                                          Gender: Male
                                          Nature: Quiet
                                          Posts: 732
                                          I can guarantee you that damaging moves do work as intended with the hit all behaviour. I changed Surf to have that hit behaviour and it works like intended. It's because the behaviour is built into the script used for moves. However, since most status moves (like poison gas) do not use the main script, you will find that the behaviour fails to work correctly.

                                          You can implement it manually using a relatively simple loop for which I don't currently have the code, but believe me, it's simple.

                                          You need to take things like that into account when messing around with moves and their scripts.
                                          __________________
                                          Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
                                          Reply With Quote
                                            #98    
                                          Old April 15th, 2013 (11:01 AM). Edited April 15th, 2013 by dondon151.
                                          dondon151 dondon151 is offline
                                             
                                            Join Date: Jan 2012
                                            Gender: Male
                                            Posts: 33
                                            In response to the above:


                                            h**p://youtu.be/FJOJxvK8xJU if it's not working

                                            Either my eyes are deceiving me, or I'm doing something wrong. Any thoughts on the matter?

                                            In the first clip, I set Horn Attack to target both foes and partner in GBAPGE. The game highlights the appropriate targets, but the outcome is not as intended. In the second clip, I set Horn Attack to target both foes only, and the outcome is as intended.

                                            I've made some innocuous edits to the game using AdvanceMap and A-Trainer, and I repointed the move tables as instructed to by this guide. However, the same thing happens when I thest this on a clean ROM.
                                            Reply With Quote
                                              #99    
                                            Old April 15th, 2013 (9:51 PM). Edited April 15th, 2013 by Jambo51.
                                            Jambo51's Avatar
                                            Jambo51 Jambo51 is offline
                                            Glory To Arstotzka
                                               
                                              Join Date: Jun 2009
                                              Gender: Male
                                              Nature: Quiet
                                              Posts: 732
                                              Perhaps it also has to do with whether or not the original move was defined around hitting more than 1 target. I can assure you that Surf does work with this behaviour.

                                              I couldn't pinpoint why it does so, if it isn't to do with the script, but it does work.

                                              From what I can tell, the game does a controlled mini-loop executed by ASM over part of the main script. So it definitely has something to do with that script, but until we know how that loop is executed, your guess is as good as mine.
                                              __________________
                                              Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
                                              Reply With Quote
                                                #100    
                                              Old April 17th, 2013 (10:45 PM).
                                              dondon151 dondon151 is offline
                                                 
                                                Join Date: Jan 2012
                                                Gender: Male
                                                Posts: 33
                                                Well, finally got around to this:

                                                h**p://youtu.be/unL-smOqkRs

                                                Setting Surf to target both foes and partner doesn't work. Are you sure that it works properly on your ROM?

                                                I observed that Surf crashed the game if its first target caused it to miss (e.g. Dig), so I reworked it, but this time it stops hitting subsequent targets if it hits a target with Water Absorb.

                                                Wow, this is super annoying. It would probably not be as bad if I knew what I was doing...
                                                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 1:08 PM.