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

TrollandToad.com
Closed Thread
 
Thread Tools
  #20201    
Old December 29th, 2011 (12:33 AM).
SKRoy SKRoy is offline
Pokémon Hacker
     
    Join Date: Mar 2010
    Gender: Male
    Posts: 66
    Quote:
    Originally Posted by chrunch View Post
    you'll need to use setflag and hidesprite commands to make items that don't come back. here's an example of a script for an item.
    Code:
    #dynamic 0x(your offset)
    
    #org @item
    hidesprite 0x(the person ID of your pokeball)
    setflag 0x(the person ID of your pokeball)
    giveitem 0x(your item) 0x1 MSG_FIND
    release
    end
    That'll make the item disappear after you take it.

    The person ID you can find in the events tab of Advance Map when you select your pokeball, just set it to a number, for example, 0200, and make it the same as your hidesprite and setflag. :D
    Ok I think I understand. And by the #dynamic 0x.... How do I know what the offset is?

    Relevant Advertising!

      #20202    
    Old December 29th, 2011 (12:46 AM).
    Binary's Avatar
    Binary Binary is offline
    え?
       
      Join Date: Aug 2007
      Age: 23
      Posts: 3,993
      Quote:
      Originally Posted by SKRoy View Post
      Ok I think I understand. And by the #dynamic 0x.... How do I know what the offset is?
      Ummm, using Free Space Finder?
      You need an offset to compile your script. I suggest that you take a look at the XSE in-built Guide.
      __________________
        #20203    
      Old December 29th, 2011 (1:24 AM).
      WintersDreaming WintersDreaming is offline
         
        Join Date: Dec 2011
        Gender: Male
        Posts: 28
        Quote:
        Originally Posted by droomph View Post
        PKSV-UI. And if you're really freaking rich and you also need to look at x86 and XBOX360 ASM then you should definitely give IDA Pro a spin.


        You shouldn't need to use the script generator. Work your way around. If you still have problems, check each step of compiling to see if there's no "ohmygoshidontknowwhatthisis" error messages in the "Compile" box. Then check the spelling (which sucks because each function isn't blued out, unlike in C), and then check the #dynamic to see that you're not overwriting anything?

        If all else fails, redownload.



        Use SMCA and then the Truck Remover. Step through the crap and you'll see what the tool changes.

        And yes, I've tried it and it works.

        Oh, you tried it...? Mhm.
        Thanks but I already tried that the tiles just stuff up where the truck door opening animation used to be. Does anyone know a better SMCA kind of program where I can choose my exact position? :)
        __________________
        Sincerely WintersDreaming
          #20204    
        Old December 29th, 2011 (2:50 AM). Edited December 29th, 2011 by SKRoy.
        SKRoy SKRoy is offline
        Pokémon Hacker
           
          Join Date: Mar 2010
          Gender: Male
          Posts: 66
          I have a script, but it won't work. This is the script:

          #dynamic 0x200000
          #org @main
          lock
          faceplayer
          hidesprite 0x200
          setflag 0x200
          msgbox @text
          callstd 0x4
          giveitem 0x1 0x1 0x0 0x0 0x0 0x0
          release
          end

          #org @text
          = This is something you realy need!\l Take it!

          When you talk to the person you must get a master ball. That is the part that works, but after that the person must disappear. But when I got the item he's still standing there and when I talk again I got the item again. Please help me!

          IT IS FOR POKéMON FIRERED!

          Now I have this script:

          #dynamic 0x200000

          #org @item
          hidesprite 0x200
          setflag 0x200
          giveitem 0x1 0x1 0x0
          release
          end

          But it's the same effect.
            #20205    
          Old December 29th, 2011 (7:36 AM). Edited December 29th, 2011 by redriders180.
          redriders180's Avatar
          redriders180 redriders180 is offline
          Mastermind of Pokemon Glazed
             
            Join Date: Jun 2010
            Location: Path of Victory, Tunod
            Gender: Male
            Nature: Quirky
            Posts: 540
            Quote:
            Originally Posted by SKRoy View Post
            I have a script, but it won't work. This is the script:

            #dynamic 0x200000
            #org @main
            lock
            faceplayer
            hidesprite 0x200
            setflag 0x200
            msgbox @text
            callstd 0x4
            giveitem 0x1 0x1 0x0 0x0 0x0 0x0
            release
            end

            #org @text
            = This is something you realy need!\l Take it!

            When you talk to the person you must get a master ball. That is the part that works, but after that the person must disappear. But when I got the item he's still standing there and when I talk again I got the item again. Please help me!

            IT IS FOR POKéMON FIRERED!

            Now I have this script:

            #dynamic 0x200000

            #org @item
            hidesprite 0x200
            setflag 0x200
            giveitem 0x1 0x1 0x0
            release
            end

            But it's the same effect.
            Your problem is that the 'hidesprite' command uses the "person event number", which is never 0x200. You can find the person event number by going into the event tab in A-map, and clicking on the person you want to hide. It'll say it right there. When you permanently hide sprites with the setflag command, it uses the person ID, however. It's easy enough to get the two mixed up

            Edit2: A picture to help:
            Spoiler:


            Edit: Using a dynamic offset of 0x200000 is a very bad idea. You could overwrite very important data without meaning to. The general safe space in Firered is from about 0x800000 and up. To make it simpler, I always start with #dynamic 0x800000 when scripting, instead of dealing with a Free Space Finder.
            __________________


            I think I'm done with ROM hacking. I'll still pop in and visit, though.


              #20206    
            Old December 29th, 2011 (7:58 AM).
            WillPowerPedro's Avatar
            WillPowerPedro WillPowerPedro is offline
            https://soundcloud.com/cammdavidson
               
              Join Date: May 2009
              Age: 17
              Nature: Jolly
              Posts: 265
              I made a map and inserted some tiles and the map looks like this: (NOTE: Pay attention to the upper right corner's flowers.)

              When I play it looks like this!
              __________________
              ~
                #20207    
              Old December 29th, 2011 (8:06 AM).
              redriders180's Avatar
              redriders180 redriders180 is offline
              Mastermind of Pokemon Glazed
                 
                Join Date: Jun 2010
                Location: Path of Victory, Tunod
                Gender: Male
                Nature: Quirky
                Posts: 540
                Quote:
                Originally Posted by WillPowerPedro View Post
                I made a map and inserted some tiles and the map looks like this: (NOTE: Pay attention to the upper right corner's flowers.)

                When I play it looks like this!
                When you edited the tileset and put in those flower tiles, did you put them on top of the rocks you see in the water? If you did, moving those flower tiles from on top of the rocks in the water to another vacant spot should do the trick
                __________________


                I think I'm done with ROM hacking. I'll still pop in and visit, though.


                  #20208    
                Old December 29th, 2011 (10:13 AM).
                Nate VonGrimm's Avatar
                Nate VonGrimm Nate VonGrimm is offline
                   
                  Join Date: Oct 2011
                  Location: Uxbridge
                  Age: 25
                  Gender: Male
                  Nature: Relaxed
                  Posts: 124
                  Quote:
                  Originally Posted by SKRoy View Post
                  Ok I think I understand. And by the #dynamic 0x.... How do I know what the offset is?
                  Always put #dynamic 0x800000.

                  XSE will automatically find any offsets available from 0x800000 and up.

                  It's also the safest to use as any lower could overwrite valuable data without meaning to.
                  __________________
                  Currently working on a new Pokemon Hack with an in-depth story line!
                  That's about as much as you're going to get for now...


                    #20209    
                  Old December 29th, 2011 (10:18 AM). Edited December 29th, 2011 by Itcheeee.
                  Itcheeee's Avatar
                  Itcheeee Itcheeee is offline
                  All Hail Shadow
                     
                    Join Date: Dec 2011
                    Location: Space Colony Ark
                    Gender: Female
                    Posts: 526
                    Quote:
                    Originally Posted by redriders180 View Post
                    I've seen the tag-along system implemented before, but it has many bugs. There's alot to it. For example, if you interact with another person or a signpost, the tagging-along person stops following you. Also, using applymovement and waitmovement cause the gameplay to be very jerky, since you have to stop afterwards and wait for the following character to make its step. Either way, it requires ASM and alot of patience.
                    Thank you for answering my question Being new at hacking, I would love to get that working, but probably should take my first hack slow and easy XD.

                    Quote:
                    Originally Posted by Nate VonGrimm View Post


                    At this time, It is not possible to get it to work efficiently. It is still extremely glitchy and full of bugs. It's still under work now but don't expect it be working any time soon.

                    Also you would also require to do an ASM hack. A lot more complex then scripting.

                    If your new to hacking, you'd want to learn everything there is to know about scripting before moving onto ASM hacking.
                    Thank you for answering my question, as I'm working on my first hack, I don't think I'll attempt the tag-along system right now. But it is something I'd like to do later =p
                      #20210    
                    Old December 29th, 2011 (11:26 PM).
                    Megiddo-san's Avatar
                    Megiddo-san Megiddo-san is offline
                    Barium - Summer '12 Return?
                       
                      Join Date: Dec 2007
                      Location: Where you least expect it
                      Age: 25
                      Gender: Male
                      Nature: Relaxed
                      Posts: 1,329
                      I'm having an issue with trainerbattle 0x9 0x3 //@param1: One of the kinds of battles that allows a script to continue afterward
                      @param2: The reserve number needed to call the Oak style battle.
                      The problem is, when I use this command for a battle in which I have multiple pokemon,
                      whenever I switch out pokemon, the next pokemon and its box are invisible, and if they faint the foe, the xp is given to the first pokemon(unless I open my bag prior to fainting the foe, in which case the pokemon and its box become visible, and the battle continues
                      normally). Is there another reserve number I can use, or another command that I can call; or does an ASM routine need to be modified?
                      __________________

                      Hashire! Asu e tsudzuku shinka no micha wa
                        #20211    
                      Old December 30th, 2011 (12:47 AM).
                      Satoshi Ookami's Avatar
                      Satoshi Ookami Satoshi Ookami is offline
                      Memento Mori
                      • Gold Tier
                       
                      Join Date: Jul 2008
                      Location: Abyss of Time, Great Seal
                      Age: 25
                      Gender: Male
                      Nature: Calm
                      Posts: 14,497
                      Quote:
                      Originally Posted by Nate VonGrimm View Post


                      Always put #dynamic 0x800000.

                      XSE will automatically find any offsets available from 0x800000 and up.

                      It's also the safest to use as any lower could overwrite valuable data without meaning to.
                      It does not need to be 0x800000 It can also start at 0x700000 There's plenty of free space between 0x700000 and 0x800000 that can be used =D
                      __________________
                      ROM hacking FAQ - Read before asking how to play a hack.

                      Anime List | PSN Trophy List
                        #20212    
                      Old December 30th, 2011 (5:35 AM).
                      SKRoy SKRoy is offline
                      Pokémon Hacker
                         
                        Join Date: Mar 2010
                        Gender: Male
                        Posts: 66
                        I want a good scripting tutorial. I only know a little bit about talking script and give item scripts. I want to learn more about scripting. Now my question: What is te best scripting tutorial, maby a few lessons? It's for Pokémon Fire Red.
                          #20213    
                        Old December 30th, 2011 (5:50 AM).
                        WintersDreaming WintersDreaming is offline
                           
                          Join Date: Dec 2011
                          Gender: Male
                          Posts: 28
                          Quote:
                          Originally Posted by SKRoy View Post
                          I want a good scripting tutorial. I only know a little bit about talking script and give item scripts. I want to learn more about scripting. Now my question: What is te best scripting tutorial, maby a few lessons? It's for Pokémon Fire Red.
                          I don't know if this is Firered I forgot but I learnt with diegoisawesome's XSE tutorial :)
                          __________________
                          Sincerely WintersDreaming
                            #20214    
                          Old December 30th, 2011 (5:52 AM).
                          Speedster's Avatar
                          Speedster Speedster is offline
                          The Unknown
                             
                            Join Date: Dec 2011
                            Location: In the depths of space...
                            Gender: Male
                            Nature: Jolly
                            Posts: 134
                            Quote:
                            Originally Posted by SKRoy View Post
                            I want a good scripting tutorial. I only know a little bit about talking script and give item scripts. I want to learn more about scripting. Now my question: What is te best scripting tutorial, maby a few lessons? It's for Pokémon Fire Red.
                            I think the best one out the is diegoisawesome's XSE tutorial. It covers a lot. Next time go to the tutorial section and pick out one on your own in your own opinion so you receive what you want.
                            __________________

                            .:Aegis:.
                            ~coming soon~
                              #20215    
                            Old December 31st, 2011 (2:30 AM).
                            P0kemon Trainer Red's Avatar
                            P0kemon Trainer Red P0kemon Trainer Red is offline
                            Dragon Type User
                               
                              Join Date: Dec 2011
                              Location: Las Vegas, NV, USA
                              Gender: Male
                              Posts: 13
                              I am using XSE and Advance Map. I am terrible at scripting. The only experience I have is screwing with talking scripts. I have a script that would give me a Magikarp. I need to know how to put it into the ROM, and then add it to a person event. I have the person, standing in Pallet Town. I just need to figure out how to add the script to him.
                              __________________
                              My hacks:


                              Hacks I support:






                                #20216    
                              Old December 31st, 2011 (6:34 PM).
                              Rainbow's Avatar
                              Rainbow Rainbow is online now
                              We're going to make some sparks fly!
                              • Moderator
                              • Platinum Tier
                              • GTGet-Together Event Management
                              • PokéCommunity Daily
                              • Discord Moderoid
                              • Developer
                               
                              Join Date: May 2010
                              Location: edge of space
                              Age: 18
                              Gender: Female
                              Nature: Quirky
                              Posts: 5,638
                              Quote:
                              Originally Posted by P0kemon Trainer Red View Post
                              I am using XSE and Advance Map. I am terrible at scripting. The only experience I have is screwing with talking scripts. I have a script that would give me a Magikarp. I need to know how to put it into the ROM, and then add it to a person event. I have the person, standing in Pallet Town. I just need to figure out how to add the script to him.
                              You might want to read a scripting tutorial. Most of them have sections on inserting the script.
                                #20217    
                              Old December 31st, 2011 (9:56 PM).
                              MissDigitalis's Avatar
                              MissDigitalis MissDigitalis is offline
                                 
                                Join Date: Dec 2011
                                Gender: Female
                                Posts: 115
                                How do you make a map totally from scratch?

                                I know how to edit pieces of the maps but I don't know how to link them together the way that I want.
                                __________________

                                  #20218    
                                Old December 31st, 2011 (10:04 PM).
                                redriders180's Avatar
                                redriders180 redriders180 is offline
                                Mastermind of Pokemon Glazed
                                   
                                  Join Date: Jun 2010
                                  Location: Path of Victory, Tunod
                                  Gender: Male
                                  Nature: Quirky
                                  Posts: 540
                                  Quote:
                                  Originally Posted by MissDigitalis View Post
                                  How do you make a map totally from scratch?

                                  I know how to edit pieces of the maps but I don't know how to link them together the way that I want.
                                  To link all the pieces together, you need to make a tilemap, which is basically a file that says which piece goes where. The easiest way to make a Tilemap is to use a program called Nameless Tile Map Editor, or NTME. As for inserting the tilemap into the game, there's a tutorial somewhere I don't know.
                                  __________________


                                  I think I'm done with ROM hacking. I'll still pop in and visit, though.


                                    #20219    
                                  Old December 31st, 2011 (10:13 PM).
                                  MissDigitalis's Avatar
                                  MissDigitalis MissDigitalis is offline
                                     
                                    Join Date: Dec 2011
                                    Gender: Female
                                    Posts: 115
                                    Quote:
                                    Originally Posted by redriders180 View Post
                                    To link all the pieces together, you need to make a tilemap, which is basically a file that says which piece goes where. The easiest way to make a Tilemap is to use a program called Nameless Tile Map Editor, or NTME. As for inserting the tilemap into the game, there's a tutorial somewhere I don't know.
                                    Thank you so much! *hugs*

                                    I really appreciate it.
                                    __________________

                                      #20220    
                                    Old January 1st, 2012 (7:59 AM).
                                    SKRoy SKRoy is offline
                                    Pokémon Hacker
                                       
                                      Join Date: Mar 2010
                                      Gender: Male
                                      Posts: 66
                                      I have a script from a tutorial:

                                      #dynamic 0x800000
                                      #org @start
                                      lock
                                      faceplayer
                                      msgbox @1 0x6
                                      cry 0x6 0x0
                                      wildbattle 0x6 0x1E 0x8B
                                      fadescreen 0x1
                                      fadescreen 0x0
                                      hidesprite 0x800F
                                      setflag 0x200
                                      release
                                      end

                                      #org @1
                                      = CHARIZARD: Raaarrgghh!

                                      It's for Fire Red, but in XSE I got the error that Wildbattle 0x6 0x1E 0x8B is incorrect. Please help!
                                        #20221    
                                      Old January 1st, 2012 (11:15 AM).
                                      redriders180's Avatar
                                      redriders180 redriders180 is offline
                                      Mastermind of Pokemon Glazed
                                         
                                        Join Date: Jun 2010
                                        Location: Path of Victory, Tunod
                                        Gender: Male
                                        Nature: Quirky
                                        Posts: 540
                                        Quote:
                                        Originally Posted by SKRoy View Post
                                        I have a script from a tutorial:

                                        #dynamic 0x800000
                                        #org @start
                                        lock
                                        faceplayer
                                        msgbox @1 0x6
                                        cry 0x6 0x0
                                        wildbattle 0x6 0x1E 0x8B
                                        fadescreen 0x1
                                        fadescreen 0x0
                                        hidesprite 0x800F
                                        setflag 0x200
                                        release
                                        end

                                        #org @1
                                        = CHARIZARD: Raaarrgghh!

                                        It's for Fire Red, but in XSE I got the error that Wildbattle 0x6 0x1E 0x8B is incorrect. Please help!
                                        I just tried to compile your script, and it worked fine for me. If it's still not working, maybe redownload XSE. Also, I edited your script just a touch to make it work better:

                                        #dynamic 0x800000
                                        #org @start
                                        lock
                                        faceplayer
                                        msgbox @1 0x6
                                        cry 0x6 0x0
                                        waitcry
                                        wildbattle 0x6 0x1E 0x8B
                                        fadescreen 0x1
                                        hidesprite 0x800F
                                        fadescreen 0x0
                                        setflag 0x200
                                        release
                                        end

                                        #org @1
                                        = CHARIZARD: Raaarrgghh!
                                        __________________


                                        I think I'm done with ROM hacking. I'll still pop in and visit, though.


                                          #20222    
                                        Old January 1st, 2012 (11:27 AM). Edited January 1st, 2012 by SKRoy.
                                        SKRoy SKRoy is offline
                                        Pokémon Hacker
                                           
                                          Join Date: Mar 2010
                                          Gender: Male
                                          Posts: 66
                                          Quote:
                                          Originally Posted by redriders180 View Post
                                          I just tried to compile your script, and it worked fine for me. If it's still not working, maybe redownload XSE. Also, I edited your script just a touch to make it work better:

                                          #dynamic 0x800000
                                          #org @start
                                          lock
                                          faceplayer
                                          msgbox @1 0x6
                                          cry 0x6 0x0
                                          waitcry
                                          wildbattle 0x6 0x1E 0x8B
                                          fadescreen 0x1
                                          hidesprite 0x800F
                                          fadescreen 0x0
                                          setflag 0x200
                                          release
                                          end

                                          #org @1
                                          = CHARIZARD: Raaarrgghh!
                                          I still got this message
                                            #20223    
                                          Old January 1st, 2012 (2:46 PM).
                                          destinedjagold's Avatar
                                          destinedjagold destinedjagold is online now
                                          Oh Hai Thar~
                                          • Silver Tier
                                           
                                          Join Date: May 2007
                                          Location: Philippines
                                          Age: 26
                                          Gender: Male
                                          Nature: Careful
                                          Posts: 8,550
                                          Quote:
                                          Originally Posted by SKRoy View Post
                                          I still got this message
                                          then you probably need to update your XSE.
                                          __________________


                                          FC: 0061-1111-6462
                                          TSV: 1364(X), 0790(OR)

                                            #20224    
                                          Old January 1st, 2012 (10:58 PM).
                                          redriders180's Avatar
                                          redriders180 redriders180 is offline
                                          Mastermind of Pokemon Glazed
                                             
                                            Join Date: Jun 2010
                                            Location: Path of Victory, Tunod
                                            Gender: Male
                                            Nature: Quirky
                                            Posts: 540
                                            I guess it's time for me to ask a question:

                                            I read somewhere that when you use the "setwildbattle", all the data of the Pokemon you set is written somewhere in the RAM or whatever, and can be changed, to make sure its a certain gender, or giving it different moves, and the like. I wanna know: does anyone knows where this data is stored, and how it's stored? I have to make some highly specific encounters, and this'd make the job alot easier.
                                            __________________


                                            I think I'm done with ROM hacking. I'll still pop in and visit, though.


                                              #20225    
                                            Old January 1st, 2012 (11:23 PM).
                                            Satoshi Ookami's Avatar
                                            Satoshi Ookami Satoshi Ookami is offline
                                            Memento Mori
                                            • Gold Tier
                                             
                                            Join Date: Jul 2008
                                            Location: Abyss of Time, Great Seal
                                            Age: 25
                                            Gender: Male
                                            Nature: Calm
                                            Posts: 14,497
                                            Quote:
                                            Originally Posted by SKRoy View Post
                                            I still got this message
                                            Try to add buffers (0x0) to wildbattle.
                                            Like this... wildbattle 0x6 0x1E 0x8B 0x0 0x0 0x0 (maybe less or more 0x0s)...
                                            __________________
                                            ROM hacking FAQ - Read before asking how to play a hack.

                                            Anime List | PSN Trophy List
                                            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 3:10 PM.