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
  #3851    
Old May 19th, 2010 (11:39 AM).
Nikolai Fox's Avatar
Nikolai Fox Nikolai Fox is offline
     
    Join Date: Mar 2010
    Gender: Male
    Posts: 202
    Quote:
    Originally Posted by PeregrineFig View Post
    I make them walk onto a spot surrounded by unwalkable tiles so they can't be collided with.
    but hide sprite + set flag will remove them from anywhere, no need for workarounds :)

    Relevant Advertising!

      #3852    
    Old May 19th, 2010 (12:07 PM).
    NarutoActor's Avatar
    NarutoActor NarutoActor is offline
    The rocks cry out to me
     
    Join Date: Jan 2009
    Location: Brooklyn/Marlboro
    Age: 24
    Gender: Female
    Nature: Bashful
    Posts: 1,979
    Quote:
    Originally Posted by Jacusiek View Post
    I save this code, as .asm:
    Spoiler:
    b507 push {r0-r2, lr}
    4804 ldr r0, 0x0203f408 ;Growth block data storage address
    6800 ldr r0, [r0]
    4904 ldr r1, 0x020370C2 ;var 0x8005 used for storing the exp value
    8809 ldrh r1, [r1]
    2280 mov r2, 0x80
    0912 lsl r2, 0x8
    418a cmp r1,r2 ; checks if exp is between "safe" values
    db02 blt add_exp
    bd07 pop {r0-r2, pc}
    6842 add_exp: ldr r2, [r0+0x4]
    ------ sub r2, r2, r1 ; subrtacts the experience
    6042 str r2, [r0+0x4]
    bd07 pop {r0-r2, pc}

    Then I try to compile ASM but it is error (I named this file "lesson1.asm"):
    hxxp://img39.yfrog.com/img39/9517/nowyobrazmapabitowaq.png
    xx = tt (hxxp - http)
    -_- save it has exp.asm then in the comand prompt put
    Thum exp.asm exp.bin

    also the code should be like this
    .thumb
    .align2
    Start:
    push {r0-r2, lr}
    ldr r0, 0x0203f408
    ldr r0, [r0]
    ldr r1, 0x020370C2
    ldrh r1, [r1]
    mov r2, 0x80
    lsl r2, 0x8
    cmp r1,r2
    blt add_exp
    pop {r0-r2, pc}
    add_exp:
    ldr r2, [r0+0x4]
    sub r2, r2, r1
    str r2, [r0+0x4]
    pop {r0-r2, pc}

    EDIT: Damb Pc won't allow tabs.
    one tabs with push and pop
    two tabs for other comands
    __________________
    ~There are those people who understand hex, F the rest
      #3853    
    Old May 19th, 2010 (12:27 PM).
    majorawsome's Avatar
    majorawsome majorawsome is offline
       
      Join Date: Apr 2010
      Gender: Male
      Nature: Timid
      Posts: 3
      Game: ruby
      im trying to make the yes/no question only be asked onced and once the yes/no question is done i want it to go to @done but it just starts the question over
      Please help!
      Editor: XSE
      Script: person event
      Spoiler:
      #Dynamic 0x8002C9

      #ORG @Start
      lock
      faceplayer
      checkflag 0x200
      if 0x1 goto @done
      msgbox @waffles 0x5
      if 0x1 goto @yes1
      if 0x0 goto @no1
      msgbox @Done 0x6
      setflag 0x200
      release
      end

      #org @waffles
      = Hello. im here to talk\nabout\nmuffins and waffles with\lyou would you like to continue the\lconversation or quit because you\lare a gay hag?

      #org @yes1
      = well then.\pwhen you eat your waffles in the\nmourning don't forget to eat your\lmuffin. some muffins squirt in\lyour mouth while eating them so\ldont be surprised. in this case it\lwill quench your thirst from the\lwaffles and the muffins if you\ldidnt drink anything. if your\lwaffles are filled with milk then\lyour'e a lucky duck!

      #org @no1
      = well then have a nice day! but I\nhave to tell you something first!

      #org @Done
      = I'm afraid of dolphins!
      __________________

      how does the skittle company know what a rainbow tastes like
        #3854    
      Old May 19th, 2010 (12:30 PM).
      NarutoActor's Avatar
      NarutoActor NarutoActor is offline
      The rocks cry out to me
       
      Join Date: Jan 2009
      Location: Brooklyn/Marlboro
      Age: 24
      Gender: Female
      Nature: Bashful
      Posts: 1,979
      You need to add
      compare LASTRESULT 0x1 ' if yes
      if 0x1 goto @yes 'if true goto yes
      compare LASTRESULT 0x0 'if no
      if 0x1 goto @no if true
      __________________
      ~There are those people who understand hex, F the rest
        #3855    
      Old May 19th, 2010 (1:13 PM).
      FireFox's Avatar
      FireFox FireFox is offline
      Dialga Fangirl
         
        Join Date: Aug 2004
        Location: UK
        Age: 31
        Gender: Female
        Nature: Timid
        Posts: 58
        @Nikolai Fox
        Thanks for that.

        I have another...
        Is there a way to stop a trainer from sending out his/her strongest pokemon next? As in, only send out pokemon in the order they have them (like R/G/B/Y)?
        __________________
        Some signature, or something!
          #3856    
        Old May 19th, 2010 (4:35 PM).
        Ven's Avatar
        Ven Ven is offline
        Tyrian
           
          Join Date: Aug 2009
          Gender: Male
          Posts: 126
          Spoiler:
          #dynamic 0x71B6BC

          #org @start
          lock
          hidepokepic
          preparemsg @msg
          waitmsg
          multichoice 0x0 0x0 0x39 0x0
          copyvar 0x8000 0x800D
          compare 0x8000 0x0
          if 0x1 goto @option1
          compare 0x8000 0x1
          if 0x1 goto @option2
          compare 0x8000 0x2
          if 0x1 goto @option3
          compare 0x8000 0x7F
          if 0x1 goto @canceled
          end

          #org @option1
          showpokepic 0x118 0x02 0x02
          msgbox @torchic 0x5
          if 0x1 goto @yes
          goto @start
          end

          #org @option2
          showpokepic 0x115 0x02 0x02
          msgbox @treecko 0x5
          if 0x1 goto @yes1
          goto @start
          end

          #org @option3
          showpokepic 0x11B 0x02 0x02
          msgbox @mudkip 0x5
          if 0x1 goto @yes2
          goto @start
          end

          #org @canceled
          release
          end

          #org @yes
          givepokemon 0x118 0x5 0x0 0x0 0x0 0x0
          setflag 0x828
          goto @battle
          end

          #org @yes1
          givepokemon 0x115 0x5 0x0 0x0 0x0 0x0
          setflag 0x828
          goto @battle
          end

          #org @yes2
          givepokemon 0x11B 0x5 0x0 0x0 0x0 0x0
          setflag 0x828
          goto @battle
          end

          #org @battle
          cry 0x6 0x0
          wildbattle 0x6 0x2 0x0
          setflag 0x102
          clearflag 0x105
          fadescreen 0x1
          fadescreen 0x0
          hidesprite 0x800F
          showsprite 0x09
          release
          end

          #org @msg
          = Prof. Birch is in trouble!\nRelease a Pokemon and rescue him!

          #org @torchic
          = Do you want [red_fr]TORCHIC,\n[black_fr]the [red_fr]Chick [black_fr]Pokemon?

          #org @treecko
          = = Do you want [green_fr]TREECKO,\n[black_fr]the [green_fr]Wood Gecko [black_fr]Pokemon?

          #org @mudkip
          = = Do you want [blue_fr]MUDKIP,\n[black_fr]the [blue_fr]Mud Fish [black_fr]Pokemon?

          The problem here is that if the player says no, he will still be sent to the pointer that he would have been sent to if he had said yes.
          __________________
          ---
            #3857    
          Old May 20th, 2010 (1:43 AM).
          Nikolai Fox's Avatar
          Nikolai Fox Nikolai Fox is offline
             
            Join Date: Mar 2010
            Gender: Male
            Posts: 202
            Quote:
            Originally Posted by FireFox View Post
            @Nikolai Fox
            Thanks for that.

            I have another...
            Is there a way to stop a trainer from sending out his/her strongest pokemon next? As in, only send out pokemon in the order they have them (like R/G/B/Y)?
            Open up the trainer in a-trainer and make the AI value 0 (in pokémon data, make sure all pokémon have 0 AI data. This will make them use no strategy and just send them out one after the other)
              #3858    
            Old May 20th, 2010 (2:16 AM).
            Zeffy's Avatar
            Zeffy Zeffy is offline
            blink and you're dead
             
            Join Date: Apr 2009
            Gender: Male
            Posts: 6,396
            Quote:
            Originally Posted by Ven View Post
            Spoiler:
            #dynamic 0x71B6BC

            #org @start
            lock
            hidepokepic
            preparemsg @msg
            waitmsg
            multichoice 0x0 0x0 0x39 0x0
            copyvar 0x8000 0x800D
            compare 0x8000 0x0
            if 0x1 goto @option1
            compare 0x8000 0x1
            if 0x1 goto @option2
            compare 0x8000 0x2
            if 0x1 goto @option3
            compare 0x8000 0x7F
            if 0x1 goto @canceled
            end

            #org @option1
            showpokepic 0x118 0x02 0x02
            msgbox @torchic 0x5
            if 0x1 goto @yes
            goto @start
            end

            #org @option2
            showpokepic 0x115 0x02 0x02
            msgbox @treecko 0x5
            if 0x1 goto @yes1
            goto @start
            end

            #org @option3
            showpokepic 0x11B 0x02 0x02
            msgbox @mudkip 0x5
            if 0x1 goto @yes2
            goto @start
            end

            #org @canceled
            release
            end

            #org @yes
            givepokemon 0x118 0x5 0x0 0x0 0x0 0x0
            setflag 0x828
            goto @battle
            end

            #org @yes1
            givepokemon 0x115 0x5 0x0 0x0 0x0 0x0
            setflag 0x828
            goto @battle
            end

            #org @yes2
            givepokemon 0x11B 0x5 0x0 0x0 0x0 0x0
            setflag 0x828
            goto @battle
            end

            #org @battle
            cry 0x6 0x0
            wildbattle 0x6 0x2 0x0
            setflag 0x102
            clearflag 0x105
            fadescreen 0x1
            fadescreen 0x0
            hidesprite 0x800F
            showsprite 0x09
            release
            end

            #org @msg
            = Prof. Birch is in trouble!\nRelease a Pokemon and rescue him!

            #org @torchic
            = Do you want [red_fr]TORCHIC,\n[black_fr]the [red_fr]Chick [black_fr]Pokemon?

            #org @treecko
            = = Do you want [green_fr]TREECKO,\n[black_fr]the [green_fr]Wood Gecko [black_fr]Pokemon?

            #org @mudkip
            = = Do you want [blue_fr]MUDKIP,\n[black_fr]the [blue_fr]Mud Fish [black_fr]Pokemon?

            The problem here is that if the player says no, he will still be sent to the pointer that he would have been sent to if he had said yes.
            Put "compare LASTRESULT 0x1" every after 0x5 msgbox like so:

            msgbox @torchic 0x5
            compare LASTRESULT 0x1
            if 0x1 goto @yes

            I don't know why, but that's how it works. :\
            __________________
              #3859    
            Old May 20th, 2010 (2:41 AM).
            krillian's Avatar
            krillian krillian is offline
               
              Join Date: Apr 2010
              Gender: Male
              Posts: 42
              GAME Pokemon Emerald
              script editor XSE

              Does anyone know how to make a pokemon appear in the first slot of your party
              and does anyone know how to force the player to releae the frist pokemon in your party
                #3860    
              Old May 20th, 2010 (4:27 AM). Edited May 20th, 2010 by Jacusiek.
              Jacusiek's Avatar
              Jacusiek Jacusiek is offline
                 
                Join Date: Apr 2009
                Location: Poland
                Age: 23
                Gender: Male
                Nature: Quiet
                Posts: 18
                Quote:
                Originally Posted by NarutoActor View Post
                -_- save it has exp.asm then in the comand prompt put
                Thum exp.asm exp.bin

                also the code should be like this
                .thumb
                .align2
                Start:
                push {r0-r2, lr}
                ldr r0, 0x0203f408
                ldr r0, [r0]
                ldr r1, 0x020370C2
                ldrh r1, [r1]
                mov r2, 0x80
                lsl r2, 0x8
                cmp r1,r2
                blt add_exp
                pop {r0-r2, pc}
                add_exp:
                ldr r2, [r0+0x4]
                sub r2, r2, r1
                str r2, [r0+0x4]
                pop {r0-r2, pc}

                EDIT: Damb Pc won't allow tabs.
                one tabs with push and pop
                two tabs for other comands
                This code you gave is wrong too ;/, i put it into asm file:
                Spoiler:
                push {r0-r2, lr}
                ldr r0, 0x0203f408
                ldr r0, [r0]
                ldr r1, 0x020370C2
                ldrh r1, [r1]
                mov r2, 0x80
                lsl r2, 0x8
                cmp r1,r2
                blt add_exp
                pop {r0-r2, pc}
                add_exp:
                ldr r2, [r0+0x4]
                sub r2, r2, r1
                str r2, [r0+0x4]
                pop {r0-r2, pc}

                Here's the error:
                hxxp://img46.imageshack.us/i/nowyobrazmapabitowamj.png/
                (xx = tt)
                I don't understand it ; (
                  #3861    
                Old May 20th, 2010 (5:22 AM).
                Zeffy's Avatar
                Zeffy Zeffy is offline
                blink and you're dead
                 
                Join Date: Apr 2009
                Gender: Male
                Posts: 6,396
                Quote:
                Originally Posted by Jacusiek View Post
                This code you gave is wrong too ;/, i put it into asm file:
                Spoiler:
                push {r0-r2, lr}
                ldr r0, 0x0203f408
                ldr r0, [r0]
                ldr r1, 0x020370C2
                ldrh r1, [r1]
                mov r2, 0x80
                lsl r2, 0x8
                cmp r1,r2
                blt add_exp
                pop {r0-r2, pc}
                add_exp:
                ldr r2, [r0+0x4]
                sub r2, r2, r1
                str r2, [r0+0x4]
                pop {r0-r2, pc}

                Here's the error:
                hxxp://img46.imageshack.us/i/nowyobrazmapabitowamj.png/
                (xx = tt)
                I don't understand it ; (
                Attached is a txt file with the correct code. Download it then rename it to "exp.asm" then compile it.
                Attached Files
                File Type: txt exp.txt‎ (282 Bytes, 6 views) (Save to Dropbox)
                __________________
                  #3862    
                Old May 20th, 2010 (5:32 AM).
                Jacusiek's Avatar
                Jacusiek Jacusiek is offline
                   
                  Join Date: Apr 2009
                  Location: Poland
                  Age: 23
                  Gender: Male
                  Nature: Quiet
                  Posts: 18
                  Ehh, it is error again:
                  hxxp://img191.imageshack.us/i/kopiap1020126.png/
                    #3863    
                  Old May 20th, 2010 (5:41 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 krillian View Post
                    GAME Pokemon Emerald
                    script editor XSE

                    Does anyone know how to make a pokemon appear in the first slot of your party
                    and does anyone know how to force the player to releae the frist pokemon in your party
                    1.)Givepokemon is your friend.
                    2.)Look at this thread
                    __________________



                      #3864    
                    Old May 20th, 2010 (11:10 AM).
                    FireFox's Avatar
                    FireFox FireFox is offline
                    Dialga Fangirl
                       
                      Join Date: Aug 2004
                      Location: UK
                      Age: 31
                      Gender: Female
                      Nature: Timid
                      Posts: 58
                      Quote:
                      Originally Posted by Nikolai Fox View Post
                      Open up the trainer in a-trainer and make the AI value 0 (in pokémon data, make sure all pokémon have 0 AI data. This will make them use no strategy and just send them out one after the other)
                      Great! Thank you very much! :)
                      __________________
                      Some signature, or something!
                        #3865    
                      Old May 20th, 2010 (12:27 PM).
                      PEPITO1O1O's Avatar
                      PEPITO1O1O PEPITO1O1O is offline
                      ~Saïx~
                         
                        Join Date: Sep 2009
                        Location: Johto
                        Age: 23
                        Gender: Male
                        Nature: Calm
                        Posts: 333
                        This has to do with scripting in a way so I'm guessing it goes here and if it doesn't don't hate cuz everone makes mistakes.
                        OK the question that keeps me from scripting.
                        When you have a script tile placed what do you put in for the:
                        Unkown
                        Var Number
                        Var Value
                        Unkown (that has two boxes)
                        and do they change for each map or something? Please go in detail because this is what has scared me of scripting.
                        Yes I have looked for this infromation but I never found it.
                        Thank you in advanced :)
                        ~PEPITO1O1O
                        __________________
                        Yusuke Urameshi


                        Spirit Detective
                          #3866    
                        Old May 20th, 2010 (1:05 PM).
                        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 PEPITO1O1O View Post
                          This has to do with scripting in a way so I'm guessing it goes here and if it doesn't don't hate cuz everone makes mistakes.
                          OK the question that keeps me from scripting.
                          When you have a script tile placed what do you put in for the:
                          Unkown
                          Var Number
                          Var Value
                          Unkown (that has two boxes)
                          and do they change for each map or something? Please go in detail because this is what has scared me of scripting.
                          Yes I have looked for this infromation but I never found it.
                          Thank you in advanced :)
                          ~PEPITO1O1O
                          Unknown is kinda explanatory. It's unknown. Var number is a variable that can be set so it only happens once. (Ex. Professor Oak stops you from going into grass.)
                          Var Value is the current value of the variable. 1 if it already happened; 0 if not.
                          __________________



                            #3867    
                          Old May 20th, 2010 (1:09 PM).
                          PEPITO1O1O's Avatar
                          PEPITO1O1O PEPITO1O1O is offline
                          ~Saïx~
                             
                            Join Date: Sep 2009
                            Location: Johto
                            Age: 23
                            Gender: Male
                            Nature: Calm
                            Posts: 333
                            And how do you figure out the var numbers? Because I have noticed that in different maps the var numbers are different.
                            __________________
                            Yusuke Urameshi


                            Spirit Detective
                              #3868    
                            Old May 20th, 2010 (2:05 PM).
                            PeregrineFig's Avatar
                            PeregrineFig PeregrineFig is offline
                            Starting Pokémon Obsidian
                               
                              Join Date: Feb 2010
                              Location: Michigan, USA
                              Age: 23
                              Gender: Male
                              Nature: Hardy
                              Posts: 202
                              Quote:
                              Originally Posted by PEPITO1O1O View Post
                              And how do you figure out the var numbers? Because I have noticed that in different maps the var numbers are different.
                              You can use any variable you want, just set it to a value other than the value on the header tab in a script.
                              __________________
                              Current Projects:
                              POKéMON AQUA SAPPHIRE
                              POKéMON OBSIDIAN

                                #3869    
                              Old May 20th, 2010 (2:11 PM).
                              PEPITO1O1O's Avatar
                              PEPITO1O1O PEPITO1O1O is offline
                              ~Saïx~
                                 
                                Join Date: Sep 2009
                                Location: Johto
                                Age: 23
                                Gender: Male
                                Nature: Calm
                                Posts: 333
                                So much information that is helpful. Thank you. But ver quickly would the car number need to be in the script somewhere?
                                __________________
                                Yusuke Urameshi


                                Spirit Detective
                                  #3870    
                                Old May 20th, 2010 (3:51 PM).
                                vietazn654's Avatar
                                vietazn654 vietazn654 is offline
                                A sound soul dwells within me
                                   
                                  Join Date: Feb 2010
                                  Location: Virginia
                                  Age: 23
                                  Gender: Male
                                  Nature: Adamant
                                  Posts: 372
                                  Hi. New at scripting, and i TRIED to combine a givepokemon/applymovement script...
                                  Game: Fire Red
                                  Editor: XSE
                                  Script:
                                  Spoiler:
                                  #dynamic 0x26D3B8

                                  #org @start
                                  checkflag 0x828
                                  if 0x1 goto @done
                                  msgbox @1 0x6
                                  applymovement 0x2 @move
                                  waitmovement 0x0
                                  msgbox @2 0x6
                                  release
                                  end

                                  #org @done
                                  release
                                  end

                                  #org @move
                                  #raw 0x11
                                  #raw 0x12
                                  #raw 0x01

                                  #org @1
                                  = Huh? Oh hello, \v\h01!

                                  #org @2
                                  = Since PROF. BIRCH doesn't have\ntime to give you a POKEMON, I got\la MUDKIP that I think you'll like!\pHere, \v\h01!
                                  givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
                                  fanfare 0x13E
                                  msgbox @4 0x4
                                  waitfanfare
                                  closeonkeypress
                                  setflag 0x1200
                                  msgbox @5 0x6
                                  compare LASTRESULT 0x1
                                  if 0x1 gosub @name
                                  msgbox @6 0x6
                                  release
                                  end

                                  #org @name
                                  call 0x1A74EB
                                  return

                                  #org @4
                                  = [black_fr]\v\h01 recieved a MUDKIP!

                                  #org @5
                                  = [black_fr]Would you like to give a nickname\nto MUDKIP?

                                  #org @6
                                  = Good luck on your adventure,\n\v\h01!


                                  It freezes once the man i give the script to at Hi, [player]!
                                  And yeah, if I did anything wrong, could you help correct it?
                                  __________________

                                  I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
                                    #3871    
                                  Old May 20th, 2010 (4:08 PM).
                                  PeregrineFig's Avatar
                                  PeregrineFig PeregrineFig is offline
                                  Starting Pokémon Obsidian
                                     
                                    Join Date: Feb 2010
                                    Location: Michigan, USA
                                    Age: 23
                                    Gender: Male
                                    Nature: Hardy
                                    Posts: 202
                                    Quote:
                                    Originally Posted by vietazn654 View Post
                                    Hi. New at scripting, and i TRIED to combine a givepokemon/applymovement script...
                                    Game: Fire Red
                                    Editor: XSE
                                    Script:
                                    Spoiler:
                                    #dynamic 0x26D3B8

                                    #org @start
                                    checkflag 0x828
                                    if 0x1 goto @done
                                    msgbox @1 0x6
                                    applymovement 0x2 @move
                                    waitmovement 0x0
                                    msgbox @2 0x6
                                    release
                                    end

                                    #org @done
                                    release
                                    end

                                    #org @move
                                    #raw 0x11
                                    #raw 0x12
                                    #raw 0x01

                                    #org @1
                                    = Huh? Oh hello, \v\h01!

                                    #org @2
                                    = Since PROF. BIRCH doesn't have\ntime to give you a POKEMON, I got\la MUDKIP that I think you'll like!\pHere, \v\h01!
                                    givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
                                    fanfare 0x13E
                                    msgbox @4 0x4
                                    waitfanfare
                                    closeonkeypress
                                    setflag 0x1200
                                    msgbox @5 0x6
                                    compare LASTRESULT 0x1
                                    if 0x1 gosub @name
                                    msgbox @6 0x6
                                    release
                                    end

                                    #org @name
                                    call 0x1A74EB
                                    return

                                    #org @4
                                    = [black_fr]\v\h01 recieved a MUDKIP!

                                    #org @5
                                    = [black_fr]Would you like to give a nickname\nto MUDKIP?

                                    #org @6
                                    = Good luck on your adventure,\n\v\h01!


                                    It freezes once the man i give the script to at Hi, [player]!
                                    And yeah, if I did anything wrong, could you help correct it?
                                    The problem is, you put additional commands after a text string. Nothing but text can go in those. After the msgbox @2 0x6, take this entire part:
                                    Spoiler:

                                    givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
                                    fanfare 0x13E
                                    msgbox @4 0x4
                                    waitfanfare
                                    closeonkeypress
                                    setflag 0x1200
                                    msgbox @5 0x6
                                    compare LASTRESULT 0x1
                                    if 0x1 gosub @name
                                    msgbox @6 0x6
                                    release
                                    end

                                    and paste it in. That should fix it. I didn't thoroughly look for any other possible problems though, but I don't think you wrote anything else incorrectly.
                                    __________________
                                    Current Projects:
                                    POKéMON AQUA SAPPHIRE
                                    POKéMON OBSIDIAN

                                      #3872    
                                    Old May 20th, 2010 (5:07 PM).
                                    PEPITO1O1O's Avatar
                                    PEPITO1O1O PEPITO1O1O is offline
                                    ~Saïx~
                                       
                                      Join Date: Sep 2009
                                      Location: Johto
                                      Age: 23
                                      Gender: Male
                                      Nature: Calm
                                      Posts: 333
                                      Never mind I just figured it out by looking at the best tutorial so far:
                                      Diego's.
                                      So thank you Diego :)
                                      __________________
                                      Yusuke Urameshi


                                      Spirit Detective
                                        #3873    
                                      Old May 20th, 2010 (5:26 PM).
                                      vietazn654's Avatar
                                      vietazn654 vietazn654 is offline
                                      A sound soul dwells within me
                                         
                                        Join Date: Feb 2010
                                        Location: Virginia
                                        Age: 23
                                        Gender: Male
                                        Nature: Adamant
                                        Posts: 372
                                        Quote:
                                        Originally Posted by PeregrineFig View Post
                                        The problem is, you put additional commands after a text string. Nothing but text can go in those. After the msgbox @2 0x6, take this entire part:
                                        Spoiler:

                                        givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
                                        fanfare 0x13E
                                        msgbox @4 0x4
                                        waitfanfare
                                        closeonkeypress
                                        setflag 0x1200
                                        msgbox @5 0x6
                                        compare LASTRESULT 0x1
                                        if 0x1 gosub @name
                                        msgbox @6 0x6
                                        release
                                        end

                                        and paste it in. That should fix it. I didn't thoroughly look for any other possible problems though, but I don't think you wrote anything else incorrectly.
                                        i did that and it froze on the givepokemon script... do u think its the givepokemon script i messed up on? 0.O
                                        __________________

                                        I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
                                          #3874    
                                        Old May 20th, 2010 (5:31 PM).
                                        PeregrineFig's Avatar
                                        PeregrineFig PeregrineFig is offline
                                        Starting Pokémon Obsidian
                                           
                                          Join Date: Feb 2010
                                          Location: Michigan, USA
                                          Age: 23
                                          Gender: Male
                                          Nature: Hardy
                                          Posts: 202
                                          Quote:
                                          Originally Posted by vietazn654 View Post
                                          i did that and it froze on the givepokemon script... do u think its the givepokemon script i messed up on? 0.O
                                          If that's the starter it's giving, a certain flag has to be set to activate the pokemon menu button first. Try setting flag 828 before the givepokemon command. If my off-the-top-of-my-head guess is wrong, decompile a starter script from a clean ROM and check what flags it uses.
                                          __________________
                                          Current Projects:
                                          POKéMON AQUA SAPPHIRE
                                          POKéMON OBSIDIAN

                                            #3875    
                                          Old May 20th, 2010 (5:45 PM).
                                          vietazn654's Avatar
                                          vietazn654 vietazn654 is offline
                                          A sound soul dwells within me
                                             
                                            Join Date: Feb 2010
                                            Location: Virginia
                                            Age: 23
                                            Gender: Male
                                            Nature: Adamant
                                            Posts: 372
                                            Quote:
                                            Originally Posted by PeregrineFig View Post
                                            If that's the starter it's giving, a certain flag has to be set to activate the pokemon menu button first. Try setting flag 828 before the givepokemon command. If my off-the-top-of-my-head guess is wrong, decompile a starter script from a clean ROM and check what flags it uses.
                                            yeah it is :P alright, so um, how do i "decompile" a starter script?
                                            __________________

                                            I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
                                            Closed Thread

                                            Quick Reply

                                            Join the conversation!

                                            Create an account to post a reply in this thread, participate in other discussions, and more!

                                            Create a PokéCommunity Account

                                            Sponsored Links
                                            Thread Tools

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

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

                                            Forum Jump


                                            All times are GMT -8. The time now is 3:55 PM.