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
  #7276    
Old September 2nd, 2012 (10:21 AM).
Acecaldwell01's Avatar
Acecaldwell01 Acecaldwell01 is offline
Spriter
     
    Join Date: Aug 2012
    Gender: Male
    Nature: Sassy
    Posts: 99
    Quote:
    Originally Posted by Darkrai87 View Post
    Alright, first things first, in XSE could you go to Help and then About and tell me the numbers in the bottom right corner (Ex. 1.0.1). Secondly, here's my changes to your script and \\explanations not to be added to your script.

    Spoiler:
    Code:
    #dynamic 0x800000
    
    #org @start
    checkflag 0x808
    if 0x1 goto @done \\Goto makes it so when flag 0x808 is set it will goto that part of the script and execute whatever is there. And it will make sure it "goes to" @done and doesn't continue with giving you a pokemon and whatnot like call would.
    msgbox @pikachu1 0x2
    fanfare 0x13E
    msgbox @pikachu2 0x4 \\This isn't really necessary because it's really up to personal preference, but usually you have this textbox say something and look like an announcement instead of the NPC telling you that you've received the pokemon.
    waitfanfare
    closeonkeypress \\Should only be used if you decide to use msgbox 0x4.
    givepokemon 0x19 0x10 0x0 0x0 0x0 0x0
    setflag 0x808
    end \\The release isn't necessary because with msgbox 0x2 the lock, faceplayer, and release commands aren't needed.
    
    #org @done
    lock
    faceplayer
    msgbox @donemsg 0x6
    release
    end \\This ties in with the goto @done. Since it's not actually a msgbox and it's just executing whatever is at this pointer, this is where you put the msgbox leading to "How is PIKACHU?". Also, the lock, faceplayer, and release commands should be used so the NPC actually faces you when you talk to him/her a second time.
    
    #org @pikachu1
    = I have a PIKACHU but do not have\ntime to train it. I know!\lI will give it to you!
    
    #org @pikachu2
    = \v\h01 obtained a\nPIKACHU!
    
    #org @donemsg
    = How is PIKACHU? \\Pretty self explanatory, but this is the message shown in the @done pointer.
    I have tested this in game and it works for me. As for what flags aren't being used that is another story. Here's a list of flags that are being used normally by the games.



    Now before you try the script I gave you, those numbers you found earlier. I'm guessing they weren't "1.1.1". If they weren't, go to my last post and download XSE 1.1.1 and use that to compile the script above. Then test it in game and it should work. ;)

    -Dark
    I am running Xse v 1.1.1
    And the script worked!
    Thanks ;)
    I had to change the flag even though it
    Was not used by the gme tho
    Anyway thanks
      #7277    
    Old September 2nd, 2012 (11:33 AM).
    SKRoy SKRoy is offline
    Pokémon Hacker
       
      Join Date: Mar 2010
      Gender: Male
      Posts: 66
      Quote:
      Originally Posted by Darkrai87 View Post
      That is most likely causing the error. You need the latest XSE (Which is 1.1.1) which can be found in two links:

      4shared: http://www.4shared.com/rar/xn-E0lPP/XSE_Upload.html
      Mediafire: http://www.mediafire.com/?gr5wtvmyiqfasmh

      The 4shared is a .rar archive and the mediafire is a .zip archive. Though you need an account to download from 4shared. Download XSE 1.1.1 and compile the exact same script with the new XSE and replace the old script offset with the one from the compiler. Save in AMap and test again, it should work now.
      Thanks the script worked in the newer version.
      Now I changed the script a little bit and now it is a normaal script, so not for talking to a person. But when I play the game and I walk over that script, than the whole game freezed... What can I do?
      __________________
        #7278    
      Old September 2nd, 2012 (11:42 AM).
      Spherical Ice's Avatar
      Spherical Ice Spherical Ice is online now
       
      Join Date: Nov 2007
      Location: Bristol, UK
      Age: 20
      Posts: 5,226
      Click on the Script Event and change the first "Unknown:" to "$03". Change the "Var number:" underneath it to an unused variable. A commonly used one "$4050".
      __________________

      A Pokemon that is discriminated!
      Support squirtle and make it everyone's favourite.
        #7279    
      Old September 2nd, 2012 (11:54 AM).
      SKRoy SKRoy is offline
      Pokémon Hacker
         
        Join Date: Mar 2010
        Gender: Male
        Posts: 66
        Quote:
        Originally Posted by Spherical Ice View Post
        Click on the Script Event and change the first "Unknown:" to "$03". Change the "Var number:" underneath it to an unused variable. A commonly used one "$4050".
        I did... But now when I walked over the and nothing happend...
        __________________
          #7280    
        Old September 2nd, 2012 (12:07 PM).
        Spherical Ice's Avatar
        Spherical Ice Spherical Ice is online now
         
        Join Date: Nov 2007
        Location: Bristol, UK
        Age: 20
        Posts: 5,226
        Has the variable 4050 been set to anything other than 0 elsewhere in your ROM? If so, change it to another variable that is equal to (and always will be equal to) 0.
        __________________

        A Pokemon that is discriminated!
        Support squirtle and make it everyone's favourite.
          #7281    
        Old September 3rd, 2012 (7:46 AM).
        Controversial?'s Avatar
        Controversial? Controversial? is offline
        DEFINITELY needs to stop now
           
          Join Date: Dec 2010
          Location: UK
          Age: 22
          Gender: Other
          Nature: Naughty
          Posts: 637
          Okay, here's me n00bing out..

          Quote:
          '-----------------------
          #org 0x80010D
          lock
          faceplayer
          checkflag 0x7
          if 0x1 goto 0x88002C3
          applymovement 0x1 0x8800146
          waitmovement 0x0
          msgbox 0x8800154 '"Hey, [player]!"
          pause 0x20
          applymovement 0x1 0x8800149
          msgbox 0x8800162 '" reddfrrJERRY'S MUM: So you finally..."
          pause 0x20
          applymovement 0x1 0x880014E
          setflag 0x7
          callstd 0x2
          '-----------------------
          #org 0x8002C3

          '-----------
          ' Movements
          '-----------
          #org 0x800146
          #raw 2 'Face Left
          #raw FE 'End of Movements
          #org 0x800149
          #raw 13 'Step Right (Normal)
          #raw 13 'Step Right (Normal)
          #raw 13 'Step Right (Normal)
          #raw FE 'End of Movements
          #org 0x80014E
          #raw 3 'Face Right
          #raw 12 'Step Left (Normal)
          #raw 12 'Step Left (Normal)
          #raw 12 'Step Left (Normal)
          #raw FE 'End of Movements

          '---------
          ' Strings
          '---------
          #org 0x800154
          = Hey, [player]!
          #org 0x800162
          = JERRY'S MUM: So you finally woke up, \neh?\pJerry and the others woke up ages\nago - I think they've all gone to\lBlitzore City.\pAnyways, your mum called in here\nearlier. She was acting really\lstressed and stuff[.]\pShe told me she wants you to go\nhome now, so if it doesn't bother\lyou, I think that'd be a good idea,\lyeah?\pIt was nice seeing you, by the way.
          Soo basically it skips the script up to 0x8800149, ignoring all of the stuff up to there. Also, after the textbox the script ends, ignoring the flag setting and the movement afterwards. Probably an easy solution, but do you know what's up?
          __________________
          ???
            #7282    
          Old September 3rd, 2012 (10:21 AM). Edited September 3rd, 2012 by Darkrai87.
          Darkrai87 Darkrai87 is offline
             
            Join Date: Dec 2010
            Gender: Male
            Posts: 20
            Quote:
            Originally Posted by SKRoy View Post
            I did... But now when I walked over the and nothing happend...
            Posting the script would help us a lot, also when doing applymovement 0x(#) @pointer are you making sure that the (#) is the person event no. of the sprite you want to move. Also, in A-Map make sure you're setting the first Unknown to 0300 and the Var number to 4050 on the script tile as previously stated.
            Quote:
            Originally Posted by Controversial? View Post
            Okay, here's me n00bing out..



            Soo basically it skips the script up to 0x8800149, ignoring all of the stuff up to there. Also, after the textbox the script ends, ignoring the flag setting and the movement afterwards. Probably an easy solution, but do you know what's up?
            Posting the original non-compiled script makes it a lot easier for us to help you. But I have a feeling it has to do with the #org 80023C but that's just a guess.
            __________________
            Currently playing through: Pokemon Flora Sky
              #7283    
            Old September 4th, 2012 (1:19 AM).
            SKRoy SKRoy is offline
            Pokémon Hacker
               
              Join Date: Mar 2010
              Gender: Male
              Posts: 66
              Quote:
              Originally Posted by Darkrai87 View Post
              Posting the script would help us a lot, also when doing applymovement 0x(#) @pointer are you making sure that the (#) is the person event no. of the sprite you want to move. Also, in A-Map make sure you're setting the first Unknown to 0300 and the Var number to 4050 on the script tile as previously stated.
              Posting the original non-compiled script makes it a lot easier for us to help you. But I have a feeling it has to do with the #org 80023C but that's just a guess.
              This is the script:

              #dynamic 0x800000

              #org @start
              checkflag 0x1150
              if 0x1 goto @done2
              checkflag 0x820
              if 0x1 goto @done
              message @talk 0x6
              applymovement 0x06 @move2
              applymovement 0xFF @move
              waitmovement 0x0
              release
              end

              #org @talk
              = You don't have your first badge!

              #org @move
              #raw 0x12
              #raw 0x3
              #raw 0xFE

              #org @move2
              #raw 0x10
              #raw 0x2
              #raw 0xFE

              #org @done
              lock
              faceplayer
              message @1 0x6
              givepokemon 0x385 0x5 0x0 0x0 0x0 0x0
              fanfare 0x13E
              message @2 0x4
              waitfanfare
              closeonkeypress
              setflag 0x1150
              message @3 0x5
              compare LASTRESULT 0x1
              if 0x1 gosub @name
              message @4 0x6
              release
              end

              #org @done2
              release
              end

              #org @name
              call 0x1A74EB
              return

              #org @1
              = I see you have your first badge!\nNow I have something for you!

              #org @2
              = [black_fr]You received a Castform!

              #org @3
              = [black_fr]Would you like to give a\nnickname to Castform?

              #org @4
              = Please take care of Castform!
              __________________
                #7284    
              Old September 4th, 2012 (4:59 AM).
              iLoveHate's Avatar
              iLoveHate iLoveHate is offline
              Hmmmmmm.... :D
                 
                Join Date: Aug 2012
                Location: Holland :D
                Gender: Male
                Nature: Modest
                Posts: 35
                Haia i got a question this time aswell, haha.
                Last time i made a givepokemon script, you guysn think: LOL thats not hard.You are right but im stuck at 1 thing. When i want to give the pokemon a nickname it skips that part.
                here is the script:
                Spoiler:


                #dynamic 0x800000

                #org @start
                lock
                faceplayer
                checkflag 0x1001
                if 0x1 goto @beat
                trainerbattle 0x1 0x15F 0x0 @before @after @beat
                end

                #org @before
                = I will win!

                #org @after
                = This, this can't be....

                #org @beat
                msgbox @beaten 0x4
                closeonkeypress
                setflag 0x1001
                checkflag 0x1002
                if 0x1 goto @end
                msgbox @charmander 0x5
                compare LASTRESULT 0x1
                if 0x1 goto @givechar
                msgbox @no 0x6
                goto @end
                end

                #org @no
                = Talk to me again if you want a\nCharmander

                #org @charmander
                = Do you want a Charmander?

                #org @beaten
                = Hmmph, you beat me...

                #org @givechar
                givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
                fanfare 0x13E
                msgbox @received 0x4
                waitfanfare
                closeonkeypress
                setflag 0x1002
                msgbox @nickname 0x5
                compare LASTRESULT 0x1
                if 0x1 goto @nick
                goto @end
                end

                #org @nickname
                = Give it a nickname?

                #org @received
                = You received a Charmander

                #org @nick
                call 0x1A74EB
                return

                #org @end
                release
                end


                If i say 'YES' you hear something and then you are free to go, so it did go to @nick but he didnt call 0x1A74EB

                Things i tried:
                if 0x1 goto @nick
                if 0x1 gosub @nick
                if 0x1 call @nick

                It just skips the part when i can give the poke a nickname. and yes i am using XSE 1.1.1
                __________________
                One does not simply make a pokemon hack ^^
                  #7285    
                Old September 4th, 2012 (6:17 AM).
                SKRoy SKRoy is offline
                Pokémon Hacker
                   
                  Join Date: Mar 2010
                  Gender: Male
                  Posts: 66
                  I have a script:

                  Spoiler:
                  #dynamic 0x800000

                  #org @start
                  lock
                  checkflag 0x1150
                  if 0x1 goto @done2
                  checkflag 0x820
                  if 0x1 goto @done
                  applymovement 0x06 @move2
                  waitmovement 0x0
                  message @talk 0x6
                  applymovement 0xFF @move
                  applymovement 0x6 @move3
                  waitmovement 0x0
                  release
                  end

                  #org @talk
                  = You don't have your first badge!

                  #org @move
                  #raw 0x12
                  #raw 0xFE

                  #org @move2
                  #raw 0x10
                  #raw 0xFE

                  #org @move3
                  #raw 0x11
                  #raw 0x0
                  #raw 0xFE

                  #org @done
                  faceplayer
                  message @1 0x6
                  givepokemon 0x385 0x5 0x0 0x0 0x0 0x0
                  message @2 0x4
                  message @3 0x6
                  setflag 0x1150
                  release
                  end

                  #org @done2
                  release
                  end

                  #org @1
                  = I see you have your first badge!\nNow I have something for you!

                  #org @2
                  = [black_fr]You received a Castform!

                  #org @3
                  = Please take care of Castform!


                  The script works until the GIVE POKEMON part start. Then the game just freeze and I can't do anything. How can I fix this?
                  __________________
                    #7286    
                  Old September 4th, 2012 (6:39 AM).
                  destinedjagold's Avatar
                  destinedjagold destinedjagold is offline
                  Oh Hai Thar~
                   
                  Join Date: May 2007
                  Location: Philippines
                  Age: 27
                  Gender: Male
                  Nature: Careful
                  Posts: 8,589
                  Quote:
                  Originally Posted by SKRoy View Post
                  I have a script:

                  Spoiler:
                  #dynamic 0x800000

                  #org @start
                  lock
                  checkflag 0x1150
                  if 0x1 goto @done2
                  checkflag 0x820
                  if 0x1 goto @done
                  applymovement 0x06 @move2
                  waitmovement 0x0
                  message @talk 0x6
                  applymovement 0xFF @move
                  applymovement 0x6 @move3
                  waitmovement 0x0
                  release
                  end

                  #org @talk
                  = You don't have your first badge!

                  #org @move
                  #raw 0x12
                  #raw 0xFE

                  #org @move2
                  #raw 0x10
                  #raw 0xFE

                  #org @move3
                  #raw 0x11
                  #raw 0x0
                  #raw 0xFE

                  #org @done
                  faceplayer
                  message @1 0x6
                  givepokemon 0x385 0x5 0x0 0x0 0x0 0x0
                  message @2 0x4
                  message @3 0x6
                  setflag 0x1150
                  release
                  end

                  #org @done2
                  release
                  end

                  #org @1
                  = I see you have your first badge!\nNow I have something for you!

                  #org @2
                  = [black_fr]You received a Castform!

                  #org @3
                  = Please take care of Castform!


                  The script works until the GIVE POKEMON part start. Then the game just freeze and I can't do anything. How can I fix this?
                  I am guessing that it's not working, it's because that instead of providing the ROM with the hex number of Castform, you instead gave the ROM Castform's game number, written in hex format.
                  Please bear the thought that...
                  Code:
                  givepokemon 0x385
                  ...and...
                  Code:
                  givepokemon 385
                  ...are NOT the same.
                  Therefore, there is no such PKMN bearing the hex number 0x385.
                  __________________

                    #7287    
                  Old September 4th, 2012 (12:25 PM).
                  Darkrai87 Darkrai87 is offline
                     
                    Join Date: Dec 2010
                    Gender: Male
                    Posts: 20
                    @SKRoy What destined said, change the "givepokemon 0x385" to "givepokemon 0x181". Also in your @done2 pointer, the release isn't needed seeing as you never used lock, but that's just me being picky. xD

                    @iLoveHate What game did you test the script on?
                    __________________
                    Currently playing through: Pokemon Flora Sky
                      #7288    
                    Old September 7th, 2012 (8:47 PM).
                    PokemonMasters's Avatar
                    PokemonMasters PokemonMasters is offline
                    Always Remember Forever&After
                       
                      Join Date: Jun 2012
                      Location: Nuvema Town, Unova
                      Gender: Male
                      Nature: Calm
                      Posts: 403
                      there is something wrong with this script. After i win i and i talk to him nothing happens.
                      '-----------------------
                      #org 0x800000
                      trainerbattle 0x0 0x1 0x0 0x8800017 0x8800041
                      msgbox 0x880005D '"I will train harder to defeat you!"
                      release
                      end


                      '---------
                      ' Strings
                      '---------
                      #org 0x800017
                      = This will be my first Pokemon Battle!!

                      #org 0x800041
                      = No! I Lost! This can't be!

                      #org 0x80005D
                      = I will train harder to defeat you!
                      __________________

                      +ForeverDash on PC's Battle Server | Pair | VM/PM |Partner In Crime
                        #7289    
                      Old September 8th, 2012 (2:34 PM).
                      PNT101 PNT101 is offline
                         
                        Join Date: May 2012
                        Gender: Male
                        Posts: 9
                        I was wondering if anyone could help me find the script for this scene in Pokemon Emerald:

                        i.imgur.com/2HTYp.png

                        That is the event when you enter your rival's house for the first time.

                        I can't seem to find it anywhere here:
                        i.imgur.com/xjngG.png
                          #7290    
                        Old September 8th, 2012 (3:03 PM).
                        shbshb shbshb is offline
                           
                          Join Date: Sep 2010
                          Gender: Male
                          Posts: 2
                          I used my PKSV to fight a celebi. But whenever I catch the celebi it doesn't disappear, but when i run away or beat it, it says mewtwo flown away and it disappears.
                          #dyn 0x740000
                          #org @start
                          special 0x187
                          compare LASTRESULT 2
                          if == jump 0x81A7AE0
                          special 0x188
                          lock
                          faceplayer
                          checksound
                          cry CELEBI 2
                          waitcry
                          pause 0x14
                          playsound 0x156 0x0
                          battle CELEBI 0x52 BLACKFLUTE
                          setflag 0x807
                          special 0x138
                          waitspecial
                          removcesprite 0x800F
                          clearflag 0x807
                          special2 0x800D 0xB4
                          compare LASTRESULT 1
                          if == jump 0x8162558
                          compare LASTRESULT 4
                          if == jump 0x8162561
                          compare LASTRESULT 5
                          if == jump 0x8162561
                          setflag 0x211
                          fadescreen 0
                          release
                          end
                            #7291    
                          Old September 9th, 2012 (10:11 AM).
                          iLoveHate's Avatar
                          iLoveHate iLoveHate is offline
                          Hmmmmmm.... :D
                             
                            Join Date: Aug 2012
                            Location: Holland :D
                            Gender: Male
                            Nature: Modest
                            Posts: 35
                            Quote:
                            Originally Posted by PNT101 View Post
                            I was wondering if anyone could help me find the script for this scene in Pokemon Emerald:

                            i.imgur.com/2HTYp.png

                            That is the event when you enter your rival's house for the first time.

                            I can't seem to find it anywhere here:
                            i.imgur.com/xjngG.png
                            Haia, that script is called a level script. a level script is when you enter somewhere something happens instead of walking at a certain spot.

                            You can find those scripts in the Header tab of the map.
                            then go to the map script part.
                            there might be more then 1 level script but as you can see you can select 1 and open the script. ^^
                            __________________
                            One does not simply make a pokemon hack ^^
                              #7292    
                            Old September 9th, 2012 (11:59 AM).
                            Meowing Mewtwo's Avatar
                            Meowing Mewtwo Meowing Mewtwo is offline
                               
                              Join Date: Aug 2012
                              Location: California
                              Gender: Other
                              Nature: Serious
                              Posts: 27
                              Okay, I have a big problem.
                              A REEEEEEEEALLY big problem.

                              Game: Pokemon Topaz Version, the first of the Garnet Dynasty Triad

                              Base: Pokemon Ruby Version

                              Script type: That depends, as I've tried to fix it so many times. I'll say it's a ground panel (I forgot what they're really called).

                              Script editor: That's kinda where the problem starts.

                              My problem is pretty bad. You see, I've tried so hard to get this right. It started with my use of PokeScript not working. Then it was my use of XSE that didn't work, and now it's my use of PKSV that doesn't work. I've tried basically every reliable script editor, but one of two things will happen; either the clicky noise of when a text box pops up (or the level-up sound) will happen, but nothing else will, or the worse one, a glitched up poke mart on steroids will appear. It's impossible to exit from, and it looks like poop, not to mention it breaks my ROM pretty much every stinkin' time! I just can't figure this out, and any help would be appreciated. Thanks for reading this absurdly long post, I hope someone can help me fix this!

                              Oh, duh! I'm in the script help thread! Here's the freaked out script that hates my guts.


                              Code:
                              #dyn 0x740000
                              #org @begin
                              m walk_down_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow look_down walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow look_up walk_left_vslow walk_left_vslow walk_left_vslow walk_left_vslow walk_left_vslow walk_up_vslow end
                              trainerbattle 0x0 0x256 0x0 @thelegendspeaks @upondefeat
                              msgbox @aftermath
                              callstd MSG_NORMAL
                              release
                              end
                              
                              #org @thelegendspeaks
                              = Latias: So[.] you came. You\nare ready to meet your\ldestiny, I presume?\pv\h01: I suppose[.] But I'm a\llittle nervous[.]\pLatias: That doesn't matter.\lDestiny cannot be changed, and\las my duties inform me, I\lcannot allow you to live. So\lwill you give up now, or force\lmy power?\pv\h01: Wait, WHAT?!\pI wasn't supposed to DIE!\pI can't! I have so much in my\llife[.]\pLatias: Like I already said, I\lcannot allow you to live.\pYou made me do this.\pI am afraid that you must\lperish now.\pBe ready to feel darkness, v\h01!
                              
                              #org @upondefeat
                              = Not possible[.]!
                              
                              #org @aftermath
                              = No! Destiny cannot be disrupted!\nYou should've given up your\llife when you had the chance!


                              Oh, and I wrote it in PKSV (by score_under) Scripting doesen't work on either of my computers, by the way. :pink_frown:

                              Thanks in advance!

                              ~M.M.
                              __________________
                              This account is dead and has been for a long time.
                              I did, however, remake it on August 09, 2014. You can find my new location here.
                                #7293    
                              Old September 10th, 2012 (3:13 PM). Edited September 10th, 2012 by Darkrai87.
                              Darkrai87 Darkrai87 is offline
                                 
                                Join Date: Dec 2010
                                Gender: Male
                                Posts: 20
                                Quote:
                                Originally Posted by Meowing Mewtwo View Post
                                Okay, I have a big problem.
                                A REEEEEEEEALLY big problem.

                                Game: Pokemon Topaz Version, the first of the Garnet Dynasty Triad

                                Base: Pokemon Ruby Version

                                Script type: That depends, as I've tried to fix it so many times. I'll say it's a ground panel (I forgot what they're really called).

                                Script editor: That's kinda where the problem starts.

                                My problem is pretty bad. You see, I've tried so hard to get this right. It started with my use of PokeScript not working. Then it was my use of XSE that didn't work, and now it's my use of PKSV that doesn't work. I've tried basically every reliable script editor, but one of two things will happen; either the clicky noise of when a text box pops up (or the level-up sound) will happen, but nothing else will, or the worse one, a glitched up poke mart on steroids will appear. It's impossible to exit from, and it looks like poop, not to mention it breaks my ROM pretty much every stinkin' time! I just can't figure this out, and any help would be appreciated. Thanks for reading this absurdly long post, I hope someone can help me fix this!

                                Oh, duh! I'm in the script help thread! Here's the freaked out script that hates my guts.


                                Code:
                                #dyn 0x740000
                                #org @begin
                                m walk_down_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow look_down walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow look_up walk_left_vslow walk_left_vslow walk_left_vslow walk_left_vslow walk_left_vslow walk_up_vslow end
                                trainerbattle 0x0 0x256 0x0 @thelegendspeaks @upondefeat
                                msgbox @aftermath
                                callstd MSG_NORMAL
                                release
                                end
                                
                                #org @thelegendspeaks
                                = Latias: So[.] you came. You\nare ready to meet your\ldestiny, I presume?\pv\h01: I suppose[.] But I'm a\llittle nervous[.]\pLatias: That doesn't matter.\lDestiny cannot be changed, and\las my duties inform me, I\lcannot allow you to live. So\lwill you give up now, or force\lmy power?\pv\h01: Wait, WHAT?!\pI wasn't supposed to DIE!\pI can't! I have so much in my\llife[.]\pLatias: Like I already said, I\lcannot allow you to live.\pYou made me do this.\pI am afraid that you must\lperish now.\pBe ready to feel darkness, v\h01!
                                
                                #org @upondefeat
                                = Not possible[.]!
                                
                                #org @aftermath
                                = No! Destiny cannot be disrupted!\nYou should've given up your\llife when you had the chance!


                                Oh, and I wrote it in PKSV (by score_under) Scripting doesen't work on either of my computers, by the way. :pink_frown:

                                Thanks in advance!

                                ~M.M.
                                Alright, change back to XSE (It's a lot easier to use and it's more highly supported), download it from 4Shared or MediaFire. These are XSE ver. 1.1.1. Rewrite your script in XSE, compile it, set it to a script tile and then let us know what happens.


                                Quote:
                                Originally Posted by PokemonMasters View Post
                                there is something wrong with this script. After i win i and i talk to him nothing happens.
                                '-----------------------
                                #org 0x800000
                                trainerbattle 0x0 0x1 0x0 0x8800017 0x8800041
                                msgbox 0x880005D '"I will train harder to defeat you!"
                                release
                                end


                                '---------
                                ' Strings
                                '---------
                                #org 0x800017
                                = This will be my first Pokemon Battle!!

                                #org 0x800041
                                = No! I Lost! This can't be!

                                #org 0x80005D
                                = I will train harder to defeat you!
                                Here's my fixes and \\Explanations of changes. These comments should not be added when compiling..

                                Spoiler:
                                Code:
                                #dynamic 0x800000
                                
                                #org @start
                                trainerbattle 0x0 0x001 0x0 @before @after
                                msgbox @beaten 0x6 \\This needs to be added to define the message type. I have no idea how you managed to compile in XSE without it giving you an error saying you have too few parameters, or without it putting a 0x# after "msgbox 0x880005D" upon compiling. Either way, this should fix your problem.
                                release
                                end
                                
                                #org @before
                                = This will be my first Pokemon\nBattle!!! \\The other problem with your script, is that you need to have the \n because that line of text doesn't fit on one line. I suggest using the Text Adjuster Tool when writing dialogue.
                                
                                #org @after
                                = No! I Lost! This can't be!
                                
                                #org @beaten
                                = I will train harder to defeat you!


                                Write this script into XSE without the stuff in blue, compile it, set it to a sprite, check the "Trainer" box, set the View Radius, and it should work. Let us know if you have anymore problems!
                                __________________
                                Currently playing through: Pokemon Flora Sky
                                  #7294    
                                Old September 11th, 2012 (11:42 AM).
                                botnaeasy's Avatar
                                botnaeasy botnaeasy is offline
                                   
                                  Join Date: Aug 2009
                                  Posts: 10
                                  Hi, i have one problem with wildbattle script. i was trying to make wilbattle script by var. example:
                                  Code:
                                  #dynamic 0x800000
                                  #org @start
                                  lock
                                  faceplayer
                                  setvar 0x8005 0x1 (it should be bulbasaur)
                                  wildbattle 0x8005 0x5 0x0
                                  release
                                  end
                                  (My script is more difficult, but working on same rules.)
                                  but in game it's not bulbasaur but missigno.
                                  When i make script givepokemon (all the same, except wildbattle. I exchange it for givepokemon) it working beautifully.
                                  Does anyone know why this is happening?
                                    #7295    
                                  Old September 11th, 2012 (12:49 PM).
                                  Darkrai87 Darkrai87 is offline
                                     
                                    Join Date: Dec 2010
                                    Gender: Male
                                    Posts: 20
                                    Quote:
                                    Originally Posted by botnaeasy View Post
                                    Hi, i have one problem with wildbattle script. i was trying to make wilbattle script by var. example:
                                    Code:
                                    #dynamic 0x800000
                                    #org @start
                                    lock
                                    faceplayer
                                    setvar 0x8005 0x1 (it should be bulbasaur)
                                    wildbattle 0x8005 0x5 0x0
                                    release
                                    end
                                    (My script is more difficult, but working on same rules.)
                                    but in game it's not bulbasaur but missigno.
                                    When i make script givepokemon (all the same, except wildbattle. I exchange it for givepokemon) it working beautifully.
                                    Does anyone know why this is happening?
                                    No idea why that is happening, could you try doing "setvar 0x8005 0x2" and seeing if that works?
                                    __________________
                                    Currently playing through: Pokemon Flora Sky
                                      #7296    
                                    Old September 11th, 2012 (1:55 PM). Edited September 11th, 2012 by DrFuji.
                                    heyo's Avatar
                                    heyo heyo is offline
                                    HEYO!
                                       
                                      Join Date: Aug 2012
                                      Location: Coolest side of cooldom.
                                      Gender: Male
                                      Nature: Timid
                                      Posts: 88
                                      Heyo!
                                      I have made a script at the beginning of the game in Fire Red, as soon as you enter the world. For some reason, it has this problem:
                                      (youtube) /watch?v=ISO7QBRj5RE&feature=plcp

                                      In Advance Map, it is a map script, and it look like this:
                                      Script Type: Validates values, loads handler to 0x03000EB0 (playback) [02]
                                      Flag: $4055
                                      Value: $0000

                                      The script in PKSV looks like this:

                                      Spoiler:
                                      #org 0x874197A
                                      '-----------------------------------
                                      lock
                                      checkflag 0x4000
                                      if true jump 0x8741A4B ' Flag is set
                                      textcolor BLUE
                                      applymovement 0x2 0x8740995 ' look_up onspot_up on...
                                      pauseevent 0x0
                                      msgbox 0x8740999 ' \v\h01! I'm gonna mi...
                                      callstd MSG_LOCK ' Built-in lock command
                                      applymovement PLAYER 0x8741B38 ' look_right end
                                      applymovement 0x1 0x8740991 ' walk_down walk_down ...
                                      pauseevent 0x0
                                      pauseevent 0x0
                                      msgbox 0x8741B56 ' \v\h06: \v\h01, I'm ...
                                      callstd MSG_LOCK ' Built-in lock command
                                      pause 0x20
                                      applymovement PLAYER 0x8741B36 ' look_down end
                                      applymovement 0x2 0x8740995 ' look_up onspot_up on...
                                      pauseevent 0x0
                                      pauseevent 0x0
                                      msgbox 0x8741B3A ' ISAAC: \v\h01, pleas...
                                      callstd MSG_LOCK ' Built-in lock command
                                      pause 0x20
                                      applymovement 0x1 0x8741B36 ' look_down end
                                      pauseevent 0x0
                                      msgbox 0x8741B1C ' \v\h06: ISAAC, calm ...
                                      callstd MSG_LOCK ' Built-in lock command
                                      applymovement PLAYER 0x8741B38 ' look_right end
                                      applymovement 0x1 0x8741B1A ' look_left end
                                      pauseevent 0x0
                                      pauseevent 0x0
                                      pause 0x20
                                      msgbox 0x8741A74 ' \v\h06: Anyways, you...
                                      callstd MSG_LOCK ' Built-in lock command
                                      applymovement PLAYER 0x87408D0 ' walk_left walk_left ...
                                      pauseevent 0x0
                                      applymovement 0x1 0x87408D4 ' walk_left walk_left ...
                                      pauseevent 0x0
                                      disappear 0x1
                                      setflag 0x4000
                                      pause 0x20
                                      applymovement 0x2 0x8740995 ' look_up onspot_up on...
                                      pauseevent 0x0
                                      msgbox 0x8741A51 ' ISAAC: Big brother! ...
                                      callstd MSG_LOCK ' Built-in lock command
                                      applymovement 0x2 0x8741A4D ' walk_left walk_left ...
                                      pauseevent 0x0
                                      disappear 0x2
                                      setflag 0x4001
                                      setvar 0x4055 0x5
                                      release
                                      end

                                      #org 0x8741A4B
                                      '-----------------------------------
                                      release
                                      end


                                      #org 0x8740999
                                      = \v\h01! I'm gonna miss you!

                                      #org 0x8741B56
                                      = \v\h06: \v\h01, I'm going to miss you\ntoo.\pEveryone in town will. \pYou were a great deal of\nhelp to me, ISAAC, and my partner,\lCUBONE.\pI honestly wish we could stay\nlonger for a better goodbye.

                                      #org 0x8741B3A
                                      = ISAAC: \v\h01, please don't go!

                                      #org 0x8741B1C
                                      = \v\h06: ISAAC, calm yourself.

                                      #org 0x8741A74
                                      = \v\h06: Anyways, you should visit\nyour mother to make sure you\lhave everything you need.\pWe have to leave, we are on a\ntrip to REDWOOD CITY for a\ljob interview.\pGoodbye.

                                      #org 0x8741A51
                                      = ISAAC: Big brother! \nWait for me!!

                                      #org 0x8740995
                                      M look_up onspot_up onspot_up end

                                      #org 0x8741B38
                                      M look_right end

                                      #org 0x8740991
                                      M walk_down walk_down look_left end

                                      #org 0x8741B36
                                      M look_down end

                                      #org 0x8741B1A
                                      M look_left end

                                      #org 0x87408D0
                                      M walk_left walk_left look_right end

                                      #org 0x87408D4
                                      M walk_left walk_left walk_down walk_left look_down end

                                      #org 0x8741A4D
                                      M walk_left walk_left look_down end


                                      Could somebody please explain to me what I did wrong? It would be greatly appreciated. :)
                                        #7297    
                                      Old September 11th, 2012 (9:51 PM).
                                      shinyabsol1's Avatar
                                      shinyabsol1 shinyabsol1 is offline
                                      Pokemon DarkJasper!?
                                         
                                        Join Date: Aug 2010
                                        Gender: Male
                                        Nature: Calm
                                        Posts: 330
                                        Quote:
                                        Originally Posted by heyo
                                        Spoiler:
                                        Heyo!
                                        I have made a script at the beginning of the game in Fire Red, as soon
                                        as you enter the world. For some reason, it has this problem:
                                        (youtube)
                                        /watch?v=ISO7QBRj5RE&feature=plcp

                                        In Advance Map, it is a map script,
                                        and it look like this:
                                        Script Type: Validates values, loads handler to
                                        0x03000EB0 (playback) [02]
                                        Flag: $4055
                                        Value: $0000

                                        The script in
                                        PKSV looks like this:

                                        #org
                                        0x874197A
                                        '-----------------------------------
                                        lock
                                        checkflag
                                        0x4000
                                        if true jump 0x8741A4B ' Flag is set
                                        textcolor
                                        BLUE
                                        applymovement 0x2 0x8740995 ' look_up onspot_up on...
                                        pauseevent
                                        0x0
                                        msgbox 0x8740999 ' \v\h01! I'm gonna mi...
                                        callstd MSG_LOCK ' Built-in
                                        lock command
                                        applymovement PLAYER 0x8741B38 ' look_right end
                                        applymovement
                                        0x1 0x8740991 ' walk_down walk_down ...
                                        pauseevent 0x0
                                        pauseevent
                                        0x0
                                        msgbox 0x8741B56 ' \v\h06: \v\h01, I'm ...
                                        callstd MSG_LOCK ' Built-in
                                        lock command
                                        pause 0x20
                                        applymovement PLAYER 0x8741B36 ' look_down
                                        end
                                        applymovement 0x2 0x8740995 ' look_up onspot_up on...
                                        pauseevent
                                        0x0
                                        pauseevent 0x0
                                        msgbox 0x8741B3A ' ISAAC: \v\h01, pleas...
                                        callstd
                                        MSG_LOCK ' Built-in lock command
                                        pause 0x20
                                        applymovement 0x1 0x8741B36 '
                                        look_down end
                                        pauseevent 0x0
                                        msgbox 0x8741B1C ' \v\h06: ISAAC, calm
                                        ...
                                        callstd MSG_LOCK ' Built-in lock command
                                        applymovement PLAYER
                                        0x8741B38 ' look_right end
                                        applymovement 0x1 0x8741B1A ' look_left
                                        end
                                        pauseevent 0x0
                                        pauseevent 0x0
                                        pause 0x20
                                        msgbox 0x8741A74 '
                                        \v\h06: Anyways, you...
                                        callstd MSG_LOCK ' Built-in lock
                                        command
                                        applymovement PLAYER 0x87408D0 ' walk_left walk_left
                                        ...
                                        pauseevent 0x0
                                        applymovement 0x1 0x87408D4 ' walk_left walk_left
                                        ...
                                        pauseevent 0x0
                                        disappear 0x1
                                        setflag 0x4000
                                        pause
                                        0x20
                                        applymovement 0x2 0x8740995 ' look_up onspot_up on...
                                        pauseevent
                                        0x0
                                        msgbox 0x8741A51 ' ISAAC: Big brother! ...
                                        callstd MSG_LOCK ' Built-in
                                        lock command
                                        applymovement 0x2 0x8741A4D ' walk_left walk_left
                                        ...
                                        pauseevent 0x0
                                        disappear 0x2
                                        setflag 0x4001
                                        setvar 0x4055
                                        0x5
                                        release
                                        end

                                        #org
                                        0x8741A4B
                                        '-----------------------------------
                                        release
                                        end


                                        #org
                                        0x8740999
                                        = \v\h01! I'm gonna miss you!

                                        #org 0x8741B56
                                        = \v\h06:
                                        \v\h01, I'm going to miss you\ntoo.\pEveryone in town will. \pYou were a great
                                        deal of\nhelp to me, ISAAC, and my partner,\lCUBONE.\pI honestly wish we could
                                        stay\nlonger for a better goodbye.

                                        #org 0x8741B3A
                                        = ISAAC: \v\h01,
                                        please don't go!

                                        #org 0x8741B1C
                                        = \v\h06: ISAAC, calm
                                        yourself.

                                        #org 0x8741A74
                                        = \v\h06: Anyways, you should visit\nyour
                                        mother to make sure you\lhave everything you need.\pWe have to leave, we are on
                                        a\ntrip to REDWOOD CITY for a\ljob interview.\pGoodbye.

                                        #org
                                        0x8741A51
                                        = ISAAC: Big brother! \nWait for me!!

                                        #org 0x8740995
                                        M
                                        look_up onspot_up onspot_up end

                                        #org 0x8741B38
                                        M look_right
                                        end

                                        #org 0x8740991
                                        M walk_down walk_down look_left end

                                        #org
                                        0x8741B36
                                        M look_down end

                                        #org 0x8741B1A
                                        M look_left
                                        end

                                        #org 0x87408D0
                                        M walk_left walk_left look_right end

                                        #org
                                        0x87408D4
                                        M walk_left walk_left walk_down walk_left look_down end

                                        #org
                                        0x8741A4D
                                        M walk_left walk_left look_down end

                                        Could somebody please
                                        explain to me what I did wrong? It would be greatly appreciated. :)
                                        This tutorial tells you how to fix that problem:

                                        Link: http://www.pokecommunity.com/showthread.php?t=191500
                                          #7298    
                                        Old September 12th, 2012 (5:24 AM).
                                        botnaeasy's Avatar
                                        botnaeasy botnaeasy is offline
                                           
                                          Join Date: Aug 2009
                                          Posts: 10
                                          Quote:
                                          No idea why that is happening, could you try doing "setvar 0x8005 0x2" and seeing if that works?
                                          i change setvar 0x8005 0x1 to 0x8005 0x2. when i made givepokemon script its working great. Gave me ivisaur (0x2), but in wildbattle missigno.
                                            #7299    
                                          Old September 12th, 2012 (6:02 AM).
                                          hinkage's Avatar
                                          hinkage hinkage is offline
                                          Everyone currently in an argument with this member: I really suggest you stop.
                                           
                                          Join Date: Aug 2010
                                          Age: 23
                                          Posts: 378
                                          Quote:
                                          Originally Posted by botnaeasy View Post
                                          i change setvar 0x8005 0x1 to 0x8005 0x2. when i made givepokemon script its working great. Gave me ivisaur (0x2), but in wildbattle missigno.
                                          It's kinda hard to understand what you're trying to say... You want to script a battle with a Bulbasaur? In that case,

                                          Code:
                                          wildbattle 0x1 0x5 0x0
                                          should work. You really don't need to use a var for wild battles, either; even if you have "if" statements, it might just be easier for now to hard code it make a custom "wildbattle" for each "if", instead of setting a var, and potentially having a MissingNo.. The case may be that the "wildbattle" command just doesn't accept vars, period. I don't know, so try it without them.
                                          __________________
                                          (ღ˘⌣˘ღ)
                                            #7300    
                                          Old September 12th, 2012 (6:29 AM).
                                          botnaeasy's Avatar
                                          botnaeasy botnaeasy is offline
                                             
                                            Join Date: Aug 2009
                                            Posts: 10
                                            Quote:
                                            should work. You really don't need to use a var for wild battles, either; even if you have "if" statements, it might just be easier for now to hard code it make a custom "wildbattle" for each "if", instead of setting a var, and potentially having a MissingNo.. The case may be that the "wildbattle" command just doesn't accept vars, period. I don't know, so try it without them.
                                            I need use vars becouse my script is more difficult, and bulbasaur is only example. Var will be selected by player , and wilbattle should be selected too (for example: i chose from party pokemons my bulbasaur-setvar 0x8005 0x1, and later wildbattle with bulbasaur). But, yes, i think wildbattle command doesn's accept vars :/
                                            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 12:39 PM.