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
  #2601    
Old December 6th, 2009 (8:58 AM).
Late's Avatar
Late Late is offline
Pokémon Artist
     
    Join Date: Nov 2008
    Location: "We all live in a Pokémon World!"
    Age: 23
    Gender: Male
    Nature: Careful
    Posts: 549
    Quote:
    Originally Posted by DeusImp3riuM View Post
    s there a way to make a follow script so when you move anther thing follows behind like in d/p/p in the forest with that girl but for FR
    I think there's a way, but as I am not very good scripter, I don't know how.
    As you follow when Prof. Oak walks, why couldn't you get someone to follow you?
    __________________

    Please feed my Pokémon and warm my eggs.
    Thanks for everyone who have clicked these, you've helped me a lot :)

    Anyone has Club Nintendo codes that you don't need? I want those.
    If you have one code for me I can trade you my Explorers of Sky code as I can't put it because I have registered already one. (Registered my brother's game and now I can't register mine...) Someone have same thing? PM me.
    I know there's nobody who wishes to do this xD
    I'm talking about Club Nintendo of Europe.

    Relevant Advertising!

      #2602    
    Old December 6th, 2009 (10:55 AM).
    amoliski's Avatar
    amoliski amoliski is offline
       
      Join Date: Jan 2009
      Location: Williamsport PA
      Age: 27
      Gender: Male
      Posts: 44
      Quote:
      Originally Posted by Late View Post
      I think there's a way, but as I am not very good scripter, I don't know how.
      As you follow when Prof. Oak walks, why couldn't you get someone to follow you?
      When you follow Prof. Oak, every move is scripted (move down, move down, move left) and is executed one after another. There may be a way, buy it would be different from the oak follow.

      Ash493:
      I had it in two strings but it didn't work there, so I collapsed it down.
      Here is the script put back
      Spoiler:
      #dynamic 0x800000
      #org @start
      lock
      msgbox @talk 0x6
      setvar 0x8004 0xF
      setvar 0x8005 0xF
      setvar 0x8006 0xA
      setvar 0x8007 0x5
      special 0x136
      pause 0x20
      fadescreen 0x3
      call @tiles
      fadescreen 0x2
      release
      end

      #org @tiles
      setmaptile 0xD 0xF 0x236 0x0
      setmaptile 0x12 0xE 0x9F 0x0
      setmaptile 0x1A 0x0D 0x9F 0x0
      setmaptile 0x15 0xE 0xB7 0x1
      setmaptile 0x18 0xE 0xB7 0x1
      special 0x8E
      return

      #org @talk
      = Whaccha Know, It/n works!
        #2603    
      Old December 6th, 2009 (12:56 PM).
      Aether Noir's Avatar
      Aether Noir Aether Noir is offline
      <(^.^<) (>^.^)>
         
        Join Date: Feb 2009
        Posts: 9
        Quote:
        Originally Posted by Ash493 View Post
        Does it have assigned flag?
        Maybe that flag was already used in game and that means that OW won't appear.
        Well, I havent really used any flags other than 0x828 and 0x20 in my scripts, ( I'm not sure if the scripts pre-entered in the game are affecting this,) but I'm not sure how to assign a flag to a certain sprite, or how to really assign a flag at all.

        Could you please explain?
        __________________
        Currently at the drawing board for my first hack, Wally's Legacy.


          #2604    
        Old December 6th, 2009 (1:38 PM). Edited December 6th, 2009 by Shukumei.
        Shukumei's Avatar
        Shukumei Shukumei is offline
        Teh Haxxorz
           
          Join Date: Nov 2009
          Location: Austin TX.
          Gender: Male
          Nature: Quiet
          Posts: 27
          Quote:
          Originally Posted by xmouvelianx View Post
          Forgot to mention that :P
          But most of the time, you don't need a release before an end.
          Thats my point if you use level scripts and signposts
          That is true. All I was saying is it doesn't hurt to put it in. If you're forgetful (like me) getting in the habit of putting release at the end of your scripts can save headaches and debugging time. I remember when I first started scripting I forgot to put release on a script for a script panel. Whenever I stepped on the panel the player locked and I thought the game froze. Took me weeks to figure out the problem.

          Quote:
          Originally Posted by Aether Noir View Post
          Well, I havent really used any flags other than 0x828 and 0x20 in my scripts, ( I'm not sure if the scripts pre-entered in the game are affecting this,) but I'm not sure how to assign a flag to a certain sprite, or how to really assign a flag at all.

          Could you please explain?
          XSE's help file contains a list of the officially used flags. (The flags used in the main game.) If you're unsure about what flags are taken you should check the tutorial under the help menu. I'm not at my home computer right now so I can't tell you if those are already used although 0x828 seems familiar for some reason. As for assigning flags to sprites it's simple. when you create a person event in advance map there is a person ID number. If you enter the number (in hex) of a flag's adress in memory then when the flag is set the person will vanish and when cleared the person will come back.
          __________________
          (Enter clever observation here)
          Shukumei's PokePet

          Shade the level 50 Umbreon!
            #2605    
          Old December 6th, 2009 (4:49 PM).
          Aether Noir's Avatar
          Aether Noir Aether Noir is offline
          <(^.^<) (>^.^)>
             
            Join Date: Feb 2009
            Posts: 9
            Quote:
            Originally Posted by Shukumei View Post
            That is true. All I was saying is it doesn't hurt to put it in. If you're forgetful (like me) getting in the habit of putting release at the end of your scripts can save headaches and debugging time. I remember when I first started scripting I forgot to put release on a script for a script panel. Whenever I stepped on the panel the player locked and I thought the game froze. Took me weeks to figure out the problem.



            XSE's help file contains a list of the officially used flags. (The flags used in the main game.) If you're unsure about what flags are taken you should check the tutorial under the help menu. I'm not at my home computer right now so I can't tell you if those are already used although 0x828 seems familiar for some reason. As for assigning flags to sprites it's simple. when you create a person event in advance map there is a person ID number. If you enter the number (in hex) of a flag's adress in memory then when the flag is set the person will vanish and when cleared the person will come back.
            First off, I know that 0x828 is the flag used for the Poke-Menu.
            Secondly, I have learned that I should use flags over 1000

            Therefore, if I use the flag 0x1000, if I want to assign that flag to a sprite, the Person ID should be 3E8? (the hex for 1000)
            __________________
            Currently at the drawing board for my first hack, Wally's Legacy.


              #2606    
            Old December 6th, 2009 (5:05 PM).
            Pokepal17's Avatar
            Pokepal17 Pokepal17 is offline
            More cowbell~
             
            Join Date: Oct 2008
            Location: Steeltown
            Age: 23
            Gender: Male
            Nature: Modest
            Posts: 1,517
            Quote:
            Originally Posted by Aether Noir View Post
            First off, I know that 0x828 is the flag used for the Poke-Menu.
            Secondly, I have learned that I should use flags over 1000

            Therefore, if I use the flag 0x1000, if I want to assign that flag to a sprite, the Person ID should be 3E8? (the hex for 1000)
            No, it should be 1000 because the flag 0x1000 is in hex as the 0x states it. :P
            __________________
            Pokémon Stardrop
              #2607    
            Old December 7th, 2009 (10:30 AM). Edited December 7th, 2009 by Shukumei.
            Shukumei's Avatar
            Shukumei Shukumei is offline
            Teh Haxxorz
               
              Join Date: Nov 2009
              Location: Austin TX.
              Gender: Male
              Nature: Quiet
              Posts: 27
              Quote:
              Originally Posted by Aether Noir View Post
              First off, I know that 0x828 is the flag used for the Poke-Menu.
              Secondly, I have learned that I should use flags over 1000

              Therefore, if I use the flag 0x1000, if I want to assign that flag to a sprite, the Person ID should be 3E8? (the hex for 1000)
              Quote:
              Originally Posted by Pokepal17 View Post
              No, it should be 1000 because the flag 0x1000 is in hex as the 0x states it. :P
              He's right. The prefix "0x" indicates that whatever comes next is in hex. so 0xA = 10, 0x3E8 = 1000 and 0x1000 = 4096. if you want to assign 0x1000 to a person just make their person ID 1000. (Because the person ID field is already in hex.)

              Another thing to remember is that the disappearance and reappearance of sprites isn't instantanious. If you set the person ID flag they will still be there untill the player takes a step. To solve this problem follow it with a hidesprite command. For example a sprite with person ID 1000 and person event number 5 would disappear with

              setflag 0x1000
              hidesprite 5

              And would be brought back with

              clearflag 0x1000
              showsprite 5
              __________________
              (Enter clever observation here)
              Shukumei's PokePet

              Shade the level 50 Umbreon!
                #2608    
              Old December 9th, 2009 (6:57 AM).
              rokrdude's Avatar
              rokrdude rokrdude is offline
              POKEMON : SINNOH QUEST CREATOR
                 
                Join Date: Oct 2009
                Gender: Male
                Posts: 136
                I want to make national dex (instead of normal region pokedex) available at the start of ruby game

                What changes should i do in the script?


                Originally Posted by Forgotten Memory


                PokéScript
                #raw 0x11 0x02 0x00 0x6B 0x02 0x02 0x11 0x03 0x01 0x6B 0x02 0x02
                #raw 0x11 0xDA 0xBE 0x4E 0x02 0x02 0x11 0x67 0x5A 0x6A 0x02 0x02

                XSE
                writebytetooffset 0x2 0x2026B00
                writebytetooffset 0x3 0x2026B01
                writebytetooffset 0xDA 0x2024EBE
                writebytetooffset 0x67 0x2026A5A


                Not 100% sure but i think the xse commands are not valid for new version

                Also i am using advance map and XSE as Script editor but i am not able to find the script where pokedex menu is activated.

                Pls can someone tell me the correct commands and where to place it to activate
                national dex in Ruby at the start!!!!
                  #2609    
                Old December 9th, 2009 (8:00 AM).
                Tropical Sunlight's Avatar
                Tropical Sunlight Tropical Sunlight is offline
                The Faltine
                   
                  Join Date: Mar 2008
                  Location: Slovenia
                  Age: 22
                  Gender: Male
                  Posts: 3,577
                  Quote:
                  Originally Posted by rokrdude View Post
                  I want to make national dex (instead of normal region pokedex) available at the start of ruby game

                  What changes should i do in the script?


                  Originally Posted by Forgotten Memory


                  PokéScript
                  #raw 0x11 0x02 0x00 0x6B 0x02 0x02 0x11 0x03 0x01 0x6B 0x02 0x02
                  #raw 0x11 0xDA 0xBE 0x4E 0x02 0x02 0x11 0x67 0x5A 0x6A 0x02 0x02

                  XSE
                  writebytetooffset 0x2 0x2026B00
                  writebytetooffset 0x3 0x2026B01
                  writebytetooffset 0xDA 0x2024EBE
                  writebytetooffset 0x67 0x2026A5A


                  Not 100% sure but i think the xse commands are not valid for new version

                  Also i am using advance map and XSE as Script editor but i am not able to find the script where pokedex menu is activated.

                  Pls can someone tell me the correct commands and where to place it to activate
                  national dex in Ruby at the start!!!!
                  Oh no... Forgotten Memory just told you...
                  Make a script, put that into it and then compile it. If you don't know how to make a script, I suggest reading diegoisawesome's XSE scripting tutorial.
                  __________________
                    #2610    
                  Old December 9th, 2009 (8:16 AM). Edited December 9th, 2009 by rokrdude.
                  rokrdude's Avatar
                  rokrdude rokrdude is offline
                  POKEMON : SINNOH QUEST CREATOR
                     
                    Join Date: Oct 2009
                    Gender: Male
                    Posts: 136
                    Quote:
                    Originally Posted by H2O Turquoise View Post
                    Oh no... Forgotten Memory just told you...
                    Make a script, put that into it and then compile it. If you don't know how to make a script, I suggest reading diegoisawesome's XSE scripting tutorial.

                    Instead of creating a different script,isn't there any method so that instead of birch giving
                    regional dex he gives national dex( I mean any specials like there is one in firered)

                    If there is no other way can u tell me,pm me
                    can i put the 4 lines

                    writebytetooffset 0x2 0x2026B00
                    writebytetooffset 0x3 0x2026B01
                    writebytetooffset 0xDA 0x2024EBE
                    writebytetooffset 0x67 0x2026A5A

                    just after the one flag for shoes(in moms script ) is set
                    Will it work?


                    Btw thanks for replying
                      #2611    
                    Old December 9th, 2009 (4:47 PM).
                    novluis323's Avatar
                    novluis323 novluis323 is offline
                       
                      Join Date: Dec 2009
                      Gender: Male
                      Posts: 38
                      k well what im tryin to do is on a certain point of the map a scientist i inserted wont let you leave unless you have a pokemon with you except im not quite sure would i still use some of the normal dialog script or would i have to get a whole new script help is greatly apperciated and this is what i have for it so far
                      '---------------
                      #org 0x169DEE
                      lock
                      faceplayer
                      msgbox 0x818EBE6 MSG_KEEPOPEN '"Remember to take one of your Partn..."
                      release
                      end


                      '---------
                      ' Strings
                      '---------
                      #org 0x18EBE6
                      = Remember to take one of your Partners /nBefore heading out to look for
                        #2612    
                      Old December 9th, 2009 (4:50 PM).
                      Pokepal17's Avatar
                      Pokepal17 Pokepal17 is offline
                      More cowbell~
                       
                      Join Date: Oct 2008
                      Location: Steeltown
                      Age: 23
                      Gender: Male
                      Nature: Modest
                      Posts: 1,517
                      Quote:
                      Originally Posted by novluis323 View Post
                      k well what im tryin to do is on a certain point of the map a scientist i inserted wont let you leave unless you have a pokemon with you except im not quite sure would i still use some of the normal dialog script or would i have to get a whole new script help is greatly apperciated and this is what i have for it so far
                      '---------------
                      #org 0x169DEE
                      lock
                      faceplayer
                      msgbox 0x818EBE6 MSG_KEEPOPEN '"Remember to take one of your Partn..."
                      release
                      end


                      '---------
                      ' Strings
                      '---------
                      #org 0x18EBE6
                      = Remember to take one of your Partners /nBefore heading out to look for
                      You'd need a flag to check if the POkemon menu has been activated (0x828) and some movements for him. :3
                      __________________
                      Pokémon Stardrop
                        #2613    
                      Old December 9th, 2009 (4:52 PM).
                      novluis323's Avatar
                      novluis323 novluis323 is offline
                         
                        Join Date: Dec 2009
                        Gender: Male
                        Posts: 38
                        Quote:
                        Originally Posted by Pokepal17 View Post
                        You'd need a flag to check if the POkemon menu has been activated (0x828) and some movements for him. :3
                        ok how would i be able to do that the flag thing i never really understood how to do it or the movements themselfs can you give me some sort of example ive been looking for a tutorial and still cant find one
                          #2614    
                        Old December 9th, 2009 (4:59 PM).
                        Pokepal17's Avatar
                        Pokepal17 Pokepal17 is offline
                        More cowbell~
                         
                        Join Date: Oct 2008
                        Location: Steeltown
                        Age: 23
                        Gender: Male
                        Nature: Modest
                        Posts: 1,517
                        Quote:
                        Originally Posted by novluis323 View Post
                        ok how would i be able to do that the flag thing i never really understood how to do it or the movements themselfs can you give me some sort of example ive been looking for a tutorial and still cant find one
                        All the commands and help stuff is included in the XSE guide and command help. Also, there's a tutorial by diegoisawesome which goes through a lot of scripting commands. Once you understand them, it's all about putting the together to make a custom script. :3
                        __________________
                        Pokémon Stardrop
                          #2615    
                        Old December 9th, 2009 (5:04 PM).
                        novluis323's Avatar
                        novluis323 novluis323 is offline
                           
                          Join Date: Dec 2009
                          Gender: Male
                          Posts: 38
                          Quote:
                          Originally Posted by Pokepal17 View Post
                          All the commands and help stuff is included in the XSE guide and command help. Also, there's a tutorial by diegoisawesome which goes through a lot of scripting commands. Once you understand them, it's all about putting the together to make a custom script. :3
                          Yup thanks i just found the tut. is it possible to set flags on floor tiles?
                            #2616    
                          Old December 9th, 2009 (7:00 PM).
                          Pokepal17's Avatar
                          Pokepal17 Pokepal17 is offline
                          More cowbell~
                           
                          Join Date: Oct 2008
                          Location: Steeltown
                          Age: 23
                          Gender: Male
                          Nature: Modest
                          Posts: 1,517
                          Quote:
                          Originally Posted by novluis323 View Post
                          Yup thanks i just found the tut. is it possible to set flags on floor tiles?
                          Yes it is, and it's commonly used in most rom hacks. :P
                          __________________
                          Pokémon Stardrop
                            #2617    
                          Old December 9th, 2009 (8:00 PM).
                          rokrdude's Avatar
                          rokrdude rokrdude is offline
                          POKEMON : SINNOH QUEST CREATOR
                             
                            Join Date: Oct 2009
                            Gender: Male
                            Posts: 136
                            Instead of creating a different script,isn't there any method so that instead of birch giving
                            regional dex he gives national dex( I mean any specials like there is one in firered) in ruby game

                            If there is no other way can anyone tell me

                            Can i put the 4 lines
                            writebytetooffset 0x2 0x2026B00
                            writebytetooffset 0x3 0x2026B01
                            writebytetooffset 0xDA 0x2024EBE
                            writebytetooffset 0x67 0x2026A5A
                            just after the one flag for shoes(in moms script ) is set

                            Will it work?

                            If not what else do i need to change in Script?
                              #2618    
                            Old December 9th, 2009 (8:58 PM).
                            TB Pro's Avatar
                            TB Pro TB Pro is offline
                            Old-timer
                               
                              Join Date: Nov 2004
                              Location: Midwestern USA
                              Age: 24
                              Gender: Male
                              Posts: 2,739
                              Quote:
                              Originally Posted by rokrdude View Post
                              Instead of creating a different script,isn't there any method so that instead of birch giving
                              regional dex he gives national dex( I mean any specials like there is one in firered) in ruby game

                              If there is no other way can anyone tell me

                              Can i put the 4 lines
                              writebytetooffset 0x2 0x2026B00
                              writebytetooffset 0x3 0x2026B01
                              writebytetooffset 0xDA 0x2024EBE
                              writebytetooffset 0x67 0x2026A5A
                              just after the one flag for shoes(in moms script ) is set

                              Will it work?

                              If not what else do i need to change in Script?
                              no. Actually, yes, it probably will, but screw existing scripts. MAKE A NEW ONE! It's really easy and a waaayyyy better deal.
                              __________________
                              --I'm a creepin'..
                                #2619    
                              Old December 9th, 2009 (9:19 PM).
                              Chaos Rush's Avatar
                              Chaos Rush Chaos Rush is offline
                                 
                                Join Date: May 2007
                                Gender: Male
                                Posts: 1,311
                                Okay, I'm using XSE, and this is my script I'm having trouble with:
                                Quote:
                                '---------------
                                #org 0x1E8091
                                lockall
                                call 0x81E80AD
                                releaseall
                                end

                                '---------------
                                #org 0x1E80AD
                                msgbox 0x81E8BB8 MSG_KEEPOPEN '"Insert text here lol"
                                closeonkeypress
                                movesprite 0x4 0xA 0xA
                                applymovement 0x4 0x81E80DF
                                waitmovement 0x4
                                msgbox 0x81E8C07 MSG_KEEPOPEN '"Insert more text here lololol"
                                waitmsg
                                pause 0x1E
                                applymovement 0x4 0x81E80EB
                                return


                                '---------
                                ' Strings
                                '---------
                                #org 0x1E8BB8
                                = Insert text here lol

                                #org 0x1E8C07
                                = Insert more text here lololol


                                '-----------
                                ' Movements
                                '-----------
                                #org 0x1E80DF
                                #raw 0x9 'Step Up (Normal)
                                #raw 0x9 'Step Up (Normal)
                                #raw 0x9 'Step Up (Normal)
                                #raw 0x9 'Step Up (Normal)
                                #raw 0x9 'Step Up (Normal)
                                #raw 0x9 'Step Up (Normal)
                                #raw 0xFE 'End of Movements

                                #org 0x1E80EB
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0x8 'Step Down (Normal)
                                #raw 0xFE 'End of Movements
                                The problem is that after the message, "Insert more text here lololol" appears, nothing happens. What should happen is that person #4 should start walking down, but I'm not sure why.

                                This is my first custom script, so tell me if I'm missing something.
                                  #2620    
                                Old December 9th, 2009 (9:23 PM).
                                rokrdude's Avatar
                                rokrdude rokrdude is offline
                                POKEMON : SINNOH QUEST CREATOR
                                   
                                  Join Date: Oct 2009
                                  Gender: Male
                                  Posts: 136
                                  Quote:
                                  Originally Posted by Jesse[TB Pro] View Post
                                  no. Actually, yes, it probably will, but screw existing scripts. MAKE A NEW ONE! It's really easy and a waaayyyy better deal.
                                  Sorry but its not working

                                  The thing is if a edit the script and insert the 4 lines i dont get option to save
                                  all i get is save as option which saves the script as rbc,rbh etc
                                  How Im suppose to edit the script
                                  pls help


                                  2)How can we find and edit the the complete script of a game using advance map
                                  (along with XSE as Script Editor)

                                  I know how to look at the script of particular event or a map(but not the whole game)

                                  The thing is I want to increase the price of going to safari zone but not able to find the script
                                    #2621    
                                  Old December 9th, 2009 (9:47 PM).
                                  colcolstyles's Avatar
                                  colcolstyles colcolstyles is offline
                                  Yours truly
                                   
                                  Join Date: May 2008
                                  Location: The Bay Area
                                  Gender: Male
                                  Nature: Lonely
                                  Posts: 1,590
                                  Quote:
                                  Originally Posted by AztecFire View Post
                                  The problem is that after the message, "Insert more text here lololol" appears, nothing happens. What should happen is that person #4 should start walking down, but I'm not sure why.
                                  Looks like you're missing a 'waitmovement' after the second 'applymovement'. That would explain why the NPC isn't moving.
                                  __________________

                                  Brother of Vrai
                                    #2622    
                                  Old December 9th, 2009 (11:18 PM).
                                  rokrdude's Avatar
                                  rokrdude rokrdude is offline
                                  POKEMON : SINNOH QUEST CREATOR
                                     
                                    Join Date: Oct 2009
                                    Gender: Male
                                    Posts: 136
                                    1) Thanks but can u post for ruby as well as im hacking ruby
                                    (tried to search on emerald basis in ruby but no luck)

                                    In Emerald: go to Route 121 and use the warp there to enter the Safari Zone gatehouse (23.0). There should be one green square labeled 'S' inside which you should decompile. Search the document for 0x1F4 and replace any instance of it with your new value (remember to convert to hex!).

                                    How do i wrap to a position there isnt any wrap command given in script of 3 persons in safari zone entrance



                                    2) Instead of creating a different script,isn't there any method so that instead of birch giving
                                    regional dex he gives national dex( I mean any specials like there is one in firered) in ruby game

                                    If there is no other way can anyone tell me

                                    Can i put the 4 lines
                                    writebytetooffset 0x2 0x2026B00
                                    writebytetooffset 0x3 0x2026B01
                                    writebytetooffset 0xDA 0x2024EBE
                                    writebytetooffset 0x67 0x2026A5A
                                    just after the one flag for shoes(in moms script ) is set


                                    The thing is if a edit the script and insert the 4 lines i dont get option to save
                                    all i get is save as option which saves the script as rbc,rbh etc
                                    How Im suppose to edit the script
                                    pls help
                                      #2623    
                                    Old December 10th, 2009 (12:05 AM).
                                    Chicken Bones Chicken Bones is offline
                                    Hacks 4 fun
                                       
                                      Join Date: Nov 2009
                                      Posts: 18
                                      Ok I'm trying to make a script where the player can move during it. (To be more precise where a sprite follows you). I am only one step away from success.

                                      I can't let the player move until the end command. I have tried all manner of level scripts etc.

                                      Here is a test. I wan't to be able to move during the script so for about 3 secs during the pauses. (Whole script)

                                      Spoiler:
                                      #org 0x803B16
                                      releaseall
                                      pause 0x30
                                      spriteinvisible 0xFF 0xE 0xC
                                      pause 0x30
                                      spritevisible 0xFF 0xE 0xC
                                      end


                                      please tell me how to let the player move during execution.
                                        #2624    
                                      Old December 10th, 2009 (12:29 AM).
                                      0m3GA ARS3NAL's Avatar
                                      0m3GA ARS3NAL 0m3GA ARS3NAL is offline
                                      Im comin' home...
                                       
                                      Join Date: Jan 2008
                                      Location: Superjail Penitentiary
                                      Age: 25
                                      Gender: Male
                                      Nature: Gentle
                                      Posts: 1,816
                                      Quote:
                                      Originally Posted by Chicken Bones View Post
                                      Ok I'm trying to make a script where the player can move during it. (To be more precise where a sprite follows you). I am only one step away from success.

                                      I can't let the player move until the end command. I have tried all manner of level scripts etc.

                                      Here is a test. I wan't to be able to move during the script so for about 3 secs during the pauses. (Whole script)

                                      Spoiler:
                                      #org 0x803B16
                                      releaseall
                                      pause 0x30
                                      spriteinvisible 0xFF 0xE 0xC
                                      pause 0x30
                                      spritevisible 0xFF 0xE 0xC
                                      end


                                      please tell me how to let the player move during execution.
                                      Do not ask the same thing in 2 threads, I should have answered this one, but I answered your question in the other thread.

                                      Next time, only ask in THIS thread.
                                      __________________
                                      >Boot Jailbot
                                      >Pass *****
                                      .
                                      .
                                      Jailbot OS Ver 1.1.2
                                      Greetings Warden
                                      of Superjail Penitentiary
                                      Awaiting user input...

                                      >Display User_Info
                                      ╠══User Info══╣
                                      Username:
                                      0m3GA ARS3NAL
                                      Age: 18
                                      Sex: Male ♂
                                      Race: Caucasian
                                      Quote:
                                      "What is this
                                      I don't even..."

                                      M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
                                      ╠══End of File══╣
                                      Awaiting user input...

                                      >
                                        #2625    
                                      Old December 10th, 2009 (1:30 AM).
                                      KillerSnipe21 KillerSnipe21 is offline
                                         
                                        Join Date: Dec 2008
                                        Gender:
                                        Posts: 14
                                        I am trying to make it so when you lose to your rival you don't white out but, when ever I lose it just makes me go back to the PC but, I want it to continue like in the normal game when you lose to your rival. Can anybody help me?

                                        Spoiler:
                                        #dynamic 0x81CC7C

                                        #org @start2
                                        checkitem 0x15D 0x1
                                        compare LASTRESULT 0x1
                                        if 0x1 goto @start
                                        if 0x0 goto @end
                                        end

                                        #org @start
                                        lock
                                        faceplayer
                                        checkflag 0x8CF
                                        if 0x1 goto @end
                                        playsong 0x13B 0x0
                                        applymovement 0x07 @move1
                                        msgbox @0 0x6
                                        checkflag 0x8C6
                                        if 0x1 goto @1
                                        checkflag 0x8C7
                                        if 0x1 goto @2
                                        checkflag 0x8C8
                                        if 0x1 goto @3

                                        #org @move1
                                        #raw 0x11
                                        #raw 0x11
                                        #raw 0x11
                                        #raw 0x11
                                        #raw 0xFE

                                        #org @0
                                        = [rival]:Hey, [player] what's up?

                                        #org @1
                                        trainerbattle 0x9 0x146 0x0 @lost @won
                                        setflag 0x8CF
                                        msgbox @A 0x6
                                        applymovement 0x07 @move2
                                        release
                                        end

                                        #org @2
                                        trainerbattle 0x9 0x147 0x0 @lost @won
                                        setflag 0x8CF
                                        msgbox @A 0x6
                                        applymovement 0x07 @move2
                                        release
                                        end

                                        #org @3
                                        trainerbattle 0x9 0x148 0x0 @lost @won
                                        setflag 0x8CF
                                        msgbox @A 0x6
                                        applymovement 0x07 @move2
                                        release
                                        end

                                        #org @won
                                        = I told you I would win!

                                        #org @lost
                                        = How do you always win?

                                        #org @A
                                        = [rival]:What a battle that was!

                                        #org @move2
                                        #raw 0x61
                                        #raw 0x10
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0x60
                                        #raw 0xFE

                                        #org @end
                                        lock
                                        faceplayer
                                        release
                                        end
                                        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 12:54 AM.