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

TrollandToad.com
Reply
 
Thread Tools
  #801    
Old August 13th, 2012 (4:25 PM). Edited August 13th, 2012 by Spacewarrior.
Spacewarrior Spacewarrior is offline
     
    Join Date: Aug 2012
    Gender: Male
    Posts: 2
    Hello, I would like to add this character * in a text message but I don't know how and this is not working if I only put *

    Can you help me with this problem?
    Reply With Quote

    Relevant Advertising!

      #802    
    Old August 18th, 2012 (12:41 AM).
    Gerokunz Gerokunz is offline
    7
       
      Join Date: May 2012
      Location: =/
      Age: 18
      Posts: 286
      Amazing! Diego!
      I can script the movement now!
      Good luck!
      __________________
      =/
      Reply With Quote
        #803    
      Old September 3rd, 2012 (2:41 AM).
      Golden Kirby Golden Kirby is offline
      New hacker
         
        Join Date: Sep 2012
        Location: Britainland
        Age: 21
        Posts: 9
        This was the tutorial i used when i first rom-hacked

        Now i have forgotten it all so i have to start again
        Reply With Quote
          #804    
        Old September 10th, 2012 (10:32 PM).
        Flame999's Avatar
        Flame999 Flame999 is offline
           
          Join Date: Nov 2008
          Location: Lavaridge Town
          Gender: Male
          Nature: Calm
          Posts: 103
          how do you add a Pokemart Script since i did my edit but don't know how to add it?
          Reply With Quote
            #805    
          Old October 2nd, 2012 (3:17 PM).
          dreamengine's Avatar
          dreamengine dreamengine is offline
             
            Join Date: Aug 2012
            Gender: Male
            Posts: 68
            Thanks for the tutorial. Didn't have a chance a chance to script anything yet, but there's a few things I don't get. For example setting flags. I get how to checkflag, but not sure how you set it. Like say I want my rival to come talk to me when I walk on a tile. How do I set a flag so that I can clear it later. If that's not what it's for I apologize, but still need help D:
            Reply With Quote
              #806    
            Old November 3rd, 2012 (12:47 PM).
            Critx's Avatar
            Critx Critx is offline
            Is making Wi-Fi on Rom hacks
               
              Join Date: Sep 2012
              Location: Hiding FairyLand
              Age: 29
              Gender: Male
              Posts: 59
              I have done some, so far but, How can I apply them so that a person can give the pokemon out?
              __________________
              SIgn Up and I'll give free Pokemon :D
              Hacks I Support:



              ~Thanks for Reading Critx~
              Reply With Quote
                #807    
              Old November 13th, 2012 (6:30 PM).
              bluedeedrocks's Avatar
              bluedeedrocks bluedeedrocks is offline
              Professional Coolguy
                 
                Join Date: Jun 2009
                Location: Pennsylvania, United States
                Gender: Male
                Nature: Relaxed
                Posts: 39
                My scripts that I put right outside of doors don't run when I exit the rooms. Is there a reason for this? do they need to be inserted a certain way so that they'll run as soon as I enter the map?
                __________________
                A little linearity never hurt anyone. I feel like I need a little something keeping me in line!



                Reply With Quote
                  #808    
                Old November 23rd, 2012 (6:48 PM).
                AllyJacqui's Avatar
                AllyJacqui AllyJacqui is offline
                The one and only -
                   
                  Join Date: Nov 2012
                  Location: 'Straya (Australia)
                  Age: 19
                  Gender: Female
                  Nature: Timid
                  Posts: 67
                  Wow! :D Considering the fact I first started learning with Pokescript (Back in '09 with Follump, then I used thethethethe's tutorial on a regular basis) This was super helpful. I think i'm finaly ready to make the switch from Pokescript, to XSE. Definitely going to use this tutorial when needed.
                  __________________

                  ~ AllyJacqui, aspiring cosplayer from Sydney Australia ~
                  Reply With Quote
                    #809    
                  Old November 26th, 2012 (11:31 AM).
                  xWhyNotx's Avatar
                  xWhyNotx xWhyNotx is offline
                  Scripting Master
                     
                    Join Date: Jun 2012
                    Location: Kuna Region
                    Gender: Male
                    Nature: Jolly
                    Posts: 78
                    Yes Diego, you are awesome. I wrote this all down and it basically filled my 70 page notebook. That's a good thing. You went over each command so I could understand. I know everything now thanks to you!well, except vars, but I don't think anyone really "understands" them xD
                    __________________
                    This signature has been disabled.
                    If a scroll bar appears that means it\'s too tall!
                    Please review and fix the issues by reading the signature rules.

                    You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

                    Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
                    Reply With Quote
                      #810    
                    Old November 26th, 2012 (12:22 PM).
                    bluedeedrocks's Avatar
                    bluedeedrocks bluedeedrocks is offline
                    Professional Coolguy
                       
                      Join Date: Jun 2009
                      Location: Pennsylvania, United States
                      Gender: Male
                      Nature: Relaxed
                      Posts: 39
                      How can I create a levelscript that will run every time you enter a room until a certain flag is set? Also, is there a way to make a script that will continue running after a trainer battle, or a new script that will run right after the trainer battle?
                      __________________
                      A little linearity never hurt anyone. I feel like I need a little something keeping me in line!



                      Reply With Quote
                        #811    
                      Old January 2nd, 2013 (3:12 PM).
                      LudicoloDude's Avatar
                      LudicoloDude LudicoloDude is offline
                         
                        Join Date: Mar 2012
                        Location: Hoenn
                        Age: 19
                        Gender: Male
                        Nature: Jolly
                        Posts: 34
                        I know this may not be the appropiate place to post this, but I couldnt find any other place so I came here. it is somewhat related. I made a trainer battle script using PET and when I went to load the ROM, I got a white screen. Assuming that the ROM that i'm hacking is corrupt, does anyone else get this problem, or was there possibly a problem with my script?
                        Reply With Quote
                          #812    
                        Old January 2nd, 2013 (3:14 PM).
                        tajaros's Avatar
                        tajaros tajaros is offline
                        Hi I'm dawg
                           
                          Join Date: Apr 2012
                          Location: Philippines
                          Age: 18
                          Gender: Male
                          Nature: Timid
                          Posts: 857
                          Quote:
                          Originally Posted by LudicoloDude View Post
                          I know this may not be the appropiate place to post this, but I couldnt find any other place so I came here. it is somewhat related. I made a trainer battle script using PET and when I went to load the ROM, I got a white screen. Assuming that the ROM that i'm hacking is corrupt, does anyone else get this problem, or was there possibly a problem with my script?
                          Try using A-Trainer it's better than PET. And also we cannot correct your script if you're not gonna show it.
                          __________________
                          Reply With Quote
                            #813    
                          Old January 3rd, 2013 (4:08 PM). Edited January 3rd, 2013 by Captain Fabio.
                          LudicoloDude's Avatar
                          LudicoloDude LudicoloDude is offline
                             
                            Join Date: Mar 2012
                            Location: Hoenn
                            Age: 19
                            Gender: Male
                            Nature: Jolly
                            Posts: 34
                            the script is kinda long.

                            Spoiler:
                            #dynamic 0x800000

                            #org @start
                            setvar 0x5003 0x3
                            goto 0x803D22
                            end

                            #org @script
                            checkflag 0x1003
                            if 0x1 goto @done
                            compare 0x5003 0x0
                            if 0x1 goto @left
                            compare 0x5003 0x1
                            if 0x1 goto @middleleft
                            compare 0x5003 0x2
                            if 0x1 goto @middleright
                            compare 0x5003 0x3
                            if 0x1 goto @right
                            end

                            #org @left
                            showsprite 0x2
                            showsprite 0x1
                            textcolor 0x00
                            msgbox @yellforhelp 0x4
                            closeonkeypress
                            applymovement 0xFF @movesfast1
                            waitmovement 0x0
                            msgbox @TeamRocket 0x4
                            closeonkeypress
                            applymovement 0x1 @!
                            pause 0x30
                            applymovement 0x1 @turnsaround
                            trainerbattle 0x1 0x019 0x0 @before @after @later
                            end

                            #org @middleleft
                            showsprite 0x2
                            showsprite 0x1
                            textcolor 0x00
                            msgbox @yellforhelp 0x4
                            closeonkeypress
                            applymovement 0xFF @movesfast2
                            waitmovement 0x0
                            msgbox @TeamRocket 0x4
                            closeonkeypress
                            applymovement 0x1 @!
                            pause 0x30
                            applymovement 0x1 @turnsaround
                            trainerbattle 0x1 0x019 0x0 @before @after @later
                            end

                            #org @middleright
                            showsprite 0x2
                            showsprite 0x1
                            textcolor 0x00
                            msgbox @yellforhelp 0x4
                            closeonkeypress
                            applymovement 0xFF @movesfast3
                            waitmovement 0x0
                            msgbox @TeamRocket 0x4
                            closeonkeypress
                            applymovement 0x1 @!
                            pause 0x30
                            applymovement 0x1 @turnsaround
                            trainerbattle 0x1 0x019 0x0 @before @after @later
                            end

                            #org @right
                            showsprite 0x2
                            showsprite 0x1
                            textcolor 0x00
                            msgbox @yellforhelp 0x4
                            closeonkeypress
                            applymovement 0xFF @movesfast4
                            waitmovement 0x0
                            msgbox @TeamRocket 0x4
                            closeonkeypress
                            applymovement 0x1 @!
                            pause 0x30
                            applymovement 0x1 @turnsaround
                            trainerbattle 0x1 0x019 0x0 @before @after @later
                            end

                            #org @later
                            textcolor 0x00
                            msgbox @chideshero 0x4
                            closeonkeypress
                            applymovement 0x1 @TRgoesaway
                            waitmovement 0x0
                            hidesprite 0x1
                            msgbox @thankyou 0x4
                            closeonkeypress
                            applymovement 0x2 @Rivalgoesaway
                            waitmovement 0x0
                            hidesprite 0x2
                            release
                            end

                            #org @done
                            release
                            end

                            #org @yellforhelp
                            = SOME ONE HELP ME!
                            #org @teamrocket
                            = Ha, one less trainer with out\ntheir Pokemon means one less\ltrainer sho wont get in the way of\lboss's plans!

                            #org @before
                            = What kind of person do you think\nyou are, some kind of hero?\pHa, just test me, I'll send you\nhome bawling your eyes out.

                            #org @after
                            = WHA-?! HOW!?

                            #org @chideshero
                            = How did this happen?!\pI have been training for this\nmission and I failed!\pGRR... you will pay one day for\nwhat you did to the team, but then\lagain, a few trainers don't\lmatter.\pStay out of our way!

                            #org @thankyou
                            = Wow, thank you so much for saving\nme, he almost took my Pokemon.\pI recieved it as a gift from and\nold friend of mine, I don't know\lwhat I would do with out it.\pHm, didn't that guy say something\nabout a plan earlier?\pIt probably dosn't matter much.\nOnce again thanks for saving me,\lcome by my house later.\pIt's just north from the\nPokecenter in Morbank town.

                            #org @movesfast1
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0xFE

                            #org @movesfast2
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0xFE

                            #org @movesfast3
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0xFE

                            #org @movesfast4
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0x1D
                            #raw 0x1D
                            #raw 0x1F
                            #raw 0x1F
                            #raw 0xFE

                            #org @!
                            #raw 0x62
                            #raw 0xFE

                            #org @turnsaround
                            #raw 0x3
                            #raw 0xFE

                            #org @TRgoesaway
                            #raw 0x1E
                            #raw 0x20
                            #raw 0x20
                            #raw 0x20
                            #raw 0x20
                            #raw 0x20
                            #raw 0x1E
                            #raw 0x1E
                            #raw 0x1E
                            #raw 0x1E
                            #raw 0x1E
                            #raw 0x1E
                            #raw 0xFE

                            #org @Rivalgoesaway
                            #raw 0x1E
                            #raw 0x20
                            #raw 0x20
                            #raw 0x20
                            #raw 0x20
                            #raw 0x20
                            #raw 0x20
                            #raw 0x1E
                            #raw 0x1E
                            #raw 0x1E
                            #raw 0x1E
                            #raw 0x1E
                            #raw 0x1E
                            #raw 0xFE
                            Reply With Quote
                              #814    
                            Old January 3rd, 2013 (4:27 PM).
                            tajaros's Avatar
                            tajaros tajaros is offline
                            Hi I'm dawg
                               
                              Join Date: Apr 2012
                              Location: Philippines
                              Age: 18
                              Gender: Male
                              Nature: Timid
                              Posts: 857
                              Quote:
                              Originally Posted by LudicoloDude View Post
                              the script is kinda long.

                              Spoiler:
                              #dynamic 0x800000

                              #org @start
                              setvar 0x5003 0x3
                              goto 0x803D22
                              end

                              #org @script
                              checkflag 0x1003
                              if 0x1 goto @done
                              compare 0x5003 0x0
                              if 0x1 goto @left
                              compare 0x5003 0x1
                              if 0x1 goto @middleleft
                              compare 0x5003 0x2
                              if 0x1 goto @middleright
                              compare 0x5003 0x3
                              if 0x1 goto @right
                              end

                              #org @left
                              showsprite 0x2
                              showsprite 0x1
                              textcolor 0x00
                              msgbox @yellforhelp 0x4
                              closeonkeypress
                              applymovement 0xFF @movesfast1
                              waitmovement 0x0
                              msgbox @TeamRocket 0x4
                              closeonkeypress
                              applymovement 0x1 @!
                              pause 0x30
                              applymovement 0x1 @turnsaround
                              trainerbattle 0x1 0x019 0x0 @before @after @later
                              end

                              #org @middleleft
                              showsprite 0x2
                              showsprite 0x1
                              textcolor 0x00
                              msgbox @yellforhelp 0x4
                              closeonkeypress
                              applymovement 0xFF @movesfast2
                              waitmovement 0x0
                              msgbox @TeamRocket 0x4
                              closeonkeypress
                              applymovement 0x1 @!
                              pause 0x30
                              applymovement 0x1 @turnsaround
                              trainerbattle 0x1 0x019 0x0 @before @after @later
                              end

                              #org @middleright
                              showsprite 0x2
                              showsprite 0x1
                              textcolor 0x00
                              msgbox @yellforhelp 0x4
                              closeonkeypress
                              applymovement 0xFF @movesfast3
                              waitmovement 0x0
                              msgbox @TeamRocket 0x4
                              closeonkeypress
                              applymovement 0x1 @!
                              pause 0x30
                              applymovement 0x1 @turnsaround
                              trainerbattle 0x1 0x019 0x0 @before @after @later
                              end

                              #org @right
                              showsprite 0x2
                              showsprite 0x1
                              textcolor 0x00
                              msgbox @yellforhelp 0x4
                              closeonkeypress
                              applymovement 0xFF @movesfast4
                              waitmovement 0x0
                              msgbox @TeamRocket 0x4
                              closeonkeypress
                              applymovement 0x1 @!
                              pause 0x30
                              applymovement 0x1 @turnsaround
                              trainerbattle 0x1 0x019 0x0 @before @after @later
                              end

                              #org @later
                              textcolor 0x00
                              msgbox @chideshero 0x4
                              closeonkeypress
                              applymovement 0x1 @TRgoesaway
                              waitmovement 0x0
                              hidesprite 0x1
                              msgbox @thankyou 0x4
                              closeonkeypress
                              applymovement 0x2 @Rivalgoesaway
                              waitmovement 0x0
                              hidesprite 0x2
                              release
                              end

                              #org @done
                              release
                              end

                              #org @yellforhelp
                              = SOME ONE HELP ME!
                              #org @teamrocket
                              = Ha, one less trainer with out\ntheir Pokemon means one less\ltrainer sho wont get in the way of\lboss's plans!

                              #org @before
                              = What kind of person do you think\nyou are, some kind of hero?\pHa, just test me, I'll send you\nhome bawling your eyes out.

                              #org @after
                              = WHA-?! HOW!?

                              #org @chideshero
                              = How did this happen?!\pI have been training for this\nmission and I failed!\pGRR... you will pay one day for\nwhat you did to the team, but then\lagain, a few trainers don't\lmatter.\pStay out of our way!

                              #org @thankyou
                              = Wow, thank you so much for saving\nme, he almost took my Pokemon.\pI recieved it as a gift from and\nold friend of mine, I don't know\lwhat I would do with out it.\pHm, didn't that guy say something\nabout a plan earlier?\pIt probably dosn't matter much.\nOnce again thanks for saving me,\lcome by my house later.\pIt's just north from the\nPokecenter in Morbank town.

                              #org @movesfast1
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0xFE

                              #org @movesfast2
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0xFE

                              #org @movesfast3
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0xFE

                              #org @movesfast4
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0x1D
                              #raw 0x1D
                              #raw 0x1F
                              #raw 0x1F
                              #raw 0xFE

                              #org @!
                              #raw 0x62
                              #raw 0xFE

                              #org @turnsaround
                              #raw 0x3
                              #raw 0xFE

                              #org @TRgoesaway
                              #raw 0x1E
                              #raw 0x20
                              #raw 0x20
                              #raw 0x20
                              #raw 0x20
                              #raw 0x20
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0xFE

                              #org @Rivalgoesaway
                              #raw 0x1E
                              #raw 0x20
                              #raw 0x20
                              #raw 0x20
                              #raw 0x20
                              #raw 0x20
                              #raw 0x20
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0xFE
                              It seems you don't put waitmovement 0x0 after the applymovement command in some of your scripts. Put those after your applymovement scripts instead of a pause command.

                              And what's 803D22? Where is the pointer for that I can't see it in your script. And remove those release commands at the end of your scripts since you didn't put a lock command at first.

                              And instead of 0x019 for your trainer ID you can just put 0x19. And did you try A-trainer now? Also it's not a good idea to use flags greater than 0x900 cause they can make your hack buggy and may be the cause of BAD EGGS appearing in your PC.
                              __________________
                              Reply With Quote
                                #815    
                              Old January 4th, 2013 (2:56 PM).
                              LudicoloDude's Avatar
                              LudicoloDude LudicoloDude is offline
                                 
                                Join Date: Mar 2012
                                Location: Hoenn
                                Age: 19
                                Gender: Male
                                Nature: Jolly
                                Posts: 34
                                I havnt got the chance to try A-trainer yet, but I will soon. also 0x803D22 points to #org @script. You don't happen to have any tips to help me with ROM hacking that will prevent my ROM from corrupting do you? Fortunately I did't get too far into the hack so it's nothing to be dissapointed about. Thank you for the help.
                                Reply With Quote
                                  #816    
                                Old January 4th, 2013 (3:05 PM).
                                tajaros's Avatar
                                tajaros tajaros is offline
                                Hi I'm dawg
                                   
                                  Join Date: Apr 2012
                                  Location: Philippines
                                  Age: 18
                                  Gender: Male
                                  Nature: Timid
                                  Posts: 857
                                  Quote:
                                  Originally Posted by LudicoloDude View Post
                                  I havnt got the chance to try A-trainer yet, but I will soon. also 0x803D22 points to #org @script. You don't happen to have any tips to help me with ROM hacking that will prevent my ROM from corrupting do you? Fortunately I did't get too far into the hack so it's nothing to be dissapointed about. Thank you for the help.
                                  Use A-trainer it's the best.

                                  Here some tips, always keep backups and use the best of tools for your hack.
                                  __________________
                                  Reply With Quote
                                    #817    
                                  Old January 5th, 2013 (2:28 AM).
                                  tronwert's Avatar
                                  tronwert tronwert is offline
                                     
                                    Join Date: Jan 2013
                                    Gender: Male
                                    Posts: 5
                                    Hello im new in this and im wondering if anyone can pass me a working wild battle script please.
                                    ive tried different ways this is one
                                    #org $script
                                    lock
                                    faceplayer
                                    cry 0xA1 97
                                    #raw 0x33
                                    pause 0x30
                                    message $cry
                                    $cry 1 = Mew!
                                    boxset 6
                                    wildbattle 97 80 0
                                    pause 0x70
                                    fadescreen 0
                                    removesprite 0x800F
                                    setflag 0x1111
                                    pause 0x10
                                    fadescreen 1
                                    release
                                    end

                                    thnx
                                    Reply With Quote
                                      #818    
                                    Old January 5th, 2013 (3:40 AM).
                                    Brane's Avatar
                                    Brane Brane is offline
                                    -
                                       
                                      Join Date: May 2011
                                      Age: 24
                                      Gender: Male
                                      Posts: 372
                                      Quote:
                                      Originally Posted by tronwert View Post
                                      Hello im new in this and im wondering if anyone can pass me a working wild battle script please.
                                      ive tried different ways this is one
                                      #org $script
                                      lock
                                      faceplayer
                                      cry 0xA1 97
                                      #raw 0x33
                                      pause 0x30
                                      message $cry
                                      $cry 1 = Mew!
                                      boxset 6
                                      wildbattle 97 80 0
                                      pause 0x70
                                      fadescreen 0
                                      removesprite 0x800F
                                      setflag 0x1111
                                      pause 0x10
                                      fadescreen 1
                                      release
                                      end

                                      thnx
                                      There is a section in the very first post of this thread that provides exactly what you're asking for.
                                      Code:
                                      #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!
                                      You'd just have to put in your own offset and change the cry and wildbattle settings to the Pokemon that you want. It would also help if you told us what doesn't work with the script. I'd recommend going back to the first post and re-reading what it says. also, it looks like you're using Pokescript or something similar? This thread is dedicated to XSE so you would be better off asking in the Script Help Thread.
                                      Reply With Quote
                                        #819    
                                      Old January 5th, 2013 (8:54 PM).
                                      tronwert's Avatar
                                      tronwert tronwert is offline
                                         
                                        Join Date: Jan 2013
                                        Gender: Male
                                        Posts: 5
                                        Brane... the problem is when i try to debug it, a box pops out that says
                                        "error 13 type mismatch on line 8
                                        missing #define or parameter
                                        line:wildbattle 0x97 0x50 0x8B

                                        here's the script:
                                        #dynamic 0x800300

                                        #org @start
                                        lock
                                        faceplayer
                                        msgbox @1 0x6
                                        cry 0x97 0x0
                                        wildbattle 0x97 0x50 0x8B
                                        fadescreen 0x1
                                        fadescreen 0x0
                                        hidesprite 0x800F
                                        setflag 0x1200
                                        release
                                        end

                                        #org @1
                                        = Mew!

                                        I changed the offset, the cry and wildbattle :/
                                        Reply With Quote
                                          #820    
                                        Old January 6th, 2013 (3:01 AM).
                                        Brane's Avatar
                                        Brane Brane is offline
                                        -
                                           
                                          Join Date: May 2011
                                          Age: 24
                                          Gender: Male
                                          Posts: 372
                                          Quote:
                                          Originally Posted by tronwert View Post
                                          Brane... the problem is when i try to debug it, a box pops out that says
                                          "error 13 type mismatch on line 8
                                          missing #define or parameter
                                          line:wildbattle 0x97 0x50 0x8B

                                          here's the script:
                                          #dynamic 0x800300

                                          #org @start
                                          lock
                                          faceplayer
                                          msgbox @1 0x6
                                          cry 0x97 0x0
                                          wildbattle 0x97 0x50 0x8B
                                          fadescreen 0x1
                                          fadescreen 0x0
                                          hidesprite 0x800F
                                          setflag 0x1200
                                          release
                                          end

                                          #org @1
                                          = Mew!

                                          I changed the offset, the cry and wildbattle :/
                                          Have you changed the first two offsets in wildbattle to hex? I may be mistaken but that could be what's causing the script to fail compiling.
                                          Reply With Quote
                                            #821    
                                          Old January 6th, 2013 (10:50 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
                                          Or you can just add 3 0x0 after the 0x8B.
                                          Those 3 0x0 are buffers that game needs for the command to run properly.
                                          __________________
                                          ROM hacking FAQ - Read before asking how to play a hack.

                                          Anime List | PSN Trophy List
                                          Reply With Quote
                                            #822    
                                          Old January 7th, 2013 (12:03 PM).
                                          solnox solnox is offline
                                             
                                            Join Date: Jan 2013
                                            Gender: Male
                                            Posts: 2
                                            Hi I'm new and tried the basic message script but then when i tested it when i talk to the person, the game just freezes?
                                            Reply With Quote
                                              #823    
                                            Old January 9th, 2013 (10:05 PM).
                                            Flame999's Avatar
                                            Flame999 Flame999 is offline
                                               
                                              Join Date: Nov 2008
                                              Location: Lavaridge Town
                                              Gender: Male
                                              Nature: Calm
                                              Posts: 103
                                              Great Tut Diego I just figure out how to edit pokemarts now all i need to do is how to make wild battles like Zapdos and Mewtwo
                                              Reply With Quote
                                                #824    
                                              Old January 13th, 2013 (8:06 PM). Edited January 13th, 2013 by Powerflare.
                                              Powerflare's Avatar
                                              Powerflare Powerflare is offline
                                              • Silver Tier
                                               
                                              Join Date: May 2008
                                              Age: 20
                                              Gender: Male
                                              Nature: Rash
                                              Posts: 112
                                              I'm having a few problems with one of my scripts. First of all, the nicknaming portion of the script does not work (when it goes to nickname the Pokémon ingame, it nicknames "?" and not the appropriate Pokémon - the Magikarp given in this script). My second issue: the flag (0x9006) which prevents the guy from selling the Magikarp twice (instead he just tells you to scram) appears to work; however, when I leave the room/open the start menu etc., it seemingly clears the flag/ignores the checkflag and acts as if you've never talked to the guy before (so you can buy another Magikarp - c'mon, that'd be WAY too overpowered if someone could buy TWO Magikarp ). Any suggestions/thoughts/corrections?

                                              PS: I am aware there is no offset after the #dynamic 0x in the spoiler. I didn't think it mattered which offset it was set to. I compiled the script in a test ROM so the offset used for that would be different than the actual offset I intend to compile this script to.

                                              EDIT: Also, another minor glitch/oddity that came up: right around when the Pokémon is given, the lock on the NPC is seemingly released and he begins moving again.

                                              Spoiler:
                                              Code:
                                              #dynamic 0x
                                              
                                              #org @start
                                              checkflag 0x9006
                                              if 0x1 goto @start2
                                              lock
                                              faceplayer
                                              showmoney 0x0 0x0 0x0
                                              textcolor 0x0
                                              msgbox @msg1 0x5
                                              compare LASTRESULT 0x1
                                              if 0x0 goto @end
                                              checkmoney 0x1F4 0x0
                                              compare LASTRESULT 0x1
                                              if 0x0 goto @notenough
                                              countpokemon
                                              compare LASTRESULT 0x6
                                              if 0x1 goto @fullparty
                                              textcolor 0x0
                                              msgbox @msg4 0x6
                                              paymoney 0x1F4 0x0
                                              updatemoney 0x0 0x0 0x0
                                              givepokemon 0x81 0x5 0x0 0x0 0x0 0x0
                                              fanfare 0x101
                                              textcolor 0x2
                                              msgbox @gotpokemon 0x4
                                              waitfanfare
                                              closeonkeypress
                                              textcolor 0x2
                                              msgbox @liketoname 0x5
                                              compare LASTRESULT 0x1
                                              if 0x1 gosub @name
                                              textcolor 0x0
                                              msgbox @msg5 0x6
                                              setflag 0x9006
                                              hidemoney 0x0 0x0
                                              release
                                              end
                                              
                                              #org @start2
                                              lock
                                              faceplayer
                                              textcolor 0x0
                                              msgbox @msg6 0x6
                                              release
                                              end
                                              
                                              #org @name
                                              countpokemon
                                              subvar 0x800D 0x1
                                              copyvar 0x8004 0x800D
                                              fadescreen 0x1 
                                              special 0x166
                                              waitstate
                                              return
                                              
                                              #org @end
                                              textcolor 0x0
                                              msgbox @msg2 0x6
                                              hidemoney 0x0 0x0
                                              release
                                              end
                                              
                                              #org @notenough
                                              textcolor 0x0
                                              msgbox @msg3 0x6
                                              hidemoney 0x0 0x0
                                              release
                                              end
                                              
                                              #org @fullparty
                                              textcolor 0x2
                                              msgbox @full 0x6
                                              hidemoney 0x0 0x0
                                              release
                                              end
                                              
                                              #org @liketoname
                                              = Would you like to give a\nnickname to MAGIKARP?
                                              
                                              #org @gotpokemon
                                              = [player] paid an outrageous [$]500\nand bought a[.] MAGIKARP?!
                                              
                                              #org @msg1
                                              = MAN: Hey, kid!\pHave I got a deal just for you!\pSee, in the HOENN region,\nthere's this rare POKéMON\lknown as FEEBAS.\pI'll sell one to you for just\n[$]500!\pSo whaddaya say, deal?
                                              
                                              #org @msg2
                                              = MAN: I'm just trying to help\nyou out!
                                              
                                              #org @msg3
                                              = MAN: Hey, you'll need more\nthan THAT!
                                              
                                              #org @msg4
                                              = MAN: Heh-heh, gee thanks kid!
                                              
                                              #org @msg5
                                              = MAN: Now git outta 'ere.\pScram!
                                              
                                              #org @msg6
                                              = MAN: Git outta 'ere.\pScram!
                                              
                                              #org @full
                                              = You're party is full.
                                              Reply With Quote
                                                #825    
                                              Old January 13th, 2013 (8:25 PM). Edited January 13th, 2013 by DrFuji.
                                              DrFuji's Avatar
                                              DrFuji DrFuji is offline
                                              Heiki Hecchara‌‌
                                              • Crystal Tier
                                               
                                              Join Date: Sep 2009
                                              Location: Downia-upside
                                              Age: 24
                                              Gender: Male
                                              Nature: Jolly
                                              Posts: 1,328
                                              Quote:
                                              Originally Posted by Powerflare View Post
                                              I'm having a few problems with one of my scripts. First of all, the nicknaming portion of the script does not work (when it goes to nickname the Pokémon ingame, it nicknames "?" and not the appropriate Pokémon - the Magikarp given in this script). My second issue: the flag (0x9006) which prevents the guy from selling the Magikarp twice (instead he just tells you to scram) appears to work; however, when I leave the room/open the start menu etc., it seemingly clears the flag/ignores the checkflag and acts as if you've never talked to the guy before (so you can buy another Magikarp - c'mon, that'd be WAY too overpowered if someone could buy TWO Magikarp ^_^). Any suggestions/thoughts/corrections?

                                              PS: I am aware there is no offset after the #dynamic 0x in the spoiler. I didn't think it mattered which offset it was set to. I compiled the script in a test ROM so the offset used for that would be different than the actual offset I intend to compile this script to.

                                              EDIT: Also, another minor glitch/oddity that came up: right around when the Pokémon is given, the lock on the NPC is seemingly released and he begins moving again.

                                              Spoiler:
                                              Code:
                                              #dynamic 0x
                                              
                                              #org @start
                                              checkflag 0x9006
                                              if 0x1 goto @start2
                                              lock
                                              faceplayer
                                              showmoney 0x0 0x0 0x0
                                              textcolor 0x0
                                              msgbox @msg1 0x5
                                              compare LASTRESULT 0x1
                                              if 0x0 goto @end
                                              checkmoney 0x1F4 0x0
                                              compare LASTRESULT 0x1
                                              if 0x0 goto @notenough
                                              countpokemon
                                              compare LASTRESULT 0x6
                                              if 0x1 goto @fullparty
                                              textcolor 0x0
                                              msgbox @msg4 0x6
                                              paymoney 0x1F4 0x0
                                              updatemoney 0x0 0x0 0x0
                                              givepokemon 0x81 0x5 0x0 0x0 0x0 0x0
                                              fanfare 0x101
                                              textcolor 0x2
                                              msgbox @gotpokemon 0x4
                                              waitfanfare
                                              closeonkeypress
                                              textcolor 0x2
                                              msgbox @liketoname 0x5
                                              compare LASTRESULT 0x1
                                              if 0x1 gosub @name
                                              textcolor 0x0
                                              msgbox @msg5 0x6
                                              setflag 0x9006
                                              hidemoney 0x0 0x0
                                              release
                                              end
                                              
                                              #org @start2
                                              lock
                                              faceplayer
                                              textcolor 0x0
                                              msgbox @msg6 0x6
                                              release
                                              end
                                              
                                              #org @name
                                              countpokemon
                                              subvar 0x800D 0x1
                                              copyvar 0x8004 0x800D
                                              fadescreen 0x1 
                                              special 0x166
                                              waitstate
                                              return
                                              
                                              #org @end
                                              textcolor 0x0
                                              msgbox @msg2 0x6
                                              hidemoney 0x0 0x0
                                              release
                                              end
                                              
                                              #org @notenough
                                              textcolor 0x0
                                              msgbox @msg3 0x6
                                              hidemoney 0x0 0x0
                                              release
                                              end
                                              
                                              #org @fullparty
                                              textcolor 0x2
                                              msgbox @full 0x6
                                              hidemoney 0x0 0x0
                                              release
                                              end
                                              
                                              #org @liketoname
                                              = Would you like to give a\nnickname to MAGIKARP?
                                              
                                              #org @gotpokemon
                                              = [player] paid an outrageous [$]500\nand bought a[.] MAGIKARP?!
                                              
                                              #org @msg1
                                              = MAN: Hey, kid!\pHave I got a deal just for you!\pSee, in the HOENN region,\nthere's this rare POKéMON\lknown as FEEBAS.\pI'll sell one to you for just\n[$]500!\pSo whaddaya say, deal?
                                              
                                              #org @msg2
                                              = MAN: I'm just trying to help\nyou out!
                                              
                                              #org @msg3
                                              = MAN: Hey, you'll need more\nthan THAT!
                                              
                                              #org @msg4
                                              = MAN: Heh-heh, gee thanks kid!
                                              
                                              #org @msg5
                                              = MAN: Now git outta 'ere.\pScram!
                                              
                                              #org @msg6
                                              = MAN: Git outta 'ere.\pScram!
                                              
                                              #org @full
                                              = You're party is full.
                                              The flag doesn't work because that one is simply way beyond what is should be. You should be using flags in the are of 0x200 rather than 0x9000+.

                                              Edit: Just figured out you were hacking Emerald so some of my stuff was wrong
                                              __________________
                                              Reply With Quote
                                              Reply

                                              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 9:52 PM.