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
  #6951    
Old June 8th, 2012 (12:30 PM). Edited June 8th, 2012 by vanillagfx.
vanillagfx's Avatar
vanillagfx vanillagfx is offline
     
    Join Date: May 2012
    Gender: Male
    Posts: 90
    Okay got it to work I'll bookmark this If I have any other problems with flags.
    __________________

    Youtube Channel.

    Relevant Advertising!

      #6952    
    Old June 10th, 2012 (5:00 PM).
    dcjboi's Avatar
    dcjboi dcjboi is offline
    With Quiet Courage
       
      Join Date: Dec 2010
      Location: In between Heaven and Earth
      Nature: Timid
      Posts: 420
      I'm having major trouble with this script. I want It to give an option to pick up the pokemon and the thing is the message wont show it just gives the pokemon
      Code:
      '-----------------------
      #org 0x800000
      checkflag 0x228
      if 0x0 goto 0x8800061
      msgbox 0x880006A '"It's an injured Pokemon.\n Should I..."
      checkflag 0x228
      if 0x0 goto 0x8800023
      msgbox 0x88000A0 '"That's okay.\pI'm sure someone else..."
      release
      end
      
      '-----------------------
      #org 0x800061
      msgbox 0x88000D4 '"blackkfrrYou received a Charmander!"
      release
      end
      
      '-----------------------
      #org 0x800023
      givepokemon 0xC5 0x5 0x0 0x0 0x0 0x0
      fanfare 0x13E
      msgbox 0x88000D4 '"blackkfrrYou received a Charmander!"
      waitfanfare
      closeonkeypress
      setflag 0x828
      msgbox 0x88000FA '"blackkfrrWould you like to give a\n..."
      checkflag 0x228
      if 0x0 call 0x880005A
      msgbox 0x8800137 '"I should take it to a/n Pokemon Cen..."
      setflag 0x228
      release
      end
      
      '-----------------------
      #org 0x80005A
      call 0x81A74EB
      return
      
      '-----------------------
      #org 0x1A74EB
      fadescreen 0x1
      special 0x9E
      waitstate
      return
      
      '---------
      #org 0x80006A
      = It's an injured Pokemon.\n Should I take It with me?
      
      #org 0x8000A0
      = That's okay.\pI'm sure someone else will\ntake it.
      
      #org 0x8000D4
      = blackkfrrYou received a Charmander!
      
      #org 0x8000FA
      = blackkfrrWould you like to give a\nnickname to Charmander?
      
      #org 0x800137
      = I should take it to a/n Pokemon Center.
      __________________

        #6953    
      Old June 10th, 2012 (5:25 PM).
      tajaros's Avatar
      tajaros tajaros is offline
      Hi I'm dawg
         
        Join Date: Apr 2012
        Location: Philippines
        Age: 18
        Gender: Male
        Nature: Timid
        Posts: 857
        Send a message via Windows Live Messenger to tajaros
        @dcjboi

        Here I edited your script i highlighted the parts that i edited....

        Quote:
        #dynamic 0x800000

        #org @start
        lock
        msgbox 0x880006A 0x5 '"It's an injured Pokemon.\n Should I..."
        compare 0x800D 0x1
        if 0x1 goto 0x800023
        compare 0x800D 0x0
        if 0x1 goto 0x800061

        end

        #org 0x800061
        msgbox 0x88000A0 0x6 '"That's okay.\pI'm sure someone else..."
        release
        end

        #org 0x800023
        givepokemon 0xC5 0x5 0x0 0x0 0x0 0x0
        fanfare 0x13E
        msgbox 0x88000D4 0x6
        waitfanfare
        closeonkeypress
        setflag 0x828
        msgbox 0x88000FA 0x5
        compare 0x800D 0x1
        if 0x1 goto 0x80005A
        compare 0x800D 0x0
        if 0x1 goto @continue
        release

        end

        #org @continue
        msgbox 0x8800137 0x6 '"I should take it to a/n Pokemon Cen..."
        hidesprite 0x(Person Event no.)
        setflag 0x228
        release
        end

        #org 0x80005A
        call 0x81A74EB
        return

        #org 0x1A74EB
        fadescreen 0x1
        special 0x9E
        waitstate
        goto @continue

        #org 0x80006A
        = It's an injured Pokemon.\n Should I take It with me?

        #org 0x8000A0
        = That's okay.\pI'm sure someone else will\ntake it.

        #org 0x8000D4
        = [black_fr]You received a Charmander!

        #org 0x8000FA
        = [black_fr]Would you like to give a\nnickname to Charmander?

        #org 0x800137
        = I should take it to a/n Pokemon Center.
        You didn't put any msgbox codes in it that's why it didn't worked....

        msgbox codes

        0x2 - Normal msgbox that automatically has faceplayer
        0x3 - Signpost msgbox
        0x4 - Normal msgbox
        0x5 - Yes\No msgbox
        0x6 - Normal msgbox


        hidesprite 0x(Person event. no.) - hides the sprite

        Try putting this script on a POKE BALL with a flag of 228 and input it's person event no. in the hidesprite..... :D

        Hope this helps.. :D
        __________________
          #6954    
        Old June 11th, 2012 (6:43 PM).
        Renegade's Avatar
        Renegade Renegade is offline
        Time for real life...
           
          Join Date: Nov 2011
          Location: United States
          Gender: Male
          Nature: Careful
          Posts: 998
          I'm having a strange problem with this script. Everything works, except for the "warp" command at the end. When it "warps" me, the screen fades to black and then nothing happens. (Like the game freezes on a black screen and doesn't go to map 3.46) Help please?

          Code:
          #dynamic 0x800120
          
          #org @start
          lock
          textcolor 0x0
          message @t1 4
          closeonkeypress
          applymovement 0xFF @m2
          waitmovement 0x0
          applymovement 4 @m1
          waitmovement 0x0
          applymovement 0xFF @m3
          waitmovement 0x0
          message @t2 6
          applymovement 4 @m4
          applymovement 0xFF @m5
          waitmovement 0x0
          message @t3 6
          applymovement 5 @m6
          applymovement 6 @m6
          waitmovement 0x0
          playsong 0x112 0x0
          setweather 0x3
          doweather
          applymovement 5 @m7
          applymovement 6 @m7
          message @t4 6
          message @t5 6
          applymovement 5 @m8
          applymovement 6 @m8
          waitmovement 0x0
          message @t6 6
          applymovement 5 @m9
          applymovement 6 @m9
          message @t7 4
          waitmovement 0x0
          fadescreen 0x1
          hidesprite 0x04
          setflag 0x1203
          hidesprite 0x05
          setflag 0x1204
          hidesprite 0x06
          setflag 0x1205
          fadescreen 0x0
          warp 0x3 0x46 0xFF 0x0C 0x0C
          setvar 0x6004 0x0001
          release
          end
          
          #org @t1
          = ???: Hey! \v\h01!
          
          #org @m1
          #raw 0x1F
          #raw 0x1F
          #raw 0x1F
          #raw 0x1F
          #raw 0x1F
          #raw 0x1F
          #raw 0x1F
          #raw 0x1F
          #raw 0x1E
          #raw 0xFE
          
          #org @m2
          #raw 0x3
          #raw 0xFE
          
          #org @m3
          #raw 0x0
          #raw 0xFE
          
          #org @t2
          = \v\h06: I was wondering when\nyou would wake up.\pI want to head over to Professor\nOak's place and ask if I can have my\lPokèmon yet. We can go together!\pCome on!
          
          #org @m4
          #raw 0x10
          #raw 0x13
          #raw 0x13
          #raw 0x13
          #raw 0x13
          #raw 0x13
          #raw 0x62
          #raw 0xFE
          
          #org @m5
          #raw 0x10
          #raw 0x10
          #raw 0x13
          #raw 0x13
          #raw 0x13
          #raw 0x13
          #raw 0x62
          #raw 0x11
          #raw 0x13
          #raw 0xFE
          
          #org @t3
          = \v\h06: Who are those people...?
          
          #org @m6
          #raw 0x62
          #raw 0x2
          #raw 0xFE
          
          #org @m7
          #raw 0x12
          #raw 0x12
          #raw 0xFE
          
          #org @t4
          = Man: Hm? What do you kids want?\pAre you eavesdropping on us?
          
          #org @t5
          = \v\h06: No. I mean, uhh...
          
          #org @m8
          #raw 0x23
          #raw 0xFE
          
          #org @t6
          = Man: Enough! Take them away,\nGrunt!
          
          #org @m9
          #raw 0x1F
          #raw 0x1F
          #raw 0xFE
          
          #org @t7
          = \v\h06: Wait!
            #6955    
          Old June 11th, 2012 (6:51 PM).
          tajaros's Avatar
          tajaros tajaros is offline
          Hi I'm dawg
             
            Join Date: Apr 2012
            Location: Philippines
            Age: 18
            Gender: Male
            Nature: Timid
            Posts: 857
            Send a message via Windows Live Messenger to tajaros
            Quote:
            Originally Posted by CrystalStatic View Post
            I'm having a strange problem with this script. Everything works, except for the "warp" command at the end. When it "warps" me, the screen fades to black and then nothing happens. (Like the game freezes on a black screen and doesn't go to map 3.46) Help please?

            Code:
            #dynamic 0x800120
            
            #org @start
            lock
            textcolor 0x0
            message @t1 4
            closeonkeypress
            applymovement 0xFF @m2
            waitmovement 0x0
            applymovement 4 @m1
            waitmovement 0x0
            applymovement 0xFF @m3
            waitmovement 0x0
            message @t2 6
            applymovement 4 @m4
            applymovement 0xFF @m5
            waitmovement 0x0
            message @t3 6
            applymovement 5 @m6
            applymovement 6 @m6
            waitmovement 0x0
            playsong 0x112 0x0
            setweather 0x3
            doweather
            applymovement 5 @m7
            applymovement 6 @m7
            message @t4 6
            message @t5 6
            applymovement 5 @m8
            applymovement 6 @m8
            waitmovement 0x0
            message @t6 6
            applymovement 5 @m9
            applymovement 6 @m9
            message @t7 4
            waitmovement 0x0
            fadescreen 0x1
            hidesprite 0x04
            setflag 0x1203
            hidesprite 0x05
            setflag 0x1204
            hidesprite 0x06
            setflag 0x1205
            fadescreen 0x0
            warp 0x3 0x46 0xFF 0x0C 0x0C
            setvar 0x6004 0x0001
            release
            end
            
            #org @t1
            = ???: Hey! \v\h01!
            
            #org @m1
            #raw 0x1F
            #raw 0x1F
            #raw 0x1F
            #raw 0x1F
            #raw 0x1F
            #raw 0x1F
            #raw 0x1F
            #raw 0x1F
            #raw 0x1E
            #raw 0xFE
            
            #org @m2
            #raw 0x3
            #raw 0xFE
            
            #org @m3
            #raw 0x0
            #raw 0xFE
            
            #org @t2
            = \v\h06: I was wondering when\nyou would wake up.\pI want to head over to Professor\nOak's place and ask if I can have my\lPokèmon yet. We can go together!\pCome on!
            
            #org @m4
            #raw 0x10
            #raw 0x13
            #raw 0x13
            #raw 0x13
            #raw 0x13
            #raw 0x13
            #raw 0x62
            #raw 0xFE
            
            #org @m5
            #raw 0x10
            #raw 0x10
            #raw 0x13
            #raw 0x13
            #raw 0x13
            #raw 0x13
            #raw 0x62
            #raw 0x11
            #raw 0x13
            #raw 0xFE
            
            #org @t3
            = \v\h06: Who are those people...?
            
            #org @m6
            #raw 0x62
            #raw 0x2
            #raw 0xFE
            
            #org @m7
            #raw 0x12
            #raw 0x12
            #raw 0xFE
            
            #org @t4
            = Man: Hm? What do you kids want?\pAre you eavesdropping on us?
            
            #org @t5
            = \v\h06: No. I mean, uhh...
            
            #org @m8
            #raw 0x23
            #raw 0xFE
            
            #org @t6
            = Man: Enough! Take them away,\nGrunt!
            
            #org @m9
            #raw 0x1F
            #raw 0x1F
            #raw 0xFE
            
            #org @t7
            = \v\h06: Wait!
            Like i told you in thethethe;s tut just they're on HEX!
            That means it should be 0x2E!

            So your warp code will be warp 0x3 0x2E 0xFF 0x0C 0x0C!

            Hex is like this

            1
            2
            3
            4
            5
            6
            7
            8
            9
            A
            B
            C
            D
            E
            F
            10
            11
            12
            13
            14
            15
            16
            17
            18
            19
            1A
            1B
            .........And so on.... you use XSE so just use the converter there...
            __________________
              #6956    
            Old June 11th, 2012 (7:00 PM). Edited June 11th, 2012 by Renegade.
            Renegade's Avatar
            Renegade Renegade is offline
            Time for real life...
               
              Join Date: Nov 2011
              Location: United States
              Gender: Male
              Nature: Careful
              Posts: 998
              Quote:
              Originally Posted by tajaros View Post
              Like i told you in thethethe;s tut just they're on HEX!
              That means it should be 0x2E!

              So your warp code will be warp 0x3 0x2E 0xFF 0x0C 0x0C!

              Hex is like this

              1
              2
              3
              4
              5
              6
              7
              8
              9
              A
              B
              C
              D
              E
              F
              10
              11
              12
              13
              14
              15
              16
              17
              18
              19
              1A
              1B
              .........And so on.... you use XSE so just use the converter there...
              Oh, lol. Forgot :/ Thanks though!
                #6957    
              Old June 12th, 2012 (11:45 AM).
              vladi1q1's Avatar
              vladi1q1 vladi1q1 is offline
              Mapper 7/10
                 
                Join Date: Sep 2007
                Location: Bulgaria
                Gender:
                Nature: Adamant
                Posts: 48
                Send a message via Windows Live Messenger to vladi1q1
                Game: Pokemon Ruby
                Program: XSE
                Problem: I put it as a [S] tile in Advanced-Map but when I enter in game and step on it the game freezes.
                Code:
                Code:
                '-----------------------
                #org 0x6B1840
                lockall
                msgbox 0x86B1862 '"Lady: You shouldn't go in the\nfore..."
                callstd 0x4
                closeonkeypress
                applymovement MOVE_PLAYER 0x86B189F
                waitmovement 0x0
                releaseall
                end
                
                
                '-----------
                ' Movements
                '-----------
                #org 0x6B189F
                #raw 8 'Step Down (Normal)
                #raw FE 'End of Movements
                
                
                '---------
                ' Strings
                '---------
                #org 0x6B1862
                = Lady: You shouldn't go in the\nforest yet.
                __________________
                  #6958    
                Old June 12th, 2012 (12:50 PM).
                Renegade's Avatar
                Renegade Renegade is offline
                Time for real life...
                   
                  Join Date: Nov 2011
                  Location: United States
                  Gender: Male
                  Nature: Careful
                  Posts: 998
                  Quote:
                  Originally Posted by vladi1q1 View Post
                  Game: Pokemon Ruby
                  Program: XSE
                  Problem: I put it as a [S] tile in Advanced-Map but when I enter in game and step on it the game freezes.
                  Code:
                  Code:
                  '-----------------------
                  #org 0x6B1840
                  lockall
                  msgbox 0x86B1862 '"Lady: You shouldn't go in the\nfore..."
                  callstd 0x4
                  closeonkeypress
                  applymovement MOVE_PLAYER 0x86B189F
                  waitmovement 0x0
                  releaseall
                  end
                  
                  '-----------
                  ' Movements
                  '-----------
                  #org 0x6B189F
                  #raw 8 'Step Down (Normal)
                  #raw FE 'End of Movements
                  
                  
                  '---------
                  ' Strings
                  '---------
                  #org 0x6B1862
                  = Lady: You shouldn't go in the\nforest yet.
                  There is an absence of a "setvar" command at the end of the script. If you don't know about this, there are several tutorials on vars in the tutorials section.
                    #6959    
                  Old June 12th, 2012 (12:53 PM).
                  zova zova is offline
                     
                    Join Date: Jun 2012
                    Gender: Male
                    Posts: 9
                    Honestly, Im confused, I make a new event, now how Do i add my own script to that event? I need all steps please

                    Its Fire Red btw
                      #6960    
                    Old June 12th, 2012 (1:42 PM).
                    Renegade's Avatar
                    Renegade Renegade is offline
                    Time for real life...
                       
                      Join Date: Nov 2011
                      Location: United States
                      Gender: Male
                      Nature: Careful
                      Posts: 998
                      Quote:
                      Originally Posted by zova View Post
                      Honestly, Im confused, I make a new event, now how Do i add my own script to that event? I need all steps please

                      Its Fire Red btw
                      So you don't know about scripting at all? I suggest you practice and start with the basics in the tutorials section or something...
                        #6961    
                      Old June 12th, 2012 (1:46 PM).
                      zova zova is offline
                         
                        Join Date: Jun 2012
                        Gender: Male
                        Posts: 9
                        Ive read the tutorial twice through, and Im still a little confused, how would I go abput making a new script? I know what to write, just not how to assign it to a new event
                          #6962    
                        Old June 12th, 2012 (2:14 PM).
                        destinedjagold's Avatar
                        destinedjagold destinedjagold is offline
                        Oh Hai Thar~
                        • Silver Tier
                         
                        Join Date: May 2007
                        Location: Philippines
                        Age: 26
                        Gender: Male
                        Nature: Careful
                        Posts: 8,507
                        Quote:
                        Originally Posted by zova View Post
                        Ive read the tutorial twice through, and Im still a little confused, how would I go abput making a new script? I know what to write, just not how to assign it to a new event
                        If you're asking about how to put your new script in your ROM hack, then I have a tutorial about that here ---> http://www.pokecommunity.com/showthread.php?t=185188
                        __________________


                        FC: 0061-1111-6462
                        TSV: 1364(X), 0790(OR)

                          #6963    
                        Old June 12th, 2012 (3:44 PM).
                        fozzy's Avatar
                        fozzy fozzy is offline
                           
                          Join Date: Jun 2012
                          Location: dublin
                          Age: 23
                          Gender: Male
                          Nature: Relaxed
                          Posts: 5
                          hey im new to script writing and ive been having problems, the first script i wrote was a basic one and that seemed to work fine, but then i wrote a yes/no script and problems arose.... whenever i pressed compile it said: unknown keyword 'lock' at line 4

                          can anyone help a noob out??
                            #6964    
                          Old June 12th, 2012 (3:59 PM).
                          Renegade's Avatar
                          Renegade Renegade is offline
                          Time for real life...
                             
                            Join Date: Nov 2011
                            Location: United States
                            Gender: Male
                            Nature: Careful
                            Posts: 998
                            Quote:
                            Originally Posted by fozzy View Post
                            hey im new to script writing and ive been having problems, the first script i wrote was a basic one and that seemed to work fine, but then i wrote a yes/no script and problems arose.... whenever i pressed compile it said: unknown keyword 'lock' at line 4

                            can anyone help a noob out??
                            Can you provide the coding you did?
                              #6965    
                            Old June 13th, 2012 (1:43 AM).
                            tajaros's Avatar
                            tajaros tajaros is offline
                            Hi I'm dawg
                               
                              Join Date: Apr 2012
                              Location: Philippines
                              Age: 18
                              Gender: Male
                              Nature: Timid
                              Posts: 857
                              Send a message via Windows Live Messenger to tajaros
                              Quote:
                              Originally Posted by fozzy View Post
                              hey im new to script writing and ive been having problems, the first script i wrote was a basic one and that seemed to work fine, but then i wrote a yes/no script and problems arose.... whenever i pressed compile it said: unknown keyword 'lock' at line 4

                              can anyone help a noob out??
                              We can't help you accurately if you don't post your script...

                              Try retyping the script over again you might have misspelled a command or something here's some that might happen to your script...

                              #dynamic 0x800000

                              #org @script
                              []lock <--- You might have type something wrong

                              If that's not your problem try double checking your script for commands errors...
                              __________________
                                #6966    
                              Old June 13th, 2012 (4:59 AM).
                              fozzy's Avatar
                              fozzy fozzy is offline
                                 
                                Join Date: Jun 2012
                                Location: dublin
                                Age: 23
                                Gender: Male
                                Nature: Relaxed
                                Posts: 5
                                #dynamic 0x800000

                                #org @start
                                lock
                                faceplayer
                                message @tutorial
                                boxset 5
                                compare LASTRESULT 1
                                if b_true goto @yes
                                compare LASTRESULT 0
                                if b_true goto @no
                                release
                                end

                                #org @tutorial
                                = Yes or no?

                                #org @yes
                                message @pressyes
                                boxset 6
                                release
                                end

                                #org @no
                                message @pressno
                                boxset 6
                                release
                                end

                                that was the script i used, then i tried a basic script again and the same problem arose again, even though i used the same script as before (that worked before too) here it is

                                #dynamic 0x2DD100

                                #org @start
                                lock
                                faceplayer
                                msgbox @script 0x6
                                release
                                end

                                #org @script
                                = Hey!\nYou are welcome to PALLET TOWN
                                  #6967    
                                Old June 13th, 2012 (5:31 AM).
                                ADLFM14's Avatar
                                ADLFM14 ADLFM14 is offline
                                Legendary Spriter
                                   
                                  Join Date: May 2012
                                  Location: EGYPT
                                  Gender: Male
                                  Nature: Bold
                                  Posts: 42
                                  i just wanted to ask if there is a command in any script which fades screen and replace an OW Sprite with another and thnx you are always my leader in rom hacking.
                                  __________________
                                  My Tutorials:
                                  Hacking Ruby Title Screen Completely Step By Step
                                  How To Insert An OW Sprite In NSE Classic Step By Step.
                                  Hacks I'm Currently Making


                                  Join My Hacking Team(D.A.T.S)




                                  My deviantART


                                    #6968    
                                  Old June 13th, 2012 (3:17 PM).
                                  Renegade's Avatar
                                  Renegade Renegade is offline
                                  Time for real life...
                                     
                                    Join Date: Nov 2011
                                    Location: United States
                                    Gender: Male
                                    Nature: Careful
                                    Posts: 998
                                    Quote:
                                    Originally Posted by ADLFM14 View Post
                                    i just wanted to ask if there is a command in any script which fades screen and replace an OW Sprite with another and thnx you are always my leader in rom hacking.
                                    You could, while the screen is faded, do a "hidesprite" command on the sprite you want to remove then a "showsprite" command on another person. Then when the screen fades into the normal view it will look like a character transformed or something.
                                      #6969    
                                    Old June 13th, 2012 (11:54 PM). Edited June 14th, 2012 by tajaros.
                                    tajaros's Avatar
                                    tajaros tajaros is offline
                                    Hi I'm dawg
                                       
                                      Join Date: Apr 2012
                                      Location: Philippines
                                      Age: 18
                                      Gender: Male
                                      Nature: Timid
                                      Posts: 857
                                      Send a message via Windows Live Messenger to tajaros
                                      Quote:
                                      Originally Posted by fozzy View Post
                                      #dynamic 0x800000

                                      #org @start
                                      lock
                                      faceplayer
                                      message @tutorial
                                      boxset 5
                                      compare LASTRESULT 1
                                      if b_true goto @yes
                                      compare LASTRESULT 0
                                      if b_true goto @no
                                      release
                                      end

                                      #org @tutorial
                                      = Yes or no?

                                      #org @yes
                                      message @pressyes
                                      boxset 6
                                      release
                                      end

                                      #org @no
                                      message @pressno
                                      boxset 6
                                      release
                                      end

                                      that was the script i used, then i tried a basic script again and the same problem arose again, even though i used the same script as before (that worked before too) here it is

                                      #dynamic 0x2DD100

                                      #org @start
                                      lock
                                      faceplayer
                                      msgbox @script 0x6
                                      release
                                      end

                                      #org @script
                                      = Hey!\nYou are welcome to PALLET TOWN
                                      Of course it wouldn't work instead of using LASTRESULT try using 0x800D but if your using an older version of XSE try downloading the latest one in HACKMEW's toolbox...

                                      LASTRESULT doesn't work for the latest version of XSE anymore...

                                      and also in XSE we don't use b_true or b_false anymore...

                                      b_true = 0x1
                                      b_false = 0x0

                                      So it would be compare 0x800D 0x1 and compare 0x800D 0x0
                                      NOTE: XSE practically focuses in using hex..

                                      Oh and about your msgbox XSE doesn't read boxset 0x6 anymore try using msgbox @pointer 0x6 and that also goes for boxset 5

                                      try using hex on all your values.. :D
                                      __________________
                                        #6970    
                                      Old June 14th, 2012 (1:03 PM). Edited June 14th, 2012 by Renegade.
                                      Renegade's Avatar
                                      Renegade Renegade is offline
                                      Time for real life...
                                         
                                        Join Date: Nov 2011
                                        Location: United States
                                        Gender: Male
                                        Nature: Careful
                                        Posts: 998
                                        This script was working fine until something weird happened. I made another script on a completely different map after this one, and then compiled it. Then, this script started to bug up for... really no reason... The warp at the end of the script isn't working. The whole thing works but when it warps me it goes to a black screen then freezes.

                                        Code:
                                        #dynamic 0x800140
                                        
                                        #org @start
                                        lock
                                        faceplayer
                                        checkflag 0x1211
                                        if 0x01 goto @moveon
                                        checkflag 0x1212
                                        if 0x01 goto @moveon
                                        checkflag 0x1213
                                        if 0x01 goto @moveon
                                        textcolor 0x0
                                        message @t1 6
                                        release
                                        end
                                        
                                        #org @moveon
                                        textcolor 0x0
                                        message @t2 6
                                        applymovement 0xFF @m1
                                        waitmovement 0x0
                                        checkflag 0x1208
                                        if 0x01 goto @charmander
                                        checkflag 0x1209
                                        if 0x01 goto @squirtle
                                        checkflag 0x1210
                                        if 0x01 goto @bulbasaur
                                        end
                                        
                                        #org @charmander
                                        applymovement 6 @m2
                                        waitmovement 0x0
                                        hidesprite 0x04
                                        setflag 0x1214
                                        applymovement 6 @m5
                                        waitmovement 0x0
                                        message @t3 6
                                        goto @fight
                                        
                                        #org @squirtle
                                        applymovement 6 @m3
                                        waitmovement 0x0
                                        hidesprite 0x05
                                        setflag 0x1215
                                        applymovement 6 @m6
                                        waitmovement 0x0
                                        message @t4 6
                                        goto @fight
                                        
                                        #org @bulbasaur
                                        applymovement 6 @m4
                                        waitmovement 0x0
                                        hidesprite 0x03
                                        setflag 0x1216
                                        applymovement 6 @m7
                                        waitmovement 0x0
                                        message @t5 6
                                        goto @fight
                                        
                                        #org @fight
                                        applymovement 6 @m8
                                        applymovement 0xFF @m9
                                        waitmovement 0x0
                                        applymovement 9 @m10
                                        message @t6 4
                                        closeonkeypress
                                        applymovement 6 @m11
                                        applymovement 0xFF @m11
                                        applymovement 9 @m12
                                        waitmovement 0x0
                                        message @t7 6
                                        applymovement 6 @m13
                                        applymovement 0xFF @m14
                                        waitmovement 0x0
                                        message @t8 6
                                        applymovement 6 @m15
                                        applymovement 0xFF @m15
                                        applymovement 9 @m16
                                        waitmovement 0x0
                                        trainerbattle 0x09 0x01 0x0 @win @lose
                                        message @later 6
                                        applymovement 9 @m17
                                        waitmovement 0x0
                                        applymovement 9 @m18
                                        waitmovement 0x0
                                        hidesprite 0x09
                                        setflag 0x1217
                                        applymovement 0xFF @m14
                                        applymovement 6 @m13
                                        waitmovement 0x0
                                        message @t9 6
                                        applymovement 6 @m19
                                        waitmovement 0x0
                                        hidesprite 0x06
                                        setflag 0x1218
                                        applymovement 0xFF @m20
                                        waitmovement 0x0
                                        warp 0x4 0x3 0xFF 0x6 0x6
                                        release
                                        end
                                        
                                        #org @m19
                                        #raw 0x1F
                                        #raw 0x1F
                                        #raw 0x1F
                                        #raw 0x1F
                                        #raw 0xFE
                                        
                                        #org @m20
                                        #raw 0x1D
                                        #raw 0x1F
                                        #raw 0x1F
                                        #raw 0x1F
                                        #raw 0x1F
                                        #raw 0xFE
                                        
                                        #org @t9
                                        = \v\h01, that was awesome!\nNow let's get out of here\lbefore another creepy creep finds\lus.
                                        
                                        #org @m18
                                        #raw 0x1D
                                        #raw 0x1D
                                        #raw 0x1F
                                        #raw 0x1F
                                        #raw 0x1F
                                        #raw 0x1F
                                        #raw 0x1E
                                        #raw 0x1F
                                        #raw 0x1F
                                        #raw 0xFE
                                        
                                        #org @m17
                                        #raw 0x34
                                        #raw 0xFE
                                        
                                        #org @later
                                        = Scientist: Err... I can't win.\nFine, leave then!
                                        
                                        #org @win
                                        = Ack, I can't stop you...
                                        
                                        #org @lose
                                        = Wow, you're really bad...
                                        
                                        #org @m15
                                        #raw 0x3
                                        #raw 0xFE
                                        
                                        #org @m16
                                        #raw 0x1F
                                        #raw 0xFE
                                        
                                        #org @t8
                                        = \v\h06: Come on, \v\h01.\pYou can do this!
                                        
                                        #org @m13
                                        #raw 0x1
                                        #raw 0xFE
                                        
                                        #org @m14
                                        #raw 0x0
                                        #raw 0xFE
                                        
                                        #org @t7
                                        = Scientist: You're not going\nanywhere!\p\v\h06: What? Fine, \v\h01\nwill destroy you, then!
                                        
                                        #org @m12
                                        #raw 0x1F
                                        #raw 0x1F
                                        #raw 0x1D
                                        #raw 0x1F
                                        #raw 0xFE
                                        
                                        #org @m11
                                        #raw 0x3
                                        #raw 0x62
                                        #raw 0xFE
                                        
                                        #org @t6
                                        = ???: HAULT!
                                        
                                        #org @m10
                                        #raw 0x2
                                        #raw 0x62
                                        #raw 0xFE
                                        
                                        #org @m8
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0x11
                                        #raw 0xFE
                                        
                                        #org @m9
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0x11
                                        #raw 0x11
                                        #raw 0xFE
                                        
                                        #org @t3
                                        = \v\h06: I chose a Charmander!\nNow let's get out of here.
                                        
                                        #org @t4
                                        = \v\h06: I chose a Squirtle!\nNow let's get out of here.
                                        
                                        #org @t5
                                        = \v\h06: I chose a Bulbasaur!\nNow let's get out of here.
                                        
                                        #org @m5
                                        #raw 0x12
                                        #raw 0xFE
                                        
                                        #org @m6
                                        #raw 0x12
                                        #raw 0x12
                                        #raw 0xFE
                                        
                                        #org @m7
                                        #raw 0x2
                                        #raw 0xFE
                                        
                                        #org @m4
                                        #raw 0x11
                                        #raw 0xFE
                                        
                                        #org @m3
                                        #raw 0x11
                                        #raw 0x13
                                        #raw 0x13
                                        #raw 0x1
                                        #raw 0xFE
                                        
                                        #org @m2
                                        #raw 0x11
                                        #raw 0x13
                                        #raw 0x1
                                        #raw 0xFE
                                        
                                        #org @t1
                                        = \v\h06: Go ahead and choose\na Pokèmon, \v\h01.
                                        
                                        #org @t2
                                        = Haha, nice choice \v\h01!\nNow it's my turn!
                                        
                                        #org @m1
                                        #raw 0x12
                                        #raw 0x3
                                        #raw 0xFE
                                        After the warp is complete it is supposed to start a seperate script on a new map. The 2nd script is a level scripts. I don't know if maybe the 2nd script is somehow messing up the first one? Here's the 2nd one if needed:

                                        Code:
                                        #dynamic 0x800230
                                        
                                        #org @start
                                        lock
                                        applymovement 0xFF @m1
                                        waitmovement 0x0
                                        textcolor 0x0
                                        message @t1 6
                                        fadescreen 0x1
                                        pause 0x30
                                        textcolor 0x2
                                        message @t2 6
                                        pause 0x30
                                        fadescreen 0x0
                                        pause 0x10
                                        applymovement 11 @m2
                                        waitmovement 0x0
                                        textcolor 0x0
                                        message @t3 6
                                        pause 0x20
                                        applymovement 11 @m3
                                        waitmovement 0x0
                                        message @t4 6
                                        applymovement 12 @m4
                                        applymovement 0xFF @m5
                                        waitmovement 0x0
                                        message @t5 6
                                        applymovement 12 @m1
                                        applymovement 0xFF @m1
                                        waitmovement 0x0
                                        message @t6 6
                                        fadesong 0x159
                                        message @t7 6
                                        fadedefault
                                        applymovement 12 @m6
                                        applymovement 0xFF @m5
                                        waitmovement 0x0
                                        message @t8 6
                                        applymovement 12 @m1
                                        applymovement 0xFF @m1
                                        waitmovement 0x0
                                        message @t9 6
                                        applymovement 12 @m7
                                        waitmovement 0x0
                                        hidesprite 0x12
                                        setflag 0x1219
                                        applymovement 0xFF @m8
                                        waitmovement 0x0
                                        hidesprite 0xFF
                                        special 0x113
                                        applymovement 0x7F @s1
                                        waitmovement 0x0
                                        special 0x114
                                        message @t10 4
                                        closeonkeypress
                                        fadescreen 0x1
                                        pause 0x10
                                        warp 0x3 0x0 0x3 0x0 0x0
                                        setvar 0x6010 0x0001
                                        release
                                        end
                                        
                                        #org @t10
                                        = Professor Oak: Hmm... Maybe I\nshould have told them... Hmm...
                                        
                                        #org @s1
                                        #raw 0x11
                                        #raw 0x11
                                        #raw 0x11
                                        #raw 0x11
                                        #raw 0xFE
                                        
                                        #org @m8
                                        #raw 0x10
                                        #raw 0x10
                                        #raw 0x10
                                        #raw 0x10
                                        #raw 0x10
                                        #raw 0x10
                                        #raw 0xFE
                                        
                                        #org @m7
                                        #raw 0x1D
                                        #raw 0x20
                                        #raw 0x1D
                                        #raw 0x1D
                                        #raw 0x1D
                                        #raw 0x1D
                                        #raw 0x1D
                                        #raw 0x1D
                                        #raw 0xFE
                                        
                                        #org @t9
                                        = Thanks for everything, Professor!\nSee ya!
                                        
                                        #org @t8
                                        = \v\h06: Yes! Let's go,\n\v\h01!
                                        
                                        #org @m6
                                        #raw 0x62
                                        #raw 0x3
                                        #raw 0xFE
                                        
                                        #org @t7
                                        = Professor Oak: You need to\nknow that whatever problems happen\lfrom here on out, you need\lto be able to overcome them,\ljust as you overcame your\lsituation with the...\pOh! I forgot to tell you,\nthe creepy people you had to\ldeal with before were members\lof an organization called\lTeam Rocket. They steal Pokèmon\lfrom trainers and use them for\lno good.\pAnyways, good luck to you\nboth!
                                        
                                        #org @t6
                                        = Of course we do, Professor!\pProfessor Oak: Great! But you\nneed to remember somthing.\p\v\h06: What's that?
                                        
                                        #org @m5
                                        #raw 0x2
                                        #raw 0xFE
                                        
                                        #org @t5
                                        = \v\h06: Hear that , \v\h01?\nWe're going on an adventure!
                                        
                                        #org @m4
                                        #raw 0x3
                                        #raw 0xFE
                                        
                                        #org @t4
                                        = Well, that whole experience\nseems very scary indeed, but\lwe have to keep moving on.\pRight?\p\v\h06: Umm... I guess...\pProfessor Oak: Good! Now I am\nready to ask you the question\lthat I was waiting to ask you.\p\v\h06: What?\pProfessor Oak: Do you, \v\h06,\nand \v\h01, want to go\lon a Pokèmon journey?
                                        
                                        #org @m3
                                        #raw 0x0
                                        #raw 0xFE
                                        
                                        #org @t3
                                        = Professor Oak: Hmm...\pSo Team Rocket has begun their\nplans again...
                                        
                                        #org @m2
                                        #raw 0x1
                                        #raw 0xFE
                                        
                                        #org @t2
                                        = Later that same 10 minutes\nor so...
                                        
                                        #org @t1
                                        = Professor Oak: Hello, boys.\nWhat brings you here?\p\v\h06: Professor, you'll never\nbelieve what happened to \v\h01\land me!
                                        
                                        #org @m1
                                        #raw 0x1
                                        #raw 0xFE
                                        Thanks.
                                          #6971    
                                        Old June 15th, 2012 (2:58 AM). Edited June 15th, 2012 by tajaros.
                                        tajaros's Avatar
                                        tajaros tajaros is offline
                                        Hi I'm dawg
                                           
                                          Join Date: Apr 2012
                                          Location: Philippines
                                          Age: 18
                                          Gender: Male
                                          Nature: Timid
                                          Posts: 857
                                          Send a message via Windows Live Messenger to tajaros
                                          Quote:
                                          Originally Posted by CrystalStatic View Post
                                          This script was working fine until something weird happened. I made another script on a completely different map after this one, and then compiled it. Then, this script started to bug up for... really no reason... The warp at the end of the script isn't working. The whole thing works but when it warps me it goes to a black screen then freezes.

                                          Code:
                                          #dynamic 0x800140
                                          
                                          #org @start
                                          lock
                                          faceplayer
                                          checkflag 0x1211
                                          if 0x01 goto @moveon
                                          checkflag 0x1212
                                          if 0x01 goto @moveon
                                          checkflag 0x1213
                                          if 0x01 goto @moveon
                                          textcolor 0x0
                                          message @t1 6
                                          release
                                          end
                                          
                                          #org @moveon
                                          textcolor 0x0
                                          message @t2 6
                                          applymovement 0xFF @m1
                                          waitmovement 0x0
                                          checkflag 0x1208
                                          if 0x01 goto @charmander
                                          checkflag 0x1209
                                          if 0x01 goto @squirtle
                                          checkflag 0x1210
                                          if 0x01 goto @bulbasaur
                                          end
                                          
                                          #org @charmander
                                          applymovement 6 @m2
                                          waitmovement 0x0
                                          hidesprite 0x04
                                          setflag 0x1214
                                          applymovement 6 @m5
                                          waitmovement 0x0
                                          message @t3 6
                                          goto @fight
                                          
                                          #org @squirtle
                                          applymovement 6 @m3
                                          waitmovement 0x0
                                          hidesprite 0x05
                                          setflag 0x1215
                                          applymovement 6 @m6
                                          waitmovement 0x0
                                          message @t4 6
                                          goto @fight
                                          
                                          #org @bulbasaur
                                          applymovement 6 @m4
                                          waitmovement 0x0
                                          hidesprite 0x03
                                          setflag 0x1216
                                          applymovement 6 @m7
                                          waitmovement 0x0
                                          message @t5 6
                                          goto @fight
                                          
                                          #org @fight
                                          applymovement 6 @m8
                                          applymovement 0xFF @m9
                                          waitmovement 0x0
                                          applymovement 9 @m10
                                          message @t6 4
                                          closeonkeypress
                                          applymovement 6 @m11
                                          applymovement 0xFF @m11
                                          applymovement 9 @m12
                                          waitmovement 0x0
                                          message @t7 6
                                          applymovement 6 @m13
                                          applymovement 0xFF @m14
                                          waitmovement 0x0
                                          message @t8 6
                                          applymovement 6 @m15
                                          applymovement 0xFF @m15
                                          applymovement 9 @m16
                                          waitmovement 0x0
                                          trainerbattle 0x09 0x01 0x0 @win @lose
                                          message @later 6
                                          applymovement 9 @m17
                                          waitmovement 0x0
                                          applymovement 9 @m18
                                          waitmovement 0x0
                                          hidesprite 0x09
                                          setflag 0x1217
                                          applymovement 0xFF @m14
                                          applymovement 6 @m13
                                          waitmovement 0x0
                                          message @t9 6
                                          applymovement 6 @m19
                                          waitmovement 0x0
                                          hidesprite 0x06
                                          setflag 0x1218
                                          applymovement 0xFF @m20
                                          waitmovement 0x0
                                          warp 0x4 0x3 0xFF 0x6 0x6
                                          release
                                          end
                                          
                                          #org @m19
                                          #raw 0x1F
                                          #raw 0x1F
                                          #raw 0x1F
                                          #raw 0x1F
                                          #raw 0xFE
                                          
                                          #org @m20
                                          #raw 0x1D
                                          #raw 0x1F
                                          #raw 0x1F
                                          #raw 0x1F
                                          #raw 0x1F
                                          #raw 0xFE
                                          
                                          #org @t9
                                          = \v\h01, that was awesome!\nNow let's get out of here\lbefore another creepy creep finds\lus.
                                          
                                          #org @m18
                                          #raw 0x1D
                                          #raw 0x1D
                                          #raw 0x1F
                                          #raw 0x1F
                                          #raw 0x1F
                                          #raw 0x1F
                                          #raw 0x1E
                                          #raw 0x1F
                                          #raw 0x1F
                                          #raw 0xFE
                                          
                                          #org @m17
                                          #raw 0x34
                                          #raw 0xFE
                                          
                                          #org @later
                                          = Scientist: Err... I can't win.\nFine, leave then!
                                          
                                          #org @win
                                          = Ack, I can't stop you...
                                          
                                          #org @lose
                                          = Wow, you're really bad...
                                          
                                          #org @m15
                                          #raw 0x3
                                          #raw 0xFE
                                          
                                          #org @m16
                                          #raw 0x1F
                                          #raw 0xFE
                                          
                                          #org @t8
                                          = \v\h06: Come on, \v\h01.\pYou can do this!
                                          
                                          #org @m13
                                          #raw 0x1
                                          #raw 0xFE
                                          
                                          #org @m14
                                          #raw 0x0
                                          #raw 0xFE
                                          
                                          #org @t7
                                          = Scientist: You're not going\nanywhere!\p\v\h06: What? Fine, \v\h01\nwill destroy you, then!
                                          
                                          #org @m12
                                          #raw 0x1F
                                          #raw 0x1F
                                          #raw 0x1D
                                          #raw 0x1F
                                          #raw 0xFE
                                          
                                          #org @m11
                                          #raw 0x3
                                          #raw 0x62
                                          #raw 0xFE
                                          
                                          #org @t6
                                          = ???: HAULT!
                                          
                                          #org @m10
                                          #raw 0x2
                                          #raw 0x62
                                          #raw 0xFE
                                          
                                          #org @m8
                                          #raw 0x12
                                          #raw 0x12
                                          #raw 0x12
                                          #raw 0x11
                                          #raw 0xFE
                                          
                                          #org @m9
                                          #raw 0x12
                                          #raw 0x12
                                          #raw 0x11
                                          #raw 0x11
                                          #raw 0xFE
                                          
                                          #org @t3
                                          = \v\h06: I chose a Charmander!\nNow let's get out of here.
                                          
                                          #org @t4
                                          = \v\h06: I chose a Squirtle!\nNow let's get out of here.
                                          
                                          #org @t5
                                          = \v\h06: I chose a Bulbasaur!\nNow let's get out of here.
                                          
                                          #org @m5
                                          #raw 0x12
                                          #raw 0xFE
                                          
                                          #org @m6
                                          #raw 0x12
                                          #raw 0x12
                                          #raw 0xFE
                                          
                                          #org @m7
                                          #raw 0x2
                                          #raw 0xFE
                                          
                                          #org @m4
                                          #raw 0x11
                                          #raw 0xFE
                                          
                                          #org @m3
                                          #raw 0x11
                                          #raw 0x13
                                          #raw 0x13
                                          #raw 0x1
                                          #raw 0xFE
                                          
                                          #org @m2
                                          #raw 0x11
                                          #raw 0x13
                                          #raw 0x1
                                          #raw 0xFE
                                          
                                          #org @t1
                                          = \v\h06: Go ahead and choose\na Pokèmon, \v\h01.
                                          
                                          #org @t2
                                          = Haha, nice choice \v\h01!\nNow it's my turn!
                                          
                                          #org @m1
                                          #raw 0x12
                                          #raw 0x3
                                          #raw 0xFE
                                          After the warp is complete it is supposed to start a seperate script on a new map. The 2nd script is a level scripts. I don't know if maybe the 2nd script is somehow messing up the first one? Here's the 2nd one if needed:

                                          Code:
                                          #dynamic 0x800230
                                          
                                          #org @start
                                          lock
                                          applymovement 0xFF @m1
                                          waitmovement 0x0
                                          textcolor 0x0
                                          message @t1 6
                                          fadescreen 0x1
                                          pause 0x30
                                          textcolor 0x2
                                          message @t2 6
                                          pause 0x30
                                          fadescreen 0x0
                                          pause 0x10
                                          applymovement 11 @m2
                                          waitmovement 0x0
                                          textcolor 0x0
                                          message @t3 6
                                          pause 0x20
                                          applymovement 11 @m3
                                          waitmovement 0x0
                                          message @t4 6
                                          applymovement 12 @m4
                                          applymovement 0xFF @m5
                                          waitmovement 0x0
                                          message @t5 6
                                          applymovement 12 @m1
                                          applymovement 0xFF @m1
                                          waitmovement 0x0
                                          message @t6 6
                                          fadesong 0x159
                                          message @t7 6
                                          fadedefault
                                          applymovement 12 @m6
                                          applymovement 0xFF @m5
                                          waitmovement 0x0
                                          message @t8 6
                                          applymovement 12 @m1
                                          applymovement 0xFF @m1
                                          waitmovement 0x0
                                          message @t9 6
                                          applymovement 12 @m7
                                          waitmovement 0x0
                                          hidesprite 0x12
                                          setflag 0x1219
                                          applymovement 0xFF @m8
                                          waitmovement 0x0
                                          hidesprite 0xFF
                                          special 0x113
                                          applymovement 0x7F @s1
                                          waitmovement 0x0
                                          special 0x114
                                          message @t10 4
                                          closeonkeypress
                                          fadescreen 0x1
                                          pause 0x10
                                          warp 0x3 0x0 0x3 0x0 0x0
                                          setvar 0x6010 0x0001
                                          release
                                          end
                                          
                                          #org @t10
                                          = Professor Oak: Hmm... Maybe I\nshould have told them... Hmm...
                                          
                                          #org @s1
                                          #raw 0x11
                                          #raw 0x11
                                          #raw 0x11
                                          #raw 0x11
                                          #raw 0xFE
                                          
                                          #org @m8
                                          #raw 0x10
                                          #raw 0x10
                                          #raw 0x10
                                          #raw 0x10
                                          #raw 0x10
                                          #raw 0x10
                                          #raw 0xFE
                                          
                                          #org @m7
                                          #raw 0x1D
                                          #raw 0x20
                                          #raw 0x1D
                                          #raw 0x1D
                                          #raw 0x1D
                                          #raw 0x1D
                                          #raw 0x1D
                                          #raw 0x1D
                                          #raw 0xFE
                                          
                                          #org @t9
                                          = Thanks for everything, Professor!\nSee ya!
                                          
                                          #org @t8
                                          = \v\h06: Yes! Let's go,\n\v\h01!
                                          
                                          #org @m6
                                          #raw 0x62
                                          #raw 0x3
                                          #raw 0xFE
                                          
                                          #org @t7
                                          = Professor Oak: You need to\nknow that whatever problems happen\lfrom here on out, you need\lto be able to overcome them,\ljust as you overcame your\lsituation with the...\pOh! I forgot to tell you,\nthe creepy people you had to\ldeal with before were members\lof an organization called\lTeam Rocket. They steal Pokèmon\lfrom trainers and use them for\lno good.\pAnyways, good luck to you\nboth!
                                          
                                          #org @t6
                                          = Of course we do, Professor!\pProfessor Oak: Great! But you\nneed to remember somthing.\p\v\h06: What's that?
                                          
                                          #org @m5
                                          #raw 0x2
                                          #raw 0xFE
                                          
                                          #org @t5
                                          = \v\h06: Hear that , \v\h01?\nWe're going on an adventure!
                                          
                                          #org @m4
                                          #raw 0x3
                                          #raw 0xFE
                                          
                                          #org @t4
                                          = Well, that whole experience\nseems very scary indeed, but\lwe have to keep moving on.\pRight?\p\v\h06: Umm... I guess...\pProfessor Oak: Good! Now I am\nready to ask you the question\lthat I was waiting to ask you.\p\v\h06: What?\pProfessor Oak: Do you, \v\h06,\nand \v\h01, want to go\lon a Pokèmon journey?
                                          
                                          #org @m3
                                          #raw 0x0
                                          #raw 0xFE
                                          
                                          #org @t3
                                          = Professor Oak: Hmm...\pSo Team Rocket has begun their\nplans again...
                                          
                                          #org @m2
                                          #raw 0x1
                                          #raw 0xFE
                                          
                                          #org @t2
                                          = Later that same 10 minutes\nor so...
                                          
                                          #org @t1
                                          = Professor Oak: Hello, boys.\nWhat brings you here?\p\v\h06: Professor, you'll never\nbelieve what happened to \v\h01\land me!
                                          
                                          #org @m1
                                          #raw 0x1
                                          #raw 0xFE
                                          Thanks.
                                          No wonder it doesn't why did you make the warp 0x4 0x3 0xFF 0x6 0x6 are you going to warp number 255?!

                                          And you don't need to put those 0x6 anymore just make them 0x0 0x0

                                          Here's the code to fix that
                                          warp [map bank] [map number] [warp number] [extra, for now] [extra, for now]

                                          And also refrain from using decimals in XSE like what you did in your msgbox codes...

                                          EDIT: Forgot it was a sprite position warp code I saw that you used flags in 4 digits please refrain from doing that just use 3 digits as the digits for your flags and please do everything in hex..
                                          __________________
                                            #6972    
                                          Old June 15th, 2012 (4:06 AM).
                                          Mana's Avatar
                                          Mana Mana is online now
                                          • Platinum Tier
                                           
                                          Join Date: Jan 2009
                                          Location: UK
                                          Gender: Female
                                          Posts: 10,006
                                          Quote:
                                          Originally Posted by tajaros View Post
                                          No wonder it doesn't why did you make the warp 0x4 0x3 0xFF 0x6 0x6 are you going to warp number 255?!

                                          And you don't need to put those 0x6 anymore just make them 0x0 0x0

                                          Here's the code to fix that
                                          warp [map bank] [map number] [warp number] [extra, for now] [extra, for now]

                                          And also refrain from using decimals in XSE like what you did in your msgbox codes...

                                          EDIT: Forgot it was a sprite position warp code I saw that you used flags in 4 digits please refrain from doing that just use 3 digits as the digits for your flags and please do everything in hex..

                                          If you're going to try and help people I recommend you read some scripting tutorials

                                          warp 0x4 0x3 0xFF 0x6 0x6 <= Perfectly legitimate 'warp to location (6,6)' command.

                                          @CrystalStatic

                                          If you decompile the script from A-Map does the ending of the script change? Alternatively the second script may not be inserted properly, so when warping to that map it makes the screen go black.

                                          Insertion/compiling is probably the reason here.
                                            #6973    
                                          Old June 15th, 2012 (4:14 AM).
                                          tajaros's Avatar
                                          tajaros tajaros is offline
                                          Hi I'm dawg
                                             
                                            Join Date: Apr 2012
                                            Location: Philippines
                                            Age: 18
                                            Gender: Male
                                            Nature: Timid
                                            Posts: 857
                                            Send a message via Windows Live Messenger to tajaros
                                            @swiftsign

                                            didn't you read my edited post?

                                            I forgot about the warp position thingy so sorry about that...
                                            __________________
                                              #6974    
                                            Old June 15th, 2012 (3:05 PM).
                                            Teh Blazer's Avatar
                                            Teh Blazer Teh Blazer is offline
                                            Divider of Zero
                                               
                                              Join Date: Feb 2009
                                              Location: 'MERICA
                                              Age: 21
                                              Gender: Male
                                              Nature: Relaxed
                                              Posts: 767
                                              Hey, is there a command that can change the overworld sprite of an NPC to another? I couldn't find one, but you never know.
                                              __________________
                                              Being a hero is overrated anyways
                                                #6975    
                                              Old June 15th, 2012 (3:16 PM).
                                              Renegade's Avatar
                                              Renegade Renegade is offline
                                              Time for real life...
                                                 
                                                Join Date: Nov 2011
                                                Location: United States
                                                Gender: Male
                                                Nature: Careful
                                                Posts: 998
                                                Quote:
                                                Originally Posted by Teh Blazer View Post
                                                Hey, is there a command that can change the overworld sprite of an NPC to another? I couldn't find one, but you never know.
                                                You can do a "hidesprite" command on the sprite you want to change then right after that command do a "showsprite" command on the sprite you want the 1st sprite to change into.

                                                EX:

                                                ......
                                                hidesprite 0x03
                                                setflag 0x1200
                                                showsprite 0x04
                                                ......
                                                Closed Thread
                                                Quick Reply

                                                Sponsored Links
                                                Thread Tools

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

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

                                                Forum Jump


                                                All times are GMT -8. The time now is 9:55 AM.