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

TrollandToad.com
Closed Thread
 
Thread Tools
  #26    
Old July 24th, 2008 (5:34 AM).
Shadows's Avatar
Shadows Shadows is offline
     
    Join Date: Jul 2008
    Location: Chicago, IL
    Age: 22
    Nature: Calm
    Posts: 857
    This is a big help!
    Thanks!
    __________________

    Relevant Advertising!

      #27    
    Old July 25th, 2008 (5:05 AM).
    Hephaestus Hephaestus is offline
       
      Join Date: Jul 2008
      Gender:
      Posts: 5
      Quote:
      Originally Posted by Amonitas View Post
      When I take a step, all the flags reset... I mean that the sprite goes visible again, but otherwise good, I try to make a give pokemon script and see if it works.
      You have to put this map script with advance map in the map where the pokemon is

      05 On map entering/On menu closing

      #dynamic 0x8000000

      #org @aftercatch
      checkflag 0x8C1
      if 0x1 call @hidesprite
      end

      #org @hidesprite
      special2 LASTRESULT 0xB7
      compare LASTRESULT 0x7
      if 0x5 goto @return
      hidesprite 0x1
      return

      #org @return
      return


      It work on Emerald
        #28    
      Old July 25th, 2008 (1:32 PM).
      GTAPlayer's Avatar
      GTAPlayer GTAPlayer is offline
      Six Star Evasion
         
        Join Date: Jul 2008
        Location: Escobar International
        Gender:
        Nature: Adamant
        Posts: 28
        Hello, I'm just want to add some one-off events to a pokemon FR rom.
        Raikou doesn't disappear when I capture it:
        #org 0x71A308
        lock
        faceplayer
        startwildbattle 0xF3 0x32 0x0
        checksound
        cry 0xF3 0x2
        pause 0x28
        waitcry
        setflag 0x305
        setflag 0x861
        special 0x138
        waitstate
        clearflag 0x861
        release
        end
        I'm probably missing something obvious, but I'm still learning the basics.
          #29    
        Old July 26th, 2008 (4:18 AM).
        Hephaestus Hephaestus is offline
           
          Join Date: Jul 2008
          Gender:
          Posts: 5
          Quote:
          Originally Posted by GTAPlayer View Post
          Hello, I'm just want to add some one-off events to a pokemon FR rom.
          Raikou doesn't disappear when I capture it:
          #org 0x71A308
          lock
          faceplayer
          startwildbattle 0xF3 0x32 0x0
          checksound
          cry 0xF3 0x2
          pause 0x28
          waitcry
          setflag 0x305
          setflag 0x861
          special 0x138
          waitstate
          clearflag 0x861
          release
          end
          I'm probably missing something obvious, but I'm still learning the basics.
          Have you put the flag in the sprite of raikou with advance map?
            #30    
          Old July 26th, 2008 (11:33 AM). Edited July 26th, 2008 by GTAPlayer.
          GTAPlayer's Avatar
          GTAPlayer GTAPlayer is offline
          Six Star Evasion
             
            Join Date: Jul 2008
            Location: Escobar International
            Gender:
            Nature: Adamant
            Posts: 28
            How do I put the flag for Raikou to disappear then?
              #31    
            Old July 27th, 2008 (5:14 AM).
            DudeWasten DudeWasten is offline
               
              Join Date: Jul 2008
              Gender:
              Posts: 1
              I understand the Tutorial , but , i'm starting a Hack called Dusk Pearl and i want to import the Script and this don't works! Anybody know how to fix?
                #32    
              Old July 27th, 2008 (12:38 PM). Edited July 27th, 2008 by PsydORg.
              PsydORg PsydORg is offline
              N00B Spriter
                 
                Join Date: Jul 2008
                Location: How should i know?
                Age: 22
                Gender:
                Posts: 9
                Hi, i was just messing around with the text, and when i wanted to save it, an error occurs on something i haven´t even touched. (It´s where oak are giving the five pokeballs)

                The error: type 13 "Mismatch" Missing #define or parameter on line 165.

                And the script on line 165 is what it was in the beginning:
                giveitem2 0x4 0x5 0x101


                Just tell me if you need more off the script

                Oh and if it´s necessary to know it´s in Fire Red

                Btw great tut
                  #33    
                Old July 27th, 2008 (7:43 PM).
                Norri Norri is offline
                   
                  Join Date: Jul 2008
                  Posts: 6
                  With the give pokemon command...

                  1. it gives me the pokemon over and over again.
                  2. when i put in Dratinis Code it gave me crawdaunt

                  How would I go about fixing that..
                    #34    
                  Old July 27th, 2008 (8:23 PM).
                  Tyrantrum's Avatar
                  Tyrantrum Tyrantrum is offline
                  ʕ´•ᴥ•`ʔ
                  • Crystal Tier
                   
                  Join Date: Oct 2007
                  Location: New Jersey
                  Age: 23
                  Gender: Male
                  Nature: Lonely
                  Posts: 5,820
                  @Norri: The check and set flags for give pokemon r 828. Also, if u look at the pokemon list on the first post, u'll see he stopped at the pokemon hex codes at Raticate. For now...
                  __________________




                  (x) Tumblr
                  (y) Twitter
                  Previously Eeveon
                    #35    
                  Old July 27th, 2008 (9:08 PM).
                  Norri Norri is offline
                     
                    Join Date: Jul 2008
                    Posts: 6
                    Quote:
                    Originally Posted by Eeveon View Post
                    @Norri: The check and set flags for give pokemon r 828. Also, if u look at the pokemon list on the first post, u'll see he stopped at the pokemon hex codes at Raticate. For now...

                    Yea i found dratinis Hex Number...But I still cant do anythign about him giving me a million dratinis.
                      #36    
                    Old July 27th, 2008 (9:21 PM).
                    Tyrantrum's Avatar
                    Tyrantrum Tyrantrum is offline
                    ʕ´•ᴥ•`ʔ
                    • Crystal Tier
                     
                    Join Date: Oct 2007
                    Location: New Jersey
                    Age: 23
                    Gender: Male
                    Nature: Lonely
                    Posts: 5,820
                    U have to make a checkflag and setflag 828, so it gives u the dratini, gives u the pokemon section, and also keeps the script from giving u another one. Hust make sure to give the script, another script the person to say after he gives u the pokemon. But in the same script.
                    __________________




                    (x) Tumblr
                    (y) Twitter
                    Previously Eeveon
                      #37    
                    Old July 29th, 2008 (5:27 AM). Edited July 29th, 2008 by PsydORg.
                    PsydORg PsydORg is offline
                    N00B Spriter
                       
                      Join Date: Jul 2008
                      Location: How should i know?
                      Age: 22
                      Gender:
                      Posts: 9
                      Edit: Never mind, but i got another problem. What´s wrong with this script?
                      Btw, the text is in danish:

                      '-----------------------
                      #org 0x71A2FC
                      lock
                      faceplayer
                      checkflag 0x828
                      if 0x0 goto @yes
                      if 0x1 goto @no
                      release
                      end
                      #org @yes
                      givepokemon 0x5 0x241 0x0 0x0 0x0 0x0
                      fanfare 0x13E
                      waitfanfare
                      setflag 0x828
                      msgbox @yay
                      boxset 0x6
                      release
                      end
                      #org @no
                      msgbox @comeback
                      boxset 0x6
                      end
                      #org @text
                      = Hey! Jeg arbejder paa en\ngaard\pMen vi har for mange koer\pVil du have en?
                      #org @yay
                      = Okay! Vaer så god!
                      #org @comeback
                      = Okay, men du kan altid\nkomme tilbage hvis du\nskifter mening.
                        #38    
                      Old July 29th, 2008 (3:57 PM).
                      Rogs9i5's Avatar
                      Rogs9i5 Rogs9i5 is offline
                      Breeder Extraordinaire
                         
                        Join Date: May 2008
                        Location: Cupertino, California
                        Gender: Male
                        Nature: Jolly
                        Posts: 13
                        When I make a give pokemon script, when I talk to the person who should give me the pokemon, nothing happens. Can somebody help me?
                          #39    
                        Old July 29th, 2008 (4:49 PM).
                        aggrononer612 aggrononer612 is offline
                           
                          Join Date: Jul 2008
                          Gender:
                          Posts: 13
                          thanks u helped me alot man
                            #40    
                          Old July 30th, 2008 (8:10 AM).
                          PsydORg PsydORg is offline
                          N00B Spriter
                             
                            Join Date: Jul 2008
                            Location: How should i know?
                            Age: 22
                            Gender:
                            Posts: 9
                            Fixed the above problem, but now i got a new one. It´s in the same script. Every time i get near the sprite which contains this script, the game resets, can someone tell me why? It may be someting obvious, but here you go:

                            '-----------------------
                            #org 0x71A438
                            lock
                            faceplayer
                            checkflag 0x828
                            msgbox 0x871A34D
                            callstd 0x5
                            compare LASTRESULT 0x1
                            if 0x1 goto 0x871A2FC
                            compare LASTRESULT 0x0
                            if 0x1 goto 0x871A342
                            release
                            end
                            '-----------------------
                            #org 0x71A2FC
                            givepokemon 0x5 0xF1 0x0 0x0 0x0 0x0
                            fanfare 0x13E
                            waitfanfare
                            message 0x871A39A
                            callstd 0x6
                            setflag 0x828
                            release
                            end
                            '-----------------------
                            #org 0x71A342
                            message 0x871A3AF
                            callstd 0x6
                            release
                            end

                            '---------
                            ' Strings



                            This is how it looks when compiled:

                            #org 0x71A438
                            lock
                            faceplayer
                            checkflag 0x1128
                            nop
                            writebytetooffset 0x0 0x90871A3
                            nop1
                            compare LASTRESULT 0xA438
                            multichoice3 0x8 0xFC 0xA2 0x71 0x8
                            compare LASTRESULT 0x0
                            if 0x1 goto 0x871A342
                            release
                            end
                            '-----------------------
                            #org 0x71A342
                            msgbox 0x871A3AF '"Okay.\nMen jeg er her\nHvis du skif..."
                            callstd 0x6
                            release
                            end

                            '---------
                            ' Strings
                            '---------
                            #org 0x71A3AF
                            = Okay.\nMen jeg er her\nHvis du skifter mening.


                            Some of the lines gets erased when compiled, and new ones are added on.
                              #41    
                            Old August 7th, 2008 (2:32 AM).
                            Jack-s-b Jack-s-b is offline
                               
                              Join Date: Jul 2008
                              Gender:
                              Posts: 21
                              Probab;y a simple mistake, i made a yes no script for mistys sister, asking her if shes leaving, it works, but when u click yes or no. the message doesnt change, the yes no box dissapears, but the message stays on the screen and doesnt change to the answer
                              i did ur script exactly, Help please
                                #42    
                              Old August 7th, 2008 (8:03 PM). Edited August 7th, 2008 by Iken.
                              Iken's Avatar
                              Iken Iken is offline
                              The OTHER other white meat.
                                 
                                Join Date: Aug 2008
                                Location: O'er Yonder.
                                Age: 26
                                Gender:
                                Nature: Calm
                                Posts: 17
                                Ok, i keep reading scripting tutorials, but i'm still a bit confused.

                                i have advanced map and XSE, but i don't know how to apply scripts to a sprite.

                                like say i wanted a specific person to walk up to me and tell me something like "don't go out there"

                                how would i do that?

                                i'm also not sure how to save XSE scripts on my rom..


                                Sorry i'm new to this.
                                  #43    
                                Old August 7th, 2008 (8:26 PM).
                                KhaosKnight's Avatar
                                KhaosKnight KhaosKnight is offline
                                The 1 and only Khaotic Hacker
                                   
                                  Join Date: Dec 2007
                                  Nature: Relaxed
                                  Posts: 355
                                  Quote:
                                  Originally Posted by Iken View Post
                                  Ok, i keep reading scripting tutorials, but i'm still a bit confused.

                                  i have advanced map and XSE, but i don't know how to apply scripts to a sprite.

                                  like say i wanted a specific person to walk up to me and tell me something like "don't go out there"

                                  how would i do that?

                                  i'm also not sure how to save XSE scripts on my rom..


                                  Sorry i'm new to this.
                                  this should tell you how to put scripts in the ROM

                                  http://www.pokecommunity.com/showthread.php?t=128125

                                  and this should tell you about movement scripts

                                  http://www.pokecommunity.com/showthread.php?t=128887
                                  __________________





                                    #44    
                                  Old August 7th, 2008 (9:45 PM).
                                  Iken's Avatar
                                  Iken Iken is offline
                                  The OTHER other white meat.
                                     
                                    Join Date: Aug 2008
                                    Location: O'er Yonder.
                                    Age: 26
                                    Gender:
                                    Nature: Calm
                                    Posts: 17
                                    i'm starting to get this down.

                                    Does anyone know how to change where you start?

                                    i'm practicing on Ruby version and i'd like to start elsewhere than the truck, and not have to talk to my mom and so on.

                                    Please and thankyou
                                      #45    
                                    Old August 7th, 2008 (10:43 PM).
                                    pokemon_hacking's Avatar
                                    pokemon_hacking pokemon_hacking is offline
                                    blah_maker
                                       
                                      Join Date: Jul 2008
                                      Gender: Male
                                      Nature: Lonely
                                      Posts: 24
                                      hey seth when r u going to make anymore tutorials and also awesome tutorial by the way
                                      __________________
                                      making hacks by yourself is but oh well
                                        #46    
                                      Old August 8th, 2008 (12:57 PM).
                                      timson733333's Avatar
                                      timson733333 timson733333 is offline
                                      Woah.
                                         
                                        Join Date: Mar 2007
                                        Location: Stealth!
                                        Gender: Male
                                        Nature: Quiet
                                        Posts: 130
                                        I need some help.

                                        I tried scripting so some random guy would give me Celebi, and after giving me the Celebi, he would say "Dude, stop cheating and catch some yourself." I talked to him (for the first time), and he did the latter! Can somebody help me?

                                        #Dynamic 0x800000

                                        #org @start
                                        lock
                                        faceplayer
                                        checkflag 0x828
                                        if 0x0 goto @give
                                        if 0x1 goto @sry
                                        release
                                        end

                                        #org @give
                                        givepokemon 0x251 0x50 0x0 0x0 0x0 0x0
                                        fanfare 0x13E
                                        waitfanfare
                                        setflag 0x828
                                        msgbox @yay
                                        boxset 0x6
                                        release
                                        end

                                        #org @sry
                                        msgbox @sorry
                                        boxset 0x6
                                        end

                                        #org @yay
                                        = Whoa! This weird guy gave you a CELEBI!

                                        #org @sorry
                                        = Dude, stop cheating and catch some \nyourself.
                                          #47    
                                        Old August 8th, 2008 (9:03 PM).
                                        Iken's Avatar
                                        Iken Iken is offline
                                        The OTHER other white meat.
                                           
                                          Join Date: Aug 2008
                                          Location: O'er Yonder.
                                          Age: 26
                                          Gender:
                                          Nature: Calm
                                          Posts: 17
                                          Bleh.

                                          Ok, so now i have a very basic grasp on scripting.

                                          i can make people say things, give me things, move a bit,
                                          and i can make cutable trees (/rocks/boulders/etc.)

                                          But i'm still a bit shady... like How do i make a script such as
                                          when you get the running shoes.

                                          you don't get it the first couple times you run through, and then suddenly
                                          your moms waiting for you.

                                          and then she's back inside and never waiting outside again.

                                          i don't understand how you would script something like this..
                                            #48    
                                          Old August 9th, 2008 (6:48 AM).
                                          Garth Garth is offline
                                             
                                            Join Date: Aug 2008
                                            Gender:
                                            Posts: 13
                                            I'm slightly confused on flags.

                                            Can you use them to check if you've reached/ obtained something? Like after getting your 8th badge someone will say something different or move etc.


                                            -Garth
                                              #49    
                                            Old August 14th, 2008 (5:44 AM). Edited August 30th, 2008 by Necoris.
                                            Necoris's Avatar
                                            Necoris Necoris is offline
                                            Pokemon Researcher
                                               
                                              Join Date: Aug 2008
                                              Age: 28
                                              Gender:
                                              Nature: Calm
                                              Posts: 1
                                              When you put checkflag 0x828 it checks if you have your Pokemon menu open. And you have it so that it will skip to the last message if you have your Pokemon menu or otherwise flag 0x828 opened already. Easy form, that script will only work if you don't have your Pokemon menu which you get at the beginning when you obtain your first Pokemon..
                                              __________________

                                              Click here to feed me a Rare Candy!
                                              Get your own at Pokeplushies!


                                                #50    
                                              Old August 15th, 2008 (3:22 AM).
                                              Jack-s-b Jack-s-b is offline
                                                 
                                                Join Date: Jul 2008
                                                Gender:
                                                Posts: 21
                                                Trying to make a give pokemon script, but i used the hex number for staryu, and it gave me a zigzagoon, so i tryed goldeen, i got torchic, obviously the numbers havnt been done,

                                                does anyone have the actual pokemon numbers in hex
                                                thanks
                                                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 4:43 AM.