The PokéCommunity Forums Fan Games ROM Hacking
Script Help Thread (DO NOT REQUEST SCRIPTS)

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

Closed Thread
 
Thread Tools
  #3776    
Old May 5th, 2010 (9:07 PM).
TheChroniclesofLance's Avatar
TheChroniclesofLance TheChroniclesofLance is offline
     
    Join Date: Apr 2010
    Gender: Male
    Posts: 114
    Is there an expanded version of Advanced Text out for LeafGreen?
      #3777    
    Old May 5th, 2010 (9:35 PM).
    Binary's Avatar
    Binary Binary is offline
    え?
       
      Join Date: Aug 2007
      Age: 24
      Posts: 3,992
      Quote:
      Originally Posted by shiny quagsire View Post
      Ok, while I was making a medium sized script, I encountered an annoying error. Instead of saying the regulat text, is say: qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF. Why does it do this?
      Post the script. It could be a problem with the script. Or you could open the compiled script with XSE and see if there's anything wrong.
      Quote:
      Originally Posted by TheChroniclesofLance View Post
      Is there an expanded version of Advanced Text out for LeafGreen?
      No?
      __________________
        #3778    
      Old May 6th, 2010 (5:53 AM).
      Shiny Quagsire's Avatar
      Shiny Quagsire Shiny Quagsire is offline
      I'm Still Alive, Elsewhere
         
        Join Date: May 2009
        Location: Hoenn Safari Zone
        Age: 20
        Gender: Male
        Nature: Jolly
        Posts: 700
        Quote:
        Originally Posted by TheChroniclesofLance View Post
        Is there an expanded version of Advanced Text out for LeafGreen?
        One recommendation: Don't use Leaf Green. Not a very good idea. There is no tutorials, no tool support, and everyone will tell you to switch to fire red.

        the qAF qAF script:

        Code:
        '---------------
        #org 0x8028B8
        lockall
        textcolor 0x0
        applymovement 0x4 0x81692B0
        waitmovement 0x0
        clearflag 0x2B
        applymovement MOVE_PLAYER 0x81692B7
        waitmovement 0x0
        clearflag 0x4001
        playsong2 0x0
        fadedefault
        msgbox 0x88028FA MSG_NORMAL '"ALDER: Let me think[.]\pOh, that's..."
        pause 0x1E
        setvar 0x4055 0x2
        releaseall
        end
        
        
        '---------
        ' Strings
        '---------
        #org 0x8028FA
        = ALDER: Let me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!
        
        
        '-----------
        ' Movements
        '-----------
        #org 0x1692B0
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0xFE 'End of Movements
        
        #org 0x1692B7
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0x11 'Step Up (Normal)
        #raw 0xFE 'End of Movements
        __________________



          #3779    
        Old May 6th, 2010 (11:01 AM). Edited May 6th, 2010 by PeregrineFig.
        PeregrineFig's Avatar
        PeregrineFig PeregrineFig is offline
        Starting Pokémon Obsidian
           
          Join Date: Feb 2010
          Location: Michigan, USA
          Age: 24
          Gender: Male
          Nature: Hardy
          Posts: 202
          Quote:
          Originally Posted by shiny quagsire View Post
          One recommendation: Don't use Leaf Green. Not a very good idea. There is no tutorials, no tool support, and everyone will tell you to switch to fire red.

          the qAF qAF script:

          Code:
          '---------------
          #org 0x8028B8
          lockall
          textcolor 0x0
          applymovement 0x4 0x81692B0
          waitmovement 0x0
          clearflag 0x2B
          applymovement MOVE_PLAYER 0x81692B7
          waitmovement 0x0
          clearflag 0x4001
          playsong2 0x0
          fadedefault
          msgbox 0x88028FA MSG_NORMAL '"ALDER: Let me think[.]\pOh, that's..."
          pause 0x1E
          setvar 0x4055 0x2
          releaseall
          end
          
          
          '---------
          ' Strings
          '---------
          #org 0x8028FA
          = ALDER: Let me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!
          
          
          '-----------
          ' Movements
          '-----------
          #org 0x1692B0
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0xFE 'End of Movements
          
          #org 0x1692B7
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0x11 'Step Up (Normal)
          #raw 0xFE 'End of Movements
          If I'm right in guessing that's a level script, it's more than likely a problem with the #raw word. Open the map header in A-Map, hit ctrl+H, copy the map script offset, paste that into XSE, and hit the level script button, then decompile. Change the #raw word 0x(some 4-character value, usually FFFF) to 0, and compile it.

          Quote:
          Originally Posted by TheChroniclesofLance View Post
          Is there an expanded version of Advanced Text out for LeafGreen?
          Either do what they said and use FireRed, or learn hex editing and get a table of characters for Pokemon. You can very easily repoint and edit text in a hex editor. I was really worried when I first discovered I couldn't run A-Text, but soon learned I don't need it anyway.
          __________________
          Current Projects:
          POKéMON AQUA SAPPHIRE
          POKéMON OBSIDIAN

            #3780    
          Old May 6th, 2010 (11:57 AM).
          Petz94's Avatar
          Petz94 Petz94 is offline
             
            Join Date: Apr 2010
            Age: 32
            Gender: Male
            Posts: 32
            I need help with this script, it's suppose to check to make sure the pokemon you pick is a certain pokemon and if you pick the wrong one it stops you and takes you to the back of that string. What happens is that when I'm supposed to pick Venusaur it let's me pick any pokemon without stopping me. Then when I'm suppose to pick Onix and I go to pick another pokemon or when I try to go back (which you aren't suppose to be able to do at that point) it takes me to my @Goback string. This is just a little bit of my script, but everything else in the script works perfect except this part. Please take a look.
            Spoiler:

            #org @Combinevenusaurwithonix
            msgbox @Billshousechoosevenusaur 0x6
            call @Menu
            setvar 0x8004 0x3
            compare 0x8004 0x6
            if 0x4 goto @Goback
            special2 0x8005 0xBA
            comparevars 0x8005 0x8004
            if 0x0 goto @Billshousethatsnotavenusaur
            goto @Billshouseremovevenasaur

            #org @Billshousepickonix
            msgbox @Billshousechooseonix 0x6
            call @Menu
            setvar 0x8004 0x5F
            special2 0x8005 0xBA
            comparevars 0x8005 0x8004
            if 0x0 goto @Billshousethatsnotaonix
            goto @Billshouseremoveonix

            #org @Billshousethatsnotavenusaur
            msgbox @Billshousevenusaur 0x6
            goto @Combinevenusaurwithonix

            #org @Billshousethatsnotaonix
            msgbox @Billshouseonix 0x6
            goto @Billshousepickonix

            #org @Menu
            special 0x9F
            waitstate
            lock
            faceplayer
            copyvar 0x800A 0x8004
            return

            #org @Goback
            msgbox @Billshouseyoudontwanttomixpokemon 0x6
            goto @Billshousereadytocombinepokemon

            #org @Billshouseremovevenasaur
            special 0x176
            cmdc3 0x2F
            goto @Billshousepickonix

            #org @Billshouseremoveonix
            special 0x176
            cmdc3 0x2F
            goto @Billshousegivebcreation2
            __________________
            Hack in Progress: Pokemon - Black Opal(Working Title)

            Hack Tools I Use:
            Advance Map 1.90
            Advance Text
            Advance Mart
            Advance Pokemon Sprite Editor
            Advance Pokemon Icon Editor
            A-Trainer
            Intro Ed
            YAPE
            Overworld Editor
            XSE
            FSF
              #3781    
            Old May 7th, 2010 (5:39 AM).
            Shiny Quagsire's Avatar
            Shiny Quagsire Shiny Quagsire is offline
            I'm Still Alive, Elsewhere
               
              Join Date: May 2009
              Location: Hoenn Safari Zone
              Age: 20
              Gender: Male
              Nature: Jolly
              Posts: 700
              Quote:
              Originally Posted by Petz94 View Post
              I need help with this script, it's suppose to check to make sure the pokemon you pick is a certain pokemon and if you pick the wrong one it stops you and takes you to the back of that string. What happens is that when I'm supposed to pick Venusaur it let's me pick any pokemon without stopping me. Then when I'm suppose to pick Onix and I go to pick another pokemon or when I try to go back (which you aren't suppose to be able to do at that point) it takes me to my @Goback string. This is just a little bit of my script, but everything else in the script works perfect except this part. Please take a look.
              Spoiler:

              #org @Combinevenusaurwithonix
              msgbox @Billshousechoosevenusaur 0x6
              call @Menu
              setvar 0x8004 0x3
              compare 0x8004 0x6
              if 0x4 goto @Goback
              special2 0x8005 0xBA
              comparevars 0x8005 0x8004
              if 0x0 goto @Billshousethatsnotavenusaur
              goto @Billshouseremovevenasaur

              #org @Billshousepickonix
              msgbox @Billshousechooseonix 0x6
              call @Menu
              setvar 0x8004 0x5F
              special2 0x8005 0xBA
              comparevars 0x8005 0x8004
              if 0x0 goto @Billshousethatsnotaonix
              goto @Billshouseremoveonix

              #org @Billshousethatsnotavenusaur
              msgbox @Billshousevenusaur 0x6
              goto @Combinevenusaurwithonix

              #org @Billshousethatsnotaonix
              msgbox @Billshouseonix 0x6
              goto @Billshousepickonix

              #org @Menu
              special 0x9F
              waitstate
              lock
              faceplayer
              copyvar 0x800A 0x8004
              return

              #org @Goback
              msgbox @Billshouseyoudontwanttomixpokemon 0x6
              goto @Billshousereadytocombinepokemon

              #org @Billshouseremovevenasaur
              special 0x176
              cmdc3 0x2F
              goto @Billshousepickonix

              #org @Billshouseremoveonix
              special 0x176
              cmdc3 0x2F
              goto @Billshousegivebcreation2
              I don't know if you meant to do this, but you set variable 8004 to 800A, then when you returned you set 8004 to 0x3. :\
              __________________



                #3782    
              Old May 7th, 2010 (6:04 AM).
              Petz94's Avatar
              Petz94 Petz94 is offline
                 
                Join Date: Apr 2010
                Age: 32
                Gender: Male
                Posts: 32
                Quote:
                Originally Posted by shiny quagsire View Post
                I don't know if you meant to do this, but you set variable 8004 to 800A, then when you returned you set 8004 to 0x3. :\
                Yeah, that's the only way I know to bring up the pick a pokemon menu, and then it should take you back to the beginning which is where it sets variable 8004 to the pokemon again. Unfortunately it doesn't take me back, it says I choose the Venusaur.
                __________________
                Hack in Progress: Pokemon - Black Opal(Working Title)

                Hack Tools I Use:
                Advance Map 1.90
                Advance Text
                Advance Mart
                Advance Pokemon Sprite Editor
                Advance Pokemon Icon Editor
                A-Trainer
                Intro Ed
                YAPE
                Overworld Editor
                XSE
                FSF
                  #3783    
                Old May 7th, 2010 (6:22 AM).
                metapod23's Avatar
                metapod23 metapod23 is offline
                Hardened Trainer
                   
                  Join Date: Mar 2009
                  Gender: Male
                  Nature: Timid
                  Posts: 673
                  Quote:
                  Originally Posted by Petz94 View Post
                  I need help with this script, it's suppose to check to make sure the pokemon you pick is a certain pokemon and if you pick the wrong one it stops you and takes you to the back of that string. What happens is that when I'm supposed to pick Venusaur it let's me pick any pokemon without stopping me. Then when I'm suppose to pick Onix and I go to pick another pokemon or when I try to go back (which you aren't suppose to be able to do at that point) it takes me to my @Goback string. This is just a little bit of my script, but everything else in the script works perfect except this part. Please take a look.
                  Spoiler:

                  #org @Combinevenusaurwithonix
                  msgbox @Billshousechoosevenusaur 0x6
                  call @Menu
                  setvar 0x8004 0x3
                  compare 0x8004 0x6
                  if 0x4 goto @Goback
                  special2 0x8005 0xBA
                  comparevars 0x8005 0x8004
                  if 0x0 goto @Billshousethatsnotavenusaur
                  goto @Billshouseremovevenasaur

                  #org @Billshousepickonix
                  msgbox @Billshousechooseonix 0x6
                  call @Menu
                  setvar 0x8004 0x5F
                  special2 0x8005 0xBA
                  comparevars 0x8005 0x8004
                  if 0x0 goto @Billshousethatsnotaonix
                  goto @Billshouseremoveonix

                  #org @Billshousethatsnotavenusaur
                  msgbox @Billshousevenusaur 0x6
                  goto @Combinevenusaurwithonix

                  #org @Billshousethatsnotaonix
                  msgbox @Billshouseonix 0x6
                  goto @Billshousepickonix

                  #org @Menu
                  special 0x9F
                  waitstate
                  lock
                  faceplayer
                  copyvar 0x800A 0x8004
                  return

                  #org @Goback
                  msgbox @Billshouseyoudontwanttomixpokemon 0x6
                  goto @Billshousereadytocombinepokemon

                  #org @Billshouseremovevenasaur
                  special 0x176
                  cmdc3 0x2F
                  goto @Billshousepickonix

                  #org @Billshouseremoveonix
                  special 0x176
                  cmdc3 0x2F
                  goto @Billshousegivebcreation2
                  Try troubleshooting using this script:

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

                  A suggestion you might try is changing where it goes after comparing variables 8004 and 8005. Try changing it to:

                  Code:
                  if 0x1 goto @Billshouseremoveonix
                  goto @Billshousethatsnotaonix
                  Sometimes that works for me ...
                  __________________
                    #3784    
                  Old May 7th, 2010 (6:59 AM).
                  Petz94's Avatar
                  Petz94 Petz94 is offline
                     
                    Join Date: Apr 2010
                    Age: 32
                    Gender: Male
                    Posts: 32
                    Quote:
                    Originally Posted by metapod23 View Post
                    Try troubleshooting using this script:

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

                    A suggestion you might try is changing where it goes after comparing variables 8004 and 8005. Try changing it to:

                    Code:
                    if 0x1 goto @Billshouseremoveonix
                    goto @Billshousethatsnotaonix
                    Sometimes that works for me ...
                    That's the tut I used to remove Pokemon. Switching those around worked though, so thank you for that. I really appreciate it. One last problem with the script though. When I try to go back it just tells me that that isn't the right pokemon. It should say something like, "You sure you don't want to try this?" and then take me back to deciding if I want to try it.
                    __________________
                    Hack in Progress: Pokemon - Black Opal(Working Title)

                    Hack Tools I Use:
                    Advance Map 1.90
                    Advance Text
                    Advance Mart
                    Advance Pokemon Sprite Editor
                    Advance Pokemon Icon Editor
                    A-Trainer
                    Intro Ed
                    YAPE
                    Overworld Editor
                    XSE
                    FSF
                      #3785    
                    Old May 7th, 2010 (8:12 AM).
                    metapod23's Avatar
                    metapod23 metapod23 is offline
                    Hardened Trainer
                       
                      Join Date: Mar 2009
                      Gender: Male
                      Nature: Timid
                      Posts: 673
                      Quote:
                      Originally Posted by Petz94 View Post
                      That's the tut I used to remove Pokemon. Switching those around worked though, so thank you for that. I really appreciate it. One last problem with the script though. When I try to go back it just tells me that that isn't the right pokemon. It should say something like, "You sure you don't want to try this?" and then take me back to deciding if I want to try it.
                      I'm not sure why it isn't working, it can sometimes be glitchy. I'd look at the fully compiled script first and see if all the offsets are doing what they're supposed to be, though ...

                      (Edit: Oh, and I'm glad someone fount that tut useful - yay! :))
                      __________________
                        #3786    
                      Old May 7th, 2010 (8:48 AM).
                      Petz94's Avatar
                      Petz94 Petz94 is offline
                         
                        Join Date: Apr 2010
                        Age: 32
                        Gender: Male
                        Posts: 32
                        Quote:
                        Originally Posted by metapod23 View Post
                        I'm not sure why it isn't working, it can sometimes be glitchy. I'd look at the fully compiled script first and see if all the offsets are doing what they're supposed to be, though ...

                        (Edit: Oh, and I'm glad someone fount that tut useful - yay! :))
                        Thank you, I'll try that.
                        __________________
                        Hack in Progress: Pokemon - Black Opal(Working Title)

                        Hack Tools I Use:
                        Advance Map 1.90
                        Advance Text
                        Advance Mart
                        Advance Pokemon Sprite Editor
                        Advance Pokemon Icon Editor
                        A-Trainer
                        Intro Ed
                        YAPE
                        Overworld Editor
                        XSE
                        FSF
                          #3787    
                        Old May 8th, 2010 (2:05 AM).
                        manec's Avatar
                        manec manec is offline
                           
                          Join Date: Apr 2009
                          Gender:
                          Nature: Calm
                          Posts: 12
                          GAME: FIRE RED
                          SYSTEM: POKESCRIPT
                          TYPE: VARIOUS

                          This script was supposed to make a guy walk, than he would give you a pokemon, a pokedex and some pokeballs, than he would go away and vanish, your mom would come up to you and give you the running shoes. but the script said random things and nothing happened, this is the SCRIPT:

                          #org $lili
                          checkflag 0x205
                          if_b true goto $hehe
                          applymovement 0xFE $jo
                          pausemove 0x0
                          applymovement 0x00 $jo2
                          pausemove 0x0
                          applymovement 0x01 $jo3
                          pausemove 0x0
                          message $jo4
                          boxset 6
                          givepokemon 133 5 197
                          fanfare 0x13E
                          message $jo5
                          boxset 4
                          waitfanfare
                          #raw 0x68
                          setflag 0x828
                          message $jo6
                          boxset 6
                          setflag 0x829
                          special 0x16F
                          fanfare 0x13E
                          message $jo7
                          boxset 4
                          waitfanfare
                          #raw $0x68
                          message $jo8
                          boxset 6
                          giveitem 4 5
                          message $jo9
                          boxset 6
                          applymovement 0x01 $jo10
                          pausemove 0x0
                          #raw 0x53 0x01 0x00
                          applymovement 0x00 $jo11
                          pausemove 0x0
                          message $jo12
                          boxset 6
                          setflag 0x82F
                          fanfare ox13E
                          message $jo13
                          boxset 4
                          waitfanfare
                          #raw 0x68
                          message $jo14
                          boxset 6
                          applymovement 0x00 $jo15
                          pausemove 0x0
                          setflag 0x205
                          release
                          end

                          #org $hehe
                          release
                          end

                          #org $jo
                          #raw 0x62 0xFE

                          #org $jo2
                          #raw 0x62 0xFE

                          #org $jo3
                          #raw 0x62 0x0D 0x0F 0x0F 0x0D 0x0F 0x0F 0x55 0xFE

                          #org $jo4
                          $jo4 1 =Oh!\nMy boy!\pHAPPY BIRTHDAY!\nThis is a very special day!\pNow that you are ten years old\nYou can finally have your first\pPOKEMON.\pCan you guess who is giving it to\nyou?\pYES! ME!\nTAKE THIS EEVEE!!

                          #org $jo5
                          $jo5 1 = \v\h01 received a EEVEE!

                          #org $jo6
                          $jo6 1 =Now you can depart on your\njourney!\pBut you still need one thing\nYour POKEDEX!\pHere! Take it\nIt was mine...

                          #org $jo7
                          $jo7 1 = \v\h01 received the POKEDEX!

                          #org $jo8
                          $jo8 1 =Just one last birthday present...\pHere take these!\pThey will help you!

                          #org $jo9
                          $jo9 1 =That's it my boy...\nYour grandfather gave you\peverything he had...\pNow I need to go...\nMake sure to visit me on ASTIC CITY!\pBYE!

                          #org $jo10
                          #raw 0x0C 0x0C 0x0C 0x0C 0x0C 0x0E 0x0E 0x0E 0x0E 0x0E 0x0C 0xFE

                          #org $jo11
                          #raw 0x11 0x11 0x11 0x13 0xFE

                          #org $jo12
                          $jo12 1 = Your grandfather was realy generous!\pI'm so proud of you!\pNow it's time for my gift!

                          #org $jo13
                          $jo13 1 = \v\h01 switched into the RUNNING SHOES!

                          #org $jo14
                          $jo14 1 =Now go and make me PROUD!\p...\pAgain...

                          #org $jo15
                          #raw 0x10 0x10 0x10 0x12 0xFE

                          Any IDEAS?
                            #3788    
                          Old May 8th, 2010 (4:42 AM).
                          adhdguitar's Avatar
                          adhdguitar adhdguitar is offline
                          Newbie Pokémon Hacker
                             
                            Join Date: May 2010
                            Gender: Male
                            Nature: Adamant
                            Posts: 210
                            Yo, I'm new at scripting, and while I don't expect anyone to give me a full explanation, I do have one simple question.

                            Where do I start?
                              #3789    
                            Old May 8th, 2010 (5:28 AM).
                            Tropical Sunlight's Avatar
                            Tropical Sunlight Tropical Sunlight is offline
                            The Faltine
                               
                              Join Date: Mar 2008
                              Location: Slovenia
                              Age: 22
                              Gender: Male
                              Posts: 3,577
                              Quote:
                              Originally Posted by adhdguitar View Post
                              Yo, I'm new at scripting, and while I don't expect anyone to give me a full explanation, I do have one simple question.

                              Where do I start?
                              By having an idea of what you would like to script and reading this tutorial.
                              __________________
                                #3790    
                              Old May 8th, 2010 (6:33 AM).
                              PeregrineFig's Avatar
                              PeregrineFig PeregrineFig is offline
                              Starting Pokémon Obsidian
                                 
                                Join Date: Feb 2010
                                Location: Michigan, USA
                                Age: 24
                                Gender: Male
                                Nature: Hardy
                                Posts: 202
                                Quote:
                                Originally Posted by manec View Post
                                GAME: FIRE RED
                                SYSTEM: POKESCRIPT
                                TYPE: VARIOUS

                                This script was supposed to make a guy walk, than he would give you a pokemon, a pokedex and some pokeballs, than he would go away and vanish, your mom would come up to you and give you the running shoes. but the script said random things and nothing happened, this is the SCRIPT:

                                Spoiler:

                                #org $lili
                                checkflag 0x205
                                if_b true goto $hehe
                                applymovement 0xFE $jo
                                pausemove 0x0
                                applymovement 0x00 $jo2
                                pausemove 0x0
                                applymovement 0x01 $jo3
                                pausemove 0x0
                                message $jo4
                                boxset 6
                                givepokemon 133 5 197
                                fanfare 0x13E
                                message $jo5
                                boxset 4
                                waitfanfare
                                #raw 0x68
                                setflag 0x828
                                message $jo6
                                boxset 6
                                setflag 0x829
                                special 0x16F
                                fanfare 0x13E
                                message $jo7
                                boxset 4
                                waitfanfare
                                #raw $0x68
                                message $jo8
                                boxset 6
                                giveitem 4 5
                                message $jo9
                                boxset 6
                                applymovement 0x01 $jo10
                                pausemove 0x0
                                #raw 0x53 0x01 0x00
                                applymovement 0x00 $jo11
                                pausemove 0x0
                                message $jo12
                                boxset 6
                                setflag 0x82F
                                fanfare ox13E
                                message $jo13
                                boxset 4
                                waitfanfare
                                #raw 0x68
                                message $jo14
                                boxset 6
                                applymovement 0x00 $jo15
                                pausemove 0x0
                                setflag 0x205
                                release
                                end

                                #org $hehe
                                release
                                end

                                #org $jo
                                #raw 0x62 0xFE

                                #org $jo2
                                #raw 0x62 0xFE

                                #org $jo3
                                #raw 0x62 0x0D 0x0F 0x0F 0x0D 0x0F 0x0F 0x55 0xFE

                                #org $jo4
                                $jo4 1 =Oh!\nMy boy!\pHAPPY BIRTHDAY!\nThis is a very special day!\pNow that you are ten years old\nYou can finally have your first\pPOKEMON.\pCan you guess who is giving it to\nyou?\pYES! ME!\nTAKE THIS EEVEE!!

                                #org $jo5
                                $jo5 1 = \v\h01 received a EEVEE!

                                #org $jo6
                                $jo6 1 =Now you can depart on your\njourney!\pBut you still need one thing\nYour POKEDEX!\pHere! Take it\nIt was mine...

                                #org $jo7
                                $jo7 1 = \v\h01 received the POKEDEX!

                                #org $jo8
                                $jo8 1 =Just one last birthday present...\pHere take these!\pThey will help you!

                                #org $jo9
                                $jo9 1 =That's it my boy...\nYour grandfather gave you\peverything he had...\pNow I need to go...\nMake sure to visit me on ASTIC CITY!\pBYE!

                                #org $jo10
                                #raw 0x0C 0x0C 0x0C 0x0C 0x0C 0x0E 0x0E 0x0E 0x0E 0x0E 0x0C 0xFE

                                #org $jo11
                                #raw 0x11 0x11 0x11 0x13 0xFE

                                #org $jo12
                                $jo12 1 = Your grandfather was realy generous!\pI'm so proud of you!\pNow it's time for my gift!

                                #org $jo13
                                $jo13 1 = \v\h01 switched into the RUNNING SHOES!

                                #org $jo14
                                $jo14 1 =Now go and make me PROUD!\p...\pAgain...

                                #org $jo15
                                #raw 0x10 0x10 0x10 0x12 0xFE

                                Any IDEAS?
                                If that's a level script, find a tutorial on them, because it's likely a #raw word problem. Also, it looks like you forgot a lock command, but I just kind of skimmed, to be honest.
                                __________________
                                Current Projects:
                                POKéMON AQUA SAPPHIRE
                                POKéMON OBSIDIAN

                                  #3791    
                                Old May 8th, 2010 (8:41 AM).
                                Chocos0's Avatar
                                Chocos0 Chocos0 is offline
                                Eclipse the Umbreon
                                   
                                  Join Date: Apr 2010
                                  Gender: Male
                                  Posts: 68
                                  I know how to script, but getting the script IN the game is kinda confusing.
                                  So, my question is. How do I get the script in the game?
                                  Yes, yes, Pokescript.. But when I "Compile Script" The Buf Rit doesn't appear after it's done whatever it's doing.
                                  I've downloaded Pokescript, and PKMadv. I put the scripts and the hacking tools in separate folders. So, how do I make the Buf Rit window appear after it's done reading the script? "P.S. The script I'm making is giving the pokedex option and the pokemon option"

                                  I'm using Emerald as my rom, and this is my script:

                                  #org $pokedex
                                  lock
                                  faceplayer
                                  message $1
                                  $1 1 = Heres the pokemon and Pokedex option.
                                  boxset 6
                                  fanfare 0x13E
                                  message $got
                                  $got 1 = \v\h01 received the\nPokédex and Pokémon on the menu!
                                  boxset 4
                                  waitfanfare
                                  pause 0x30
                                  setflag 0x828
                                  setflag 0x829
                                  fadescreen 1
                                  removesprite 0x800F
                                  pause 0x30
                                  fadescreen 0
                                  release
                                  end
                                  -------------

                                  Please help me, it would help very much.
                                  __________________


                                  The more things change, the more they stay the same.

                                    #3792    
                                  Old May 8th, 2010 (8:47 AM).
                                  Shiny Quagsire's Avatar
                                  Shiny Quagsire Shiny Quagsire is offline
                                  I'm Still Alive, Elsewhere
                                     
                                    Join Date: May 2009
                                    Location: Hoenn Safari Zone
                                    Age: 20
                                    Gender: Male
                                    Nature: Jolly
                                    Posts: 700
                                    Quote:
                                    Originally Posted by Chocos0 View Post
                                    I know how to script, but getting the script IN the game is kinda confusing.
                                    So, my question is. How do I get the script in the game?
                                    Yes, yes, Pokescript.. But when I "Compile Script" The Buf Rit doesn't appear after it's done whatever it's doing.
                                    I've downloaded Pokescript, and PKMadv. I put the scripts and the hacking tools in separate folders. So, how do I make the Buf Rit window appear after it's done reading the script? "P.S. The script I'm making is giving the pokedex option and the pokemon option"

                                    I'm using Emerald as my rom, and this is my script:

                                    #org $pokedex
                                    lock
                                    faceplayer
                                    message $1
                                    $1 1 = Heres the pokemon and Pokedex option.
                                    boxset 6
                                    fanfare 0x13E
                                    message $got
                                    $got 1 = \v\h01 received the\nPokédex and Pokémon on the menu!
                                    boxset 4
                                    waitfanfare
                                    pause 0x30
                                    setflag 0x828
                                    setflag 0x829
                                    fadescreen 1
                                    removesprite 0x800F
                                    pause 0x30
                                    fadescreen 0
                                    release
                                    end
                                    -------------

                                    Please help me, it would help very much.
                                    First off, I recommend you use XSE. It's much more efficient and less buggy.
                                    Next, You have your $1's in the middle of the script. That's a no no. Here is a fixed script.

                                    Code:
                                    #org $pokedex
                                    lock
                                    faceplayer
                                    message $1
                                    boxset 6
                                    fanfare 0x13E
                                    message $got
                                    boxset 4
                                    waitfanfare
                                    pause 0x30
                                    setflag 0x828
                                    setflag 0x829
                                    fadescreen 1
                                    removesprite 0x800F
                                    pause 0x30
                                    fadescreen 0
                                    release
                                    end
                                    
                                    #org $got
                                    = \v\h01 received the\nPokédex and Pokémon on the menu!
                                    
                                    #org $1
                                    = Heres the pokemon and Pokedex option.
                                    __________________



                                      #3793    
                                    Old May 9th, 2010 (10:57 AM). Edited May 9th, 2010 by Nikolai Fox.
                                    Nikolai Fox's Avatar
                                    Nikolai Fox Nikolai Fox is offline
                                       
                                      Join Date: Mar 2010
                                      Gender: Male
                                      Posts: 202
                                      This next one has me completely stumped...

                                      Spoiler:
                                      #dynamic 0x100000
                                      #org @start
                                      lock
                                      faceplayer
                                      checkflag 0x104
                                      if 0x1 goto @question
                                      msgbox @hello 0x6
                                      setflag 0x104
                                      goto @question

                                      #org @question
                                      checkflag 0x105
                                      if 0x1 goto @welldone
                                      lock
                                      msgbox @fightornot 0x5
                                      if 0x1 goto @yes
                                      if 0x0 goto @no

                                      #org @yes
                                      trainerbattle 0x0 0x004 0x0 @choseyes @after
                                      msgbox @youwon 0x6
                                      givepokemon 0xF 0x8 0x0 0x0 0x0 0x0
                                      setflag 0x105
                                      preparemsg @gotpokemon
                                      waitmsg
                                      fanfare 0x13E
                                      waitfanfare
                                      msgbox @nickname MSG_YESNO
                                      compare LASTRESULT 0x1
                                      if 0x1 goto @nicknameyes
                                      compare LASTRESULT 0x0
                                      if 0x1 goto @nicknameno
                                      release
                                      end

                                      #org @welldone
                                      msgbox @goodbye 0x6
                                      release
                                      end

                                      #org @nicknameyes
                                      call @special
                                      end

                                      #org @nicknameno
                                      release
                                      end

                                      #org @special
                                      fadescreen 0x1
                                      special 0x9E
                                      waitstate
                                      return

                                      #org @no
                                      msgbox @choseno 0x6
                                      release
                                      end

                                      #org @hello
                                      = My name is Samurai.\nI once lived in Viridian Forest,\lgathering information on Beedrill\land catching them.\lNow I have retired here, and am\lwilling to give anyone who beats\lme one of the Beedrill I have\lcaught.

                                      #org @fightornot
                                      = My Beedrill is very tough, and I\ndon't recommend fighting it until\lyou have at least a full team of\lPokémon with you.\pDo you accept my challenge?

                                      #org @choseno
                                      = Come back when you think you are\nready.

                                      #org @choseyes
                                      = Then give me everything you've\ngot!

                                      #org @after
                                      = You beat me, unbelievable.

                                      #org @youwon
                                      = Congratulations, you beat me. You\nare a very tough trainer, and\ldeserving of one of my prized\lBeedrill. Here, take it.

                                      #org @gotpokemon
                                      = Congratulations, you earned a\nBeedrill for beating Samurai.

                                      #org @goodbye
                                      = Congratulations again on beating\nme and my Beequeen.

                                      #org @nickname
                                      = Do you want to give a nickname to\nyour new Beedrill?


                                      When it gets to:
                                      msgbox @fightornot 0x5
                                      if 0x1 goto @yes
                                      if 0x0 goto @no

                                      In-game, if you choose yes it goes to no. So saying both yes and no sends the script to @no, saying "Come back when you are think you are read". I don't understand how choosing yes can send it to no when the script says the complete opposite :/

                                      When I choose yes, I'm supposed to be sent to @yes and start that trainer battle.
                                        #3794    
                                      Old May 9th, 2010 (11:20 AM).
                                      PeregrineFig's Avatar
                                      PeregrineFig PeregrineFig is offline
                                      Starting Pokémon Obsidian
                                         
                                        Join Date: Feb 2010
                                        Location: Michigan, USA
                                        Age: 24
                                        Gender: Male
                                        Nature: Hardy
                                        Posts: 202
                                        Quote:
                                        Originally Posted by Nikolai Fox View Post
                                        This next one has me completely stumped...

                                        Spoiler:
                                        #dynamic 0x100000
                                        #org @start
                                        lock
                                        faceplayer
                                        checkflag 0x104
                                        if 0x1 goto @question
                                        msgbox @hello 0x6
                                        setflag 0x104
                                        goto @question

                                        #org @question
                                        checkflag 0x105
                                        if 0x1 goto @welldone
                                        lock
                                        msgbox @fightornot 0x5
                                        if 0x1 goto @yes
                                        if 0x0 goto @no

                                        #org @yes
                                        trainerbattle 0x0 0x004 0x0 @choseyes @after
                                        msgbox @youwon 0x6
                                        givepokemon 0xF 0x8 0x0 0x0 0x0 0x0
                                        setflag 0x105
                                        preparemsg @gotpokemon
                                        waitmsg
                                        fanfare 0x13E
                                        waitfanfare
                                        msgbox @nickname MSG_YESNO
                                        compare LASTRESULT 0x1
                                        if 0x1 goto @nicknameyes
                                        compare LASTRESULT 0x0
                                        if 0x1 goto @nicknameno
                                        release
                                        end

                                        #org @welldone
                                        msgbox @goodbye 0x6
                                        release
                                        end

                                        #org @nicknameyes
                                        call @special
                                        end

                                        #org @nicknameno
                                        release
                                        end

                                        #org @special
                                        fadescreen 0x1
                                        special 0x9E
                                        waitstate
                                        return

                                        #org @no
                                        msgbox @choseno 0x6
                                        release
                                        end

                                        #org @hello
                                        = My name is Samurai.\nI once lived in Viridian Forest,\lgathering information on Beedrill\land catching them.\lNow I have retired here, and am\lwilling to give anyone who beats\lme one of the Beedrill I have\lcaught.

                                        #org @fightornot
                                        = My Beedrill is very tough, and I\ndon't recommend fighting it until\lyou have at least a full team of\lPokémon with you.\pDo you accept my challenge?

                                        #org @choseno
                                        = Come back when you think you are\nready.

                                        #org @choseyes
                                        = Then give me everything you've\ngot!

                                        #org @after
                                        = You beat me, unbelievable.

                                        #org @youwon
                                        = Congratulations, you beat me. You\nare a very tough trainer, and\ldeserving of one of my prized\lBeedrill. Here, take it.

                                        #org @gotpokemon
                                        = Congratulations, you earned a\nBeedrill for beating Samurai.

                                        #org @goodbye
                                        = Congratulations again on beating\nme and my Beequeen.

                                        #org @nickname
                                        = Do you want to give a nickname to\nyour new Beedrill?


                                        When it gets to:
                                        msgbox @fightornot 0x5
                                        if 0x1 goto @yes
                                        if 0x0 goto @no

                                        In-game, if you choose yes it goes to no. So saying both yes and no sends the script to @no, saying "Come back when you are think you are read". I don't understand how choosing yes can send it to no when the script says the complete opposite :/

                                        When I choose yes, I'm supposed to be sent to @yes and start that trainer battle.
                                        I didn't even need to open the spoiler tag to spot your problem. You need to precede each of those if commands with a "compare 0x800D 0x1".
                                        __________________
                                        Current Projects:
                                        POKéMON AQUA SAPPHIRE
                                        POKéMON OBSIDIAN

                                          #3795    
                                        Old May 9th, 2010 (11:22 AM).
                                        Nikolai Fox's Avatar
                                        Nikolai Fox Nikolai Fox is offline
                                           
                                          Join Date: Mar 2010
                                          Gender: Male
                                          Posts: 202
                                          Edit: Nevermind, just me being stupid. Thanks!
                                            #3796    
                                          Old May 9th, 2010 (11:26 AM).
                                          PeregrineFig's Avatar
                                          PeregrineFig PeregrineFig is offline
                                          Starting Pokémon Obsidian
                                             
                                            Join Date: Feb 2010
                                            Location: Michigan, USA
                                            Age: 24
                                            Gender: Male
                                            Nature: Hardy
                                            Posts: 202
                                            You had:

                                            msgbox @fightornot 0x5
                                            if 0x1 goto @yes
                                            if 0x0 goto @no

                                            Instead, put:

                                            msgbox @fightornot 0x5
                                            compare 0x800D 0x1
                                            if 0x1 goto @yes
                                            compare 0x800D 0x1
                                            if 0x0 goto @no

                                            Naturally, if it doesn't look at any variable it automatically assumes its value is 0, which is why you always got no. 0x800D is the lastresult variable, so with those compare commands it tells the game to check whether or not the player said yes.
                                            __________________
                                            Current Projects:
                                            POKéMON AQUA SAPPHIRE
                                            POKéMON OBSIDIAN

                                              #3797    
                                            Old May 9th, 2010 (11:34 AM).
                                            Nikolai Fox's Avatar
                                            Nikolai Fox Nikolai Fox is offline
                                               
                                              Join Date: Mar 2010
                                              Gender: Male
                                              Posts: 202
                                              Ok, fixed that, now I'm having a problem further down the script.

                                              #org @yes
                                              trainerbattle 0x0 0x004 0x0 @choseyes @after
                                              msgbox @youwon 0x6
                                              givepokemon 0xF 0x8 0x0 0x0 0x0 0x0
                                              setflag 0x105
                                              preparemsg @gotpokemon
                                              waitmsg
                                              fanfare 0x13E
                                              waitfanfare
                                              msgbox @nickname MSG_YESNO
                                              compare LASTRESULT 0x1
                                              if 0x1 goto @nicknameyes
                                              compare LASTRESULT 0x0
                                              if 0x1 goto @nicknameno
                                              release
                                              end

                                              After the battle, the script just ends. What do I need to have it carry on with the script, initiating the give pokemon part?
                                                #3798    
                                              Old May 9th, 2010 (12:16 PM).
                                              Collen Collen is offline
                                              I have returned.
                                                 
                                                Join Date: Jul 2009
                                                Posts: 71
                                                Quote:
                                                Originally Posted by Nikolai Fox View Post
                                                Ok, fixed that, now I'm having a problem further down the script.

                                                #org @yes
                                                trainerbattle 0x0 0x004 0x0 @choseyes @after
                                                msgbox @youwon 0x6
                                                givepokemon 0xF 0x8 0x0 0x0 0x0 0x0
                                                setflag 0x105
                                                preparemsg @gotpokemon
                                                waitmsg
                                                fanfare 0x13E
                                                waitfanfare
                                                msgbox @nickname MSG_YESNO
                                                compare LASTRESULT 0x1
                                                if 0x1 goto @nicknameyes
                                                compare LASTRESULT 0x0
                                                if 0x1 goto @nicknameno
                                                release
                                                end

                                                After the battle, the script just ends. What do I need to have it carry on with the script, initiating the give pokemon part?
                                                Change "trainerbattle 0x0" to "trainerbattle 0x1".
                                                Make sure that the trainer and veiw radius boxes aren't filled in.
                                                __________________

                                                  #3799    
                                                Old May 9th, 2010 (12:30 PM).
                                                Nikolai Fox's Avatar
                                                Nikolai Fox Nikolai Fox is offline
                                                   
                                                  Join Date: Mar 2010
                                                  Gender: Male
                                                  Posts: 202
                                                  It was a script initiated event so I couldn't use 0x1. But 0x3 worked a treat (copied it from the vanilla Rival script on S.S.Anne). But thanks :)
                                                    #3800    
                                                  Old May 10th, 2010 (10:58 AM).
                                                  PeregrineFig's Avatar
                                                  PeregrineFig PeregrineFig is offline
                                                  Starting Pokémon Obsidian
                                                     
                                                    Join Date: Feb 2010
                                                    Location: Michigan, USA
                                                    Age: 24
                                                    Gender: Male
                                                    Nature: Hardy
                                                    Posts: 202
                                                    No, 0x0 is the one you can't use in a script-initiated event. 0x1 would work perfectly in an event run with a script, and should be exactly what you needed. If 0x3 worked too, though, then no harm done, obviously.
                                                    __________________
                                                    Current Projects:
                                                    POKéMON AQUA SAPPHIRE
                                                    POKéMON OBSIDIAN

                                                    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
                                                    Thread Tools

                                                    Posting Rules
                                                    You may not post new threads
                                                    You may not post replies
                                                    You may not post attachments
                                                    You may not edit your posts

                                                    BB code is On
                                                    Smilies are On
                                                    [IMG] code is On
                                                    HTML code is Off

                                                    Forum Jump


                                                    All times are GMT -8. The time now is 10:37 AM.