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

TrollandToad.com
Closed Thread
 
Thread Tools
  #8801    
Old September 14th, 2013 (12:43 PM).
pokefreake's Avatar
pokefreake pokefreake is offline
     
    Join Date: Nov 2012
    Gender: Male
    Posts: 69
    Does the player sprite have a number?
    Is there a command to switch one sprite with another?

    Relevant Advertising!

      #8802    
    Old September 14th, 2013 (12:52 PM).
    Telinc1's Avatar
    Telinc1 Telinc1 is offline
    Weirdo Extraordinaire
       
      Join Date: Jun 2013
      Location: Sofia, Bulgaria
      Gender: Male
      Nature: Bold
      Posts: 167
      Quote:
      Originally Posted by pokefreake View Post
      Does the player sprite have a number?
      If you're talking about the commands applymovement, hidesprite, etc., the sprite number of the player is 0xFF. You can also use MOVE_PLAYER if you're using XSE.
      __________________

      Check out my hacks by clicking on the userbar!
      Check out my new website (this link now works!)!
        #8803    
      Old September 14th, 2013 (6:39 PM).
      pokefreake's Avatar
      pokefreake pokefreake is offline
         
        Join Date: Nov 2012
        Gender: Male
        Posts: 69
        For some reason my map script isn't working. The beginning of the script works, but after the trainer battle the rest of the script stops. I tried having all of this in one script and that didn't work. Then I tried making two scripts. The first script had a value of 0 and the second one had a value of 1. That didn't work either. Any ideas?

        First script:
        Spoiler:

        #dyn 0x740000
        #org @start
        lockall
        msgbox @Hey
        callstd MSG_NOCLOSE
        applymovement PLAYER @FirstM
        pauseevent 0x1
        closemsg
        message @MeijiCapture //Edit
        callstd MSG_NOCLOSE
        pause 0x1
        closemsg
        addpokemon PIKACHU 0x5 LEFTOVERS 0 0 0
        fanfare 0x101
        waitfanfare
        fadedefault
        addvar 0x4011 0x1
        trainerbattle 0x0 0x001 0x1 @intro @defeat
        releaseall
        end


        #org @Hey
        = What's going on over there?

        #org @MeijiCapture
        = Proffessor you're under arrest.

        #org @intro
        = I'll finish you!

        #org @defeat
        = What? Impossible!

        #org @FirstM
        m walk_down walk_down walk_down walk_left walk_left walk_left walk_up walk_up walk_up walk_up walk_left look_up end


        Second:
        Spoiler:

        #dyn 0x740000
        #org @start
        lockall
        msgbox @afterwards
        callstd msg_normal
        fadescreen FADEOUT_BLACK
        disappear 0x3
        applymovement 0x2 @DefeatGrunt1
        applymovement PLAYER @DefeatGrunt2
        fadescreen FADEIN_BLACK
        msgbox @GruntDefeated //Edit
        callstd msg_normal
        fadescreen FADEOUT_BLACK
        disappear 0x1
        disappear 0x2
        fadescreen FADEIN_BLACK
        addvar 0x4011 0x1
        releaseall
        end

        #org @afterwards
        = Beaten! By a child!?\nI guess I should be going\nnow! Pidgey use fly.

        #org @GruntDefeated
        = Now I should tell you what to do.

        #org @DefeatGrunt1
        m look_right end

        #org @DefeatGrunt2
        m look_right end
          #8804    
        Old September 14th, 2013 (7:01 PM).
        destinedjagold's Avatar
        destinedjagold destinedjagold is offline
        Oh Hai Thar~
        • Silver Tier
         
        Join Date: May 2007
        Location: Philippines
        Age: 27
        Gender: Male
        Nature: Careful
        Posts: 8,573
        Quote:
        Originally Posted by pokefreake View Post
        For some reason my map script isn't working. The beginning of the script works, but after the trainer battle the rest of the script stops. I tried having all of this in one script and that didn't work. Then I tried making two scripts. The first script had a value of 0 and the second one had a value of 1. That didn't work either. Any ideas?

        First script:
        Spoiler:

        #dyn 0x740000
        #org @start
        lockall
        msgbox @Hey
        callstd MSG_NOCLOSE
        applymovement PLAYER @FirstM
        pauseevent 0x1
        closemsg
        message @MeijiCapture //Edit
        callstd MSG_NOCLOSE
        pause 0x1
        closemsg
        addpokemon PIKACHU 0x5 LEFTOVERS 0 0 0
        fanfare 0x101
        waitfanfare
        fadedefault
        addvar 0x4011 0x1
        trainerbattle 0x0 0x001 0x1 @intro @defeat
        releaseall
        end


        #org @Hey
        = What's going on over there?

        #org @MeijiCapture
        = Proffessor you're under arrest.

        #org @intro
        = I'll finish you!

        #org @defeat
        = What? Impossible!

        #org @FirstM
        m walk_down walk_down walk_down walk_left walk_left walk_left walk_up walk_up walk_up walk_up walk_left look_up end


        Second:
        Spoiler:

        #dyn 0x740000
        #org @start
        lockall
        msgbox @afterwards
        callstd msg_normal
        fadescreen FADEOUT_BLACK
        disappear 0x3
        applymovement 0x2 @DefeatGrunt1
        applymovement PLAYER @DefeatGrunt2
        fadescreen FADEIN_BLACK
        msgbox @GruntDefeated //Edit
        callstd msg_normal
        fadescreen FADEOUT_BLACK
        disappear 0x1
        disappear 0x2
        fadescreen FADEIN_BLACK
        addvar 0x4011 0x1
        releaseall
        end

        #org @afterwards
        = Beaten! By a child!?\nI guess I should be going\nnow! Pidgey use fly.

        #org @GruntDefeated
        = Now I should tell you what to do.

        #org @DefeatGrunt1
        m look_right end

        #org @DefeatGrunt2
        m look_right end
        Turn it into one script.
        Code:
        #dyn 0x740000
        #org @start
        lockall
        msgbox @Hey
        callstd MSG_NOCLOSE
        applymovement PLAYER @FirstM
        pauseevent 0x1
        closemsg
        message @MeijiCapture //Edit
        callstd MSG_NOCLOSE
        pause 0x1
        closemsg
        addpokemon PIKACHU 0x5 LEFTOVERS 0 0 0
        fanfare 0x101
        waitfanfare
        fadedefault
        addvar 0x4011 0x1
        trainerbattle 0x1 0x001 0x1 @intro @defeat @continue
        end 
        
        #org @Hey
        = What's going on over there?
        
        #org @MeijiCapture
        = Proffessor you're under arrest.
        
        #org @intro
        = I'll finish you!
        
        #org @defeat
        = What? Impossible!
        
        #org @FirstM
        m walk_down walk_down walk_down walk_left walk_left walk_left walk_up walk_up walk_up walk_up walk_left look_up end
        
        #org @continue
        lockall
        msgbox @afterwards
        callstd msg_normal
        fadescreen FADEOUT_BLACK
        disappear 0x3
        applymovement 0x2 @DefeatGrunt1
        applymovement PLAYER @DefeatGrunt2
        fadescreen FADEIN_BLACK
        msgbox @GruntDefeated //Edit
        callstd msg_normal
        fadescreen FADEOUT_BLACK
        disappear 0x1
        disappear 0x2
        fadescreen FADEIN_BLACK
        addvar 0x4011 0x1
        releaseall
        end 
        
        #org @afterwards
        = Beaten! By a child!?\nI guess I should be going\nnow! Pidgey use fly.
        
        #org @GruntDefeated
        = Now I should tell you what to do.
        
        #org @DefeatGrunt1
        m look_right end
        
        #org @DefeatGrunt2
        m look_right end
        Use 0x1 in trainerbattles if you want other things to happen after a trainer battle.
        __________________


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

          #8805    
        Old September 14th, 2013 (7:31 PM).
        karatekid552's Avatar
        karatekid552 karatekid552 is offline
        What happens if I push it?....
           
          Join Date: Nov 2012
          Location: Do you really want to know? Really?
          Gender: Male
          Nature: Bold
          Posts: 1,766
          Quote:
          Originally Posted by destinedjagold View Post
          Turn it into one script.
          Code:
          #dyn 0x740000
          #org @start
          lockall
          msgbox @Hey
          callstd MSG_NOCLOSE
          applymovement PLAYER @FirstM
          pauseevent 0x1
          closemsg
          message @MeijiCapture //Edit
          callstd MSG_NOCLOSE
          pause 0x1
          closemsg
          addpokemon PIKACHU 0x5 LEFTOVERS 0 0 0
          fanfare 0x101
          waitfanfare
          fadedefault
          addvar 0x4011 0x1
          trainerbattle 0x1 0x001 0x1 @intro @defeat @continue
          end 
          
          #org @Hey
          = What's going on over there?
          
          #org @MeijiCapture
          = Proffessor you're under arrest.
          
          #org @intro
          = I'll finish you!
          
          #org @defeat
          = What? Impossible!
          
          #org @FirstM
          m walk_down walk_down walk_down walk_left walk_left walk_left walk_up walk_up walk_up walk_up walk_left look_up end
          
          #org @continue
          lockall
          msgbox @afterwards
          callstd msg_normal
          fadescreen FADEOUT_BLACK
          disappear 0x3
          applymovement 0x2 @DefeatGrunt1
          applymovement PLAYER @DefeatGrunt2
          fadescreen FADEIN_BLACK
          msgbox @GruntDefeated //Edit
          callstd msg_normal
          fadescreen FADEOUT_BLACK
          disappear 0x1
          disappear 0x2
          fadescreen FADEIN_BLACK
          addvar 0x4011 0x1
          releaseall
          end 
          
          #org @afterwards
          = Beaten! By a child!?\nI guess I should be going\nnow! Pidgey use fly.
          
          #org @GruntDefeated
          = Now I should tell you what to do.
          
          #org @DefeatGrunt1
          m look_right end
          
          #org @DefeatGrunt2
          m look_right end
          Use 0x1 in trainerbattles if you want other things to happen after a trainer battle.
          Another good option is 0x3. It doesn't require the @continue, it just keeps moving if you win.
          __________________

          Paired with Simba
            #8806    
          Old September 15th, 2013 (10:01 AM).
          Avara's Avatar
          Avara Avara is offline
          Author Of Tales
          • Moderator
           
          Join Date: Dec 2011
          Location: Avlar
          Gender: Female
          Nature: Adamant
          Posts: 643
          Sorry for coming back here so much, and thankyou to everyone who has helped me before. It's appreciatted.

          My level scripts always seem to only work when you enter the map, which is good when i want that to happen, but when I want to make a trip script it doesn't..I set the unknowns to 03, and the vars to 01. I don't want to set it to 0 because that will make it repeat. Any ideas what the problem could be?
          __________________
          x
          Luna <3
            #8807    
          Old September 15th, 2013 (6:01 PM).
          pokefreake's Avatar
          pokefreake pokefreake is offline
             
            Join Date: Nov 2012
            Gender: Male
            Posts: 69
            For some reason the script from before wont release. Everything else works fine. Thanks everyone .

            Spoiler:

            #dyn 0x740000
            #org @start
            lockall
            msgbox @Hey
            callstd MSG_NOCLOSE
            applymovement PLAYER @FirstM
            pauseevent 0x1
            closemsg
            message @MeijiCapture //Edit
            callstd MSG_NOCLOSE
            pause 0x1
            closemsg
            addpokemon PIKACHU 0x5 LEFTOVERS 0 0 0
            fanfare 0x101
            waitfanfare
            fadedefault
            trainerbattle 0x1 0x001 0x1 @intro @defeat @continue
            end

            #org @Hey
            = What's going on over there?

            #org @MeijiCapture
            = Proffessor you're under arrest.

            #org @intro
            = I'll finish you!

            #org @defeat
            = What? Impossible!

            #org @FirstM
            m walk_down walk_down walk_down walk_left walk_left walk_left walk_up walk_up walk_up walk_up walk_left look_up end

            #org @continue
            lockall
            msgbox @afterwards
            callstd msg_normal
            fadescreen FADEOUT_BLACK
            disappear 0x3
            applymovement 0x2 @DefeatGrunt1
            applymovement PLAYER @DefeatGrunt2
            fadescreen FADEIN_BLACK
            msgbox @GruntDefeated //Edit
            callstd msg_normal
            fadescreen FADEOUT_BLACK
            disappear 0x1
            disappear 0x2
            fadescreen FADEIN_BLACK
            addvar 0x4011 0x1
            releaseall
            end

            #org @afterwards
            = Beaten! By a child!?\nI guess I should be going\nnow! Pidgey use fly.

            #org @GruntDefeated
            = Now I should tell you what to do.

            #org @DefeatGrunt1
            m look_right end

            #org @DefeatGrunt2
            m look_right end
              #8808    
            Old September 15th, 2013 (6:09 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 pokefreake View Post
              For some reason the script from before wont release. Everything else works fine. Thanks everyone .

              Spoiler:

              #dyn 0x740000
              #org @start
              lockall
              msgbox @Hey
              callstd MSG_NOCLOSE
              applymovement PLAYER @FirstM
              pauseevent 0x1
              closemsg
              message @MeijiCapture //Edit
              callstd MSG_NOCLOSE
              pause 0x1
              closemsg
              addpokemon PIKACHU 0x5 LEFTOVERS 0 0 0
              fanfare 0x101
              waitfanfare
              fadedefault
              trainerbattle 0x1 0x001 0x1 @intro @defeat @continue
              end

              #org @Hey
              = What's going on over there?

              #org @MeijiCapture
              = Proffessor you're under arrest.

              #org @intro
              = I'll finish you!

              #org @defeat
              = What? Impossible!

              #org @FirstM
              m walk_down walk_down walk_down walk_left walk_left walk_left walk_up walk_up walk_up walk_up walk_left look_up end

              #org @continue
              lockall
              msgbox @afterwards
              callstd msg_normal
              fadescreen FADEOUT_BLACK
              disappear 0x3
              applymovement 0x2 @DefeatGrunt1
              applymovement PLAYER @DefeatGrunt2
              fadescreen FADEIN_BLACK
              msgbox @GruntDefeated //Edit
              callstd msg_normal
              fadescreen FADEOUT_BLACK
              disappear 0x1
              disappear 0x2
              fadescreen FADEIN_BLACK
              addvar 0x4011 0x1
              releaseall
              end

              #org @afterwards
              = Beaten! By a child!?\nI guess I should be going\nnow! Pidgey use fly.

              #org @GruntDefeated
              = Now I should tell you what to do.

              #org @DefeatGrunt1
              m look_right end

              #org @DefeatGrunt2
              m look_right end
              Here's what it should look like:
              Code:
              #dyn 0x740000
              #org @start
              lockall
              msgbox @Hey
              callstd MSG_NOCLOSE
              applymovement PLAYER @FirstM
              pauseevent 0x1
              closemsg
              message @MeijiCapture //Edit
              callstd MSG_NOCLOSE
              pause 0x1
              closemsg
              addpokemon PIKACHU 0x5 LEFTOVERS 0 0 0
              fanfare 0x101
              waitfanfare
              fadedefault
              trainerbattle 0x1 0x001 0x1 @intro @defeat @continue //SHOULD BE 0x0
              end 
              
              #org @Hey
              = What's going on over there?
              
              #org @MeijiCapture
              = Proffessor you're under arrest.
              
              #org @intro
              = I'll finish you!
              
              #org @defeat
              = What? Impossible!
              
              #org @FirstM
              m walk_down walk_down walk_down walk_left walk_left walk_left walk_up walk_up walk_up walk_up walk_left look_up end
              
              #org @continue
              lockall            //SHOULD BE DELETED
              msgbox @afterwards
              callstd msg_normal
              fadescreen FADEOUT_BLACK
              disappear 0x3
              applymovement 0x2 @DefeatGrunt1
              applymovement PLAYER @DefeatGrunt2
              fadescreen FADEIN_BLACK
              msgbox @GruntDefeated //Edit
              callstd msg_normal
              fadescreen FADEOUT_BLACK
              disappear 0x1
              disappear 0x2
              fadescreen FADEIN_BLACK
              addvar 0x4011 0x1
              releaseall
              end 
              
              #org @afterwards
              = Beaten! By a child!?\nI guess I should be going\nnow! Pidgey use fly.
              
              #org @GruntDefeated
              = Now I should tell you what to do.
              
              #org @DefeatGrunt1
              m look_right end
              
              #org @DefeatGrunt2
              m look_right end
                #8809    
              Old September 16th, 2013 (11:34 AM).
              pokefreake's Avatar
              pokefreake pokefreake is offline
                 
                Join Date: Nov 2012
                Gender: Male
                Posts: 69
                I fixed that and it still doesn't release.
                Code:
                #dyn 0x740000
                #org @start
                lockall
                msgbox @Hey
                callstd MSG_NOCLOSE
                applymovement PLAYER @FirstM
                pauseevent 0x1
                closemsg
                message @MeijiCapture //Edit
                callstd MSG_NOCLOSE
                pause 0x1
                closemsg
                addpokemon PIKACHU 0x5 LEFTOVERS 0 0 0
                fanfare 0x101
                waitfanfare
                fadedefault
                trainerbattle 0x1 0x001 0x0 @intro @defeat @continue
                end 
                
                #org @Hey
                = What's going on over there?
                
                #org @MeijiCapture
                = Proffessor you're under arrest.
                
                #org @intro
                = I'll finish you!
                
                #org @defeat
                = What? Impossible!
                
                #org @FirstM
                m walk_down walk_down walk_down walk_left walk_left walk_left walk_up walk_up walk_up walk_up walk_left look_up end
                
                #org @continue
                msgbox @afterwards
                callstd msg_normal
                fadescreen FADEOUT_BLACK
                disappear 0x3
                applymovement 0x2 @DefeatGrunt1
                applymovement PLAYER @DefeatGrunt2
                fadescreen FADEIN_BLACK
                msgbox @GruntDefeated //Edit
                callstd msg_normal
                fadescreen FADEOUT_BLACK
                disappear 0x1
                disappear 0x2
                fadescreen FADEIN_BLACK
                addvar 0x4011 0x1
                releaseall
                end 
                
                #org @afterwards
                = Beaten! By a child!?\nI guess I should be going\pnow! Pidgey use fly.
                
                #org @GruntDefeated
                = Now I should tell you what to do.
                
                #org @DefeatGrunt1
                m look_right end
                
                #org @DefeatGrunt2
                m look_right end
                  #8810    
                Old September 16th, 2013 (1:25 PM).
                Rezordaxx's Avatar
                Rezordaxx Rezordaxx is offline
                Asks many questions!
                   
                  Join Date: Aug 2013
                  Location: The Netherlands
                  Age: 18
                  Gender: Male
                  Nature: Relaxed
                  Posts: 290
                  Quote:
                  Originally Posted by pokefreake View Post
                  I fixed that and it still doesn't release.
                  Code:
                  #dyn 0x740000
                  #org @start
                  lockall
                  msgbox @Hey
                  callstd MSG_NOCLOSE
                  applymovement PLAYER @FirstM
                  pauseevent 0x1
                  closemsg
                  message @MeijiCapture //Edit
                  callstd MSG_NOCLOSE
                  pause 0x1
                  closemsg
                  addpokemon PIKACHU 0x5 LEFTOVERS 0 0 0
                  fanfare 0x101
                  waitfanfare
                  fadedefault
                  trainerbattle 0x1 0x001 0x0 @intro @defeat @continue
                  end 
                  
                  #org @Hey
                  = What's going on over there?
                  
                  #org @MeijiCapture
                  = Proffessor you're under arrest.
                  
                  #org @intro
                  = I'll finish you!
                  
                  #org @defeat
                  = What? Impossible!
                  
                  #org @FirstM
                  m walk_down walk_down walk_down walk_left walk_left walk_left walk_up walk_up walk_up walk_up walk_left look_up end
                  
                  #org @continue
                  msgbox @afterwards
                  callstd msg_normal
                  fadescreen FADEOUT_BLACK
                  disappear 0x3
                  applymovement 0x2 @DefeatGrunt1
                  applymovement PLAYER @DefeatGrunt2
                  fadescreen FADEIN_BLACK
                  msgbox @GruntDefeated //Edit
                  callstd msg_normal
                  fadescreen FADEOUT_BLACK
                  disappear 0x1
                  disappear 0x2
                  fadescreen FADEIN_BLACK
                  addvar 0x4011 0x1
                  releaseall
                  end 
                  
                  #org @afterwards
                  = Beaten! By a child!?\nI guess I should be going\pnow! Pidgey use fly.
                  
                  #org @GruntDefeated
                  = Now I should tell you what to do.
                  
                  #org @DefeatGrunt1
                  m look_right end
                  
                  #org @DefeatGrunt2
                  m look_right end
                  Try to use a dynamic after 800000 scripts often dont work that well with a dynamic below 800000.
                  __________________

                  My hack
                    #8811    
                  Old September 16th, 2013 (1:26 PM).
                  GoGoJJTech's Avatar
                  GoGoJJTech GoGoJJTech is offline
                  (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
                  • Gold Tier
                   
                  Join Date: Nov 2012
                  Location: Earth
                  Age: 18
                  Gender: Female
                  Nature: Jolly
                  Posts: 2,477
                  Quote:
                  Originally Posted by Rezordaxx View Post
                  Try to use a dynamic after 800000 scripts often dont work that well with a dynamic below 800000.
                  Free space in FR starts at 720000 so it's safe alright.
                  __________________
                  I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
                  The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
                  Romhack.me Profile - Pokecommunity Profile - Youtube Channel

                  Support me at my site!
                  Pokémon Platinum Red and Blue
                    #8812    
                  Old September 16th, 2013 (1:29 PM).
                  Rezordaxx's Avatar
                  Rezordaxx Rezordaxx is offline
                  Asks many questions!
                     
                    Join Date: Aug 2013
                    Location: The Netherlands
                    Age: 18
                    Gender: Male
                    Nature: Relaxed
                    Posts: 290
                    Quote:
                    Originally Posted by gogojjtech View Post
                    Free space in FR starts at 720000 so it's safe alright.
                    Oh I thought only above 800000 was safe
                    __________________

                    My hack
                      #8813    
                    Old September 16th, 2013 (1:30 PM).
                    pokefreake's Avatar
                    pokefreake pokefreake is offline
                       
                      Join Date: Nov 2012
                      Gender: Male
                      Posts: 69
                      Quote:
                      Originally Posted by Rezordaxx View Post
                      Oh I thought only above 800000 was safe
                      Maybe for Emerald or Ruby it is. I only hack Fire Red so i'm not too sure.
                        #8814    
                      Old September 16th, 2013 (1:31 PM).
                      GoGoJJTech's Avatar
                      GoGoJJTech GoGoJJTech is offline
                      (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
                      • Gold Tier
                       
                      Join Date: Nov 2012
                      Location: Earth
                      Age: 18
                      Gender: Female
                      Nature: Jolly
                      Posts: 2,477
                      Quote:
                      Originally Posted by Rezordaxx View Post
                      Oh I thought only above 800000 was safe
                      FR - 720000
                      Em - E70000
                      Ru - 6D0000

                      You guys should write this down. I may be wrong with emerald, but it DOES use FF bytes, not 00
                      __________________
                      I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
                      The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
                      Romhack.me Profile - Pokecommunity Profile - Youtube Channel

                      Support me at my site!
                      Pokémon Platinum Red and Blue
                        #8815    
                      Old September 16th, 2013 (5:00 PM).
                      karatekid552's Avatar
                      karatekid552 karatekid552 is offline
                      What happens if I push it?....
                         
                        Join Date: Nov 2012
                        Location: Do you really want to know? Really?
                        Gender: Male
                        Nature: Bold
                        Posts: 1,766
                        Quote:
                        Originally Posted by gogojjtech View Post
                        FR - 720000
                        Em - E70000
                        Ru - 6D0000

                        You guys should write this down. I may be wrong with emerald, but it DOES use FF bytes, not 00
                        Stop worrying about this guys. Just use FSF set to search for 1000 bytes. Then it will find a good start offset. Also, for scripting, just use a #Dynamic anywhere, XSE will find room. I even once, just to see what would happen, did #Dynamic 0x000000 and managed not to break anything. It isn't a good idea, but it shows that the start offset for dynamic scripting is merely a start offset, so that nothing is compiled before it, which is useful for grouping your scripts away from image data and such. (due to laziness with NSE 2.X image insertion, all of my scripts for DC are at 0xB00000, because NSE defaults to 0x800000.)
                        __________________

                        Paired with Simba
                          #8816    
                        Old September 17th, 2013 (3:45 PM).
                        HyruleShield HyruleShield is offline
                           
                          Join Date: Sep 2013
                          Gender: Male
                          Posts: 26
                          Anyone know the offset (Hex) for changing the starters in Black 2?
                            #8817    
                          Old September 17th, 2013 (7:48 PM).
                          Kurapika's Avatar
                          Kurapika Kurapika is offline
                          Grudgebearer
                             
                            Join Date: Feb 2013
                            Location: Lavendar Town - Morocco
                            Gender: Male
                            Nature: Naughty
                            Posts: 406
                            I see Special 0x187 used sometimes before setting a pokemart, it apparently puts some result in the var 0x800D, does anyone know what does that Special do exactly?
                            __________________
                              #8818    
                            Old September 18th, 2013 (11:19 AM).
                            GoGoJJTech's Avatar
                            GoGoJJTech GoGoJJTech is offline
                            (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
                            • Gold Tier
                             
                            Join Date: Nov 2012
                            Location: Earth
                            Age: 18
                            Gender: Female
                            Nature: Jolly
                            Posts: 2,477
                            Quote:
                            Originally Posted by Kurapika View Post
                            I see Special 0x187 used sometimes before setting a pokemart, it apparently puts some result in the var 0x800D, does anyone know what does that Special do exactly?
                            It's an error checker of some kind, and when it returns 2, it ends. There's a thread here:
                            http://www.pokecommunity.com/showthread.php?t=184273
                            __________________
                            I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
                            The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
                            Romhack.me Profile - Pokecommunity Profile - Youtube Channel

                            Support me at my site!
                            Pokémon Platinum Red and Blue
                              #8819    
                            Old September 18th, 2013 (6:37 PM).
                            karatekid552's Avatar
                            karatekid552 karatekid552 is offline
                            What happens if I push it?....
                               
                              Join Date: Nov 2012
                              Location: Do you really want to know? Really?
                              Gender: Male
                              Nature: Bold
                              Posts: 1,766
                              Quote:
                              Originally Posted by gogojjtech View Post
                              It's an error checker of some kind, and when it returns 2, it ends. There's a thread here:
                              http://www.pokecommunity.com/showthread.php?t=184273
                              Yeah, I think it is essentially a try block. I have never used it once, so don't worry about it. The chance that it will be necessary is close to never, and all it will do is prevent the script from running, which is stupid in it's own right: if there is an error to deal with at that point, then the script not running will look like an error in itself, and will only serve to confuse you more.
                              __________________

                              Paired with Simba
                                #8820    
                              Old September 25th, 2013 (5:47 PM).
                              therealnovus therealnovus is offline
                                 
                                Join Date: Sep 2013
                                Gender: Male
                                Posts: 2
                                I am trying to make a signpost, which should be an extremely simple script, but its not working O.o
                                When I press A on the sign, nothing happens.

                                Code:
                                #org 0x1658A2
                                msgbox 0x81658AA '"[player]'s house"
                                end
                                
                                #org 0x1658AA
                                = [player]'s house
                                Any idea what I'm doing wrong?
                                  #8821    
                                Old September 25th, 2013 (5:55 PM).
                                destinedjagold's Avatar
                                destinedjagold destinedjagold is offline
                                Oh Hai Thar~
                                • Silver Tier
                                 
                                Join Date: May 2007
                                Location: Philippines
                                Age: 27
                                Gender: Male
                                Nature: Careful
                                Posts: 8,573
                                Quote:
                                Originally Posted by therealnovus View Post
                                I am trying to make a signpost, which should be an extremely simple script, but its not working O.o
                                When I press A on the sign, nothing happens.

                                Code:
                                #org 0x1658A2
                                msgbox 0x81658AA '"[player]'s house"
                                end
                                
                                #org 0x1658AA
                                = [player]'s house
                                Any idea what I'm doing wrong?
                                Make sure your signpost tile has these values on Advance Map.
                                __________________


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

                                  #8822    
                                Old September 25th, 2013 (6:19 PM).
                                Tavok's Avatar
                                Tavok Tavok is offline
                                   
                                  Join Date: Aug 2013
                                  Gender: Male
                                  Posts: 8
                                  Ok, so, I wondered if you could help me with this. It is a script I made to give the starter Pokemon to the players, but after "showpokepic", it releases the player with the pic and message still open.

                                  I use:
                                  Scripting and compiling: XSE
                                  I edit:
                                  Fire Red.

                                  Spoiler:
                                  #dynamic 0x800000

                                  #org @script
                                  lockall
                                  compare 0x4011 0x0006
                                  if 0x1 goto @starter
                                  checkflag 0x01204
                                  if 0x1 goto @onlyone
                                  message @pokeball 0x6
                                  releaseall
                                  end

                                  #org @starter
                                  showpokepic 0x93 0xA 0x3
                                  message @choosethis 0x5
                                  compare 0x800D 0x1
                                  if 0x1 goto @ok
                                  hidepokepic
                                  releaseall
                                  end

                                  #org @ok
                                  hidepokepic
                                  hidesprite 0x4
                                  setflag 0x1206
                                  message @gotpoke 0x0
                                  fanfare 0x13E
                                  waitfanfare
                                  givepokemon 0x93 0x5 0x8E 0x0 0x0 0x0
                                  setflag 0x828
                                  msgbox @givenickname 0x5
                                  compare 0x800D 0x1
                                  if 0x1 goto @name
                                  msgbox @goodchoice 0x6
                                  applymovement 0x1 @profdown
                                  applymovement 0xFF @gotoprof
                                  msgbox @adventure
                                  setflag 0x829
                                  special 0x16F
                                  msgbox @obtaineddex 0x0
                                  fanfare 0x13E
                                  waitfanfare
                                  message @giveballs 0x0
                                  giveitem 0x4 0x10 0x6
                                  message @seeya 0x6
                                  setflag 0x1204
                                  setvar 0x4011 0x0007


                                  Can anyone help?
                                    #8823    
                                  Old September 25th, 2013 (6:40 PM).
                                  destinedjagold's Avatar
                                  destinedjagold destinedjagold is offline
                                  Oh Hai Thar~
                                  • Silver Tier
                                   
                                  Join Date: May 2007
                                  Location: Philippines
                                  Age: 27
                                  Gender: Male
                                  Nature: Careful
                                  Posts: 8,573
                                  Quote:
                                  Originally Posted by Tavok View Post
                                  Ok, so, I wondered if you could help me with this. It is a script I made to give the starter Pokemon to the players, but after "showpokepic", it releases the player with the pic and message still open.

                                  I use:
                                  Scripting and compiling: XSE
                                  I edit:
                                  Fire Red.

                                  Spoiler:
                                  #dynamic 0x800000

                                  #org @script
                                  lockall
                                  compare 0x4011 0x0006
                                  if 0x1 goto @starter
                                  checkflag 0x01204
                                  if 0x1 goto @onlyone
                                  message @pokeball 0x6
                                  releaseall
                                  end

                                  #org @starter
                                  showpokepic 0x93 0xA 0x3
                                  message @choosethis 0x5
                                  compare 0x800D 0x1
                                  if 0x1 goto @ok
                                  hidepokepic
                                  releaseall
                                  end

                                  #org @ok
                                  hidepokepic
                                  hidesprite 0x4
                                  setflag 0x1206
                                  message @gotpoke 0x0
                                  fanfare 0x13E
                                  waitfanfare
                                  givepokemon 0x93 0x5 0x8E 0x0 0x0 0x0
                                  setflag 0x828
                                  msgbox @givenickname 0x5
                                  compare 0x800D 0x1
                                  if 0x1 goto @name
                                  msgbox @goodchoice 0x6
                                  applymovement 0x1 @profdown
                                  applymovement 0xFF @gotoprof
                                  msgbox @adventure
                                  setflag 0x829
                                  special 0x16F
                                  msgbox @obtaineddex 0x0
                                  fanfare 0x13E
                                  waitfanfare
                                  message @giveballs 0x0
                                  giveitem 0x4 0x10 0x6
                                  message @seeya 0x6
                                  setflag 0x1204
                                  setvar 0x4011 0x0007


                                  Can anyone help?
                                  Code:
                                  message @gotpoke 0x0
                                  ...There is no message type number zero (0)...
                                  That is probably the one causing the problem.
                                  __________________


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

                                    #8824    
                                  Old September 25th, 2013 (7:05 PM).
                                  Tavok's Avatar
                                  Tavok Tavok is offline
                                     
                                    Join Date: Aug 2013
                                    Gender: Male
                                    Posts: 8
                                    I can not believe I didn't see that... I probably left them as fillers when I was doing the "sketch". I changed them all to 0x6. That fixes the problem with the pic and text, but now it just stops after the fanfare and @gotpoke message. Any idea why? I'm sorry if I cause too much trouble :/
                                    Oh, and also, which number plays the sound that happens when an "!" and an "'?" comes up? Thanks in advance.
                                      #8825    
                                    Old September 25th, 2013 (7:35 PM).
                                    DrFuji's Avatar
                                    DrFuji DrFuji is offline
                                    Heiki Hecchara‌‌
                                    • Crystal Tier
                                     
                                    Join Date: Sep 2009
                                    Location: Downia-upside
                                    Age: 24
                                    Gender: Male
                                    Nature: Jolly
                                    Posts: 1,328
                                    Quote:
                                    Originally Posted by therealnovus View Post
                                    I am trying to make a signpost, which should be an extremely simple script, but its not working O.o
                                    When I press A on the sign, nothing happens.

                                    Code:
                                    #org 0x1658A2
                                    msgbox 0x81658AA '"[player]'s house"
                                    end
                                    
                                    #org 0x1658AA
                                    = [player]'s house
                                    Any idea what I'm doing wrong?
                                    You seem to be missing the message type after the pointer to the "[player]'s house" text. Since you were able to compile it at all makes me believe that you are using an outdated version of XSE (here's a link to the latest release). Try rewriting your script in that as well as adding the message type, hopefully that will work.

                                    Quote:
                                    Originally Posted by Tavok View Post
                                    Oh, and also, which number plays the sound that happens when an "!" and an "'?" comes up? Thanks in advance.
                                    That would be 'sound 0x15'. I'm not sure why your script is stopping again though.
                                    __________________
                                    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 8:14 PM.