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
  #24401    
Old March 30th, 2013 (3:58 AM).
BlackWhiteRobin's Avatar
BlackWhiteRobin BlackWhiteRobin is offline
     
    Join Date: Sep 2012
    Age: 19
    Gender: Male
    Nature: Quirky
    Posts: 539
    Quote:
    Originally Posted by karatekid552 View Post
    Use a var. Choose a var and when the player warps set it to the house number (1-5) then create 5 similar scripts, one for each house, that only allow you to pass through the door if the var equals the number of the house. You could also have a checkflag before it to create a manual override so that all of the houses can become unlocked at some point in the game, if you choose.
    Sorry for the noobish question and being a disturbance, I haven't mastered vars yet and I'm more of like exam now lesson later type so...... Ummmm...... Sample?
    __________________


    Relevant Advertising!

      #24402    
    Old March 30th, 2013 (4:18 AM).
    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 robin22gongon View Post
      Sorry for the noobish question and being a disturbance, I haven't mastered vars yet and I'm more of like exam now lesson later type so...... Ummmm...... Sample?
      All you will need is setvar and compare.

      When you step on a tile, have this:

      setvar 0x[Var: see var list for a good one] 0x[House number]

      Then, put an invisible person or a tile in front of every house for which the script contains:

      checkflag 0x[Override] 'in case you want on override flag
      if 0x1 goto @this_house_is_unlocked
      compare 0x[Var we picked earlier] 0x[House number of this house]
      if 0x1 goto @this_house_is_unlocked
      if 0x0 goto @this_house_is_locked

      I think you can figure the rest out.
      __________________

      Paired with Simba
        #24403    
      Old March 30th, 2013 (4:51 AM). Edited March 30th, 2013 by BlackWhiteRobin.
      BlackWhiteRobin's Avatar
      BlackWhiteRobin BlackWhiteRobin is offline
         
        Join Date: Sep 2012
        Age: 19
        Gender: Male
        Nature: Quirky
        Posts: 539
        Quote:
        Originally Posted by karatekid552 View Post
        All you will need is setvar and compare.

        When you step on a tile, have this:

        setvar 0x[Var: see var list for a good one] 0x[House number]

        Then, put an invisible person or a tile in front of every house for which the script contains:

        checkflag 0x[Override] 'in case you want on override flag
        if 0x1 goto @this_house_is_unlocked
        compare 0x[Var we picked earlier] 0x[House number of this house]
        if 0x1 goto @this_house_is_unlocked
        if 0x0 goto @this_house_is_locked

        I think you can figure the rest out.
        Okay, I'll figure the rest out.

        Everyone! Anybody except karatekid552, does any of you have a var list? The one used in scripts!?
        I can't find a var list in diegoisawesome and tajaros' scripting thread!

        Also, what command in A-map do I use for a random weather?
        Here's the script:
        Spoiler:
        Code:
        '---------------
        #org 0x80008A
        random 0xA
        compare LASTRESULT 0x0
        if 0x1 goto 0x88000FC
        compare LASTRESULT 0x1
        if 0x1 goto 0x8800102
        compare LASTRESULT 0x2
        if 0x1 goto 0x8800108
        compare LASTRESULT 0x3
        if 0x1 goto 0x880010E
        compare LASTRESULT 0x4
        if 0x1 goto 0x8800114
        compare LASTRESULT 0x5
        if 0x1 goto 0x880011A
        compare LASTRESULT 0x6
        if 0x1 goto 0x8800120
        compare LASTRESULT 0x7
        if 0x1 goto 0x8800126
        compare LASTRESULT 0x8
        if 0x1 goto 0x880012C
        compare LASTRESULT 0x9
        if 0x1 goto 0x8800132
        '---------------
        #org 0x8000FC
        setweather 0x1
        doweather
        end
        
        '---------------
        #org 0x800102
        setweather 0x2
        doweather
        end
        
        '---------------
        #org 0x800108
        setweather 0x3
        doweather
        end
        
        '---------------
        #org 0x80010E
        setweather 0x4
        doweather
        end
        
        '---------------
        #org 0x800114
        setweather 0x5
        doweather
        end
        
        '---------------
        #org 0x80011A
        setweather 0x7
        doweather
        end
        
        '---------------
        #org 0x800120
        setweather 0xB
        doweather
        end
        
        '---------------
        #org 0x800126
        setweather 0xD
        doweather
        end
        
        '---------------
        #org 0x80012C
        setweather 0x2
        doweather
        end
        
        '---------------
        #org 0x800132
        setweather 0xB
        doweather
        end
        __________________

          #24404    
        Old March 30th, 2013 (6:56 AM).
        U.Flame's Avatar
        U.Flame U.Flame is offline
        Suuuper Busy
        • Crystal Tier
         
        Join Date: Jun 2008
        Location: Sapphire City in future Hoenn
        Age: 22
        Gender: Male
        Nature: Jolly
        Posts: 1,258
        Quote:
        Originally Posted by karatekid552 View Post
        When I meant third, I meant third from 0, as in Map Script #2.... I think, lol, I don't have it open in front of me. Make sure you copy of all of the settings as best as you can and open every script. It will be plainly obvious which one has the text in it.

        Also, if this still gives you problems, I just thought of something: the tile that you click on to create a Secret Base outside of the secret base itself. The little square in the wall. That might set some vars and such as well. Look up a behavior byte tutorial and find out where its script would be located and take a look at it.
        That's what I meant too. Map Script #2. (Or #4 in this case since the room map already started with 2 scripts.)

        Anyways, those titles are accompanied by sign events made for Secret Bases, so I'm thinking I should relocate the map to the Secret Base header. Now, should I simply edit an existing map to recreate this map, giving it a different map number like 25.0, or should I replace a Secret Base map, keeping the map number as 1.1?
        __________________
        Hacks I'm working on:
        Pokemon Sapphire Hoenn's Rebirth - My own hack, making progress whenever possible.
        3rd Gen Multiplayer Project - Research and development, occasionally testing, sometimes with support.
        Pokemon Cursed/Creepy White - Group project, on hiatus for now with plans to return eventually.
        Animal Crossing Wild World playing as an animal - experimental, messing with models and textures

        Hacks I've worked on in the past:
        Pokemon Ruby Destiny Broken Timeline (pre-reboot) - Assisted with maps
        Pokemon HeartGold Prince Boo Edition - Experimental project with three small changes. Made at the request of YouTube LPer PrinceBoo21.

        Been super busy with work, life, and laptop problems. Hopefully I can get back into it soon, I fear I'm already rusty. Meanwhile I'm considering writing some of my hacks as a series of fanfics.

        Times I've been ninja'd: 18
        Times I've ninja'd people: 3
          #24405    
        Old March 30th, 2013 (7:04 AM).
        Konekodemon's Avatar
        Konekodemon Konekodemon is offline
        The Master of Pokemon Breeding
        • Crystal Tier
         
        Join Date: Mar 2007
        Location: NC
        Age: 33
        Gender: Female
        Nature: Gentle
        Posts: 1,972
        Could someone list me all the DS hacks that were made on this site? You see I want to add DS hacks to my flash drive and I can't add GBA as it only support DS games. But it could take me hours even days to find all the hacks on here that are hacked from DS titles.
        __________________

        Please check out my InuYasha fanfiction and tell me what you think.
        Sign up for Vizzard to play free Retro Games online: http://www.vizzed.com/boards/profile.php?id=231549&ref=61528
        Get a Free PS3, this is no joke: http://www.YourPS34free.com/index.php?ref=5580831
          #24406    
        Old March 30th, 2013 (8:57 AM). Edited March 30th, 2013 by karatekid552.
        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 robin22gongon View Post
          Okay, I'll figure the rest out.

          Everyone! Anybody except karatekid552, does any of you have a var list? The one used in scripts!?
          I can't find a var list in diegoisawesome and tajaros' scripting thread!

          Also, what command in A-map do I use for a random weather?
          Here's the script:
          Spoiler:
          Code:
          '---------------
          #org 0x80008A
          random 0xA
          compare LASTRESULT 0x0
          if 0x1 goto 0x88000FC
          compare LASTRESULT 0x1
          if 0x1 goto 0x8800102
          compare LASTRESULT 0x2
          if 0x1 goto 0x8800108
          compare LASTRESULT 0x3
          if 0x1 goto 0x880010E
          compare LASTRESULT 0x4
          if 0x1 goto 0x8800114
          compare LASTRESULT 0x5
          if 0x1 goto 0x880011A
          compare LASTRESULT 0x6
          if 0x1 goto 0x8800120
          compare LASTRESULT 0x7
          if 0x1 goto 0x8800126
          compare LASTRESULT 0x8
          if 0x1 goto 0x880012C
          compare LASTRESULT 0x9
          if 0x1 goto 0x8800132
          '---------------
          #org 0x8000FC
          setweather 0x1
          doweather
          end
          
          '---------------
          #org 0x800102
          setweather 0x2
          doweather
          end
          
          '---------------
          #org 0x800108
          setweather 0x3
          doweather
          end
          
          '---------------
          #org 0x80010E
          setweather 0x4
          doweather
          end
          
          '---------------
          #org 0x800114
          setweather 0x5
          doweather
          end
          
          '---------------
          #org 0x80011A
          setweather 0x7
          doweather
          end
          
          '---------------
          #org 0x800120
          setweather 0xB
          doweather
          end
          
          '---------------
          #org 0x800126
          setweather 0xD
          doweather
          end
          
          '---------------
          #org 0x80012C
          setweather 0x2
          doweather
          end
          
          '---------------
          #org 0x800132
          setweather 0xB
          doweather
          end
          I meant DavidJCobb's posts which listed the function of a every var.

          And for your script, I would try 05 and if that doesn't work, 02.

          Quote:
          Originally Posted by U_Flame View Post
          That's what I meant too. Map Script #2. (Or #4 in this case since the room map already started with 2 scripts.)

          Anyways, those titles are accompanied by sign events made for Secret Bases, so I'm thinking I should relocate the map to the Secret Base header. Now, should I simply edit an existing map to recreate this map, giving it a different map number like 25.0, or should I replace a Secret Base map, keeping the map number as 1.1?
          Yes, I would just replace a Secret Base and keep the map in the Secret Base header. That would work best.
          __________________

          Paired with Simba
            #24407    
          Old March 30th, 2013 (11:24 AM).
          U.Flame's Avatar
          U.Flame U.Flame is offline
          Suuuper Busy
          • Crystal Tier
           
          Join Date: Jun 2008
          Location: Sapphire City in future Hoenn
          Age: 22
          Gender: Male
          Nature: Jolly
          Posts: 1,258
          Quote:
          Originally Posted by karatekid552 View Post
          Yes, I would just replace a Secret Base and keep the map in the Secret Base header. That would work best.
          It worked! I gave the staircase the tile effect of an open cliff Secret Base entrance while I was at it. Didn't even need a signpost event to go with it. Everything works EXACTLY as planned! No "Would you like to make your Secret Base here?" text, no " 's BASE" area text, no need to register the place as a base, the decorations still remain there when I leave and come back, even the pack up option simply puts away the decorations without losing ownership of the place!

          Just one pestering little harmless glitch I'd still like fixed if possible. The decorations still look glitchy when in the middle of placing them. Still looks fine afterward though. That's the last thing wrong with the place. If that can be fixed, this decorator-able basement will be flawless and I can start editing the decorations into better furniture!
          __________________
          Hacks I'm working on:
          Pokemon Sapphire Hoenn's Rebirth - My own hack, making progress whenever possible.
          3rd Gen Multiplayer Project - Research and development, occasionally testing, sometimes with support.
          Pokemon Cursed/Creepy White - Group project, on hiatus for now with plans to return eventually.
          Animal Crossing Wild World playing as an animal - experimental, messing with models and textures

          Hacks I've worked on in the past:
          Pokemon Ruby Destiny Broken Timeline (pre-reboot) - Assisted with maps
          Pokemon HeartGold Prince Boo Edition - Experimental project with three small changes. Made at the request of YouTube LPer PrinceBoo21.

          Been super busy with work, life, and laptop problems. Hopefully I can get back into it soon, I fear I'm already rusty. Meanwhile I'm considering writing some of my hacks as a series of fanfics.

          Times I've been ninja'd: 18
          Times I've ninja'd people: 3
            #24408    
          Old March 30th, 2013 (11:31 AM).
          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 U_Flame View Post
            It worked! I gave the staircase the tile effect of an open cliff Secret Base entrance while I was at it. Didn't even need a signpost event to go with it. Everything works EXACTLY as planned! No "Would you like to make your Secret Base here?" text, no " 's BASE" area text, no need to register the place as a base, the decorations still remain there when I leave and come back, even the pack up option simply puts away the decorations without losing ownership of the place!

            Just one pestering little harmless glitch I'd still like fixed if possible. The decorations still look glitchy when in the middle of placing them. Still looks fine afterward though. That's the last thing wrong with the place. If that can be fixed, this decorator-able basement will be flawless and I can start editing the decorations into better furniture!
            That one perplexes me. I assume that the script which uses cmdA6 was inserted properly, right? Also, is it all decorations, or just the tile ones?
            __________________

            Paired with Simba
              #24409    
            Old March 30th, 2013 (12:17 PM).
            U.Flame's Avatar
            U.Flame U.Flame is offline
            Suuuper Busy
            • Crystal Tier
             
            Join Date: Jun 2008
            Location: Sapphire City in future Hoenn
            Age: 22
            Gender: Male
            Nature: Jolly
            Posts: 1,258
            Quote:
            Originally Posted by karatekid552 View Post
            That one perplexes me. I assume that the script which uses cmdA6 was inserted properly, right? Also, is it all decorations, or just the tile ones?
            Just the tile ones. Plushies and cushions work fine. I didn't mess with any scripts since the needed ones came with the the Secret Base map I edited.
            __________________
            Hacks I'm working on:
            Pokemon Sapphire Hoenn's Rebirth - My own hack, making progress whenever possible.
            3rd Gen Multiplayer Project - Research and development, occasionally testing, sometimes with support.
            Pokemon Cursed/Creepy White - Group project, on hiatus for now with plans to return eventually.
            Animal Crossing Wild World playing as an animal - experimental, messing with models and textures

            Hacks I've worked on in the past:
            Pokemon Ruby Destiny Broken Timeline (pre-reboot) - Assisted with maps
            Pokemon HeartGold Prince Boo Edition - Experimental project with three small changes. Made at the request of YouTube LPer PrinceBoo21.

            Been super busy with work, life, and laptop problems. Hopefully I can get back into it soon, I fear I'm already rusty. Meanwhile I'm considering writing some of my hacks as a series of fanfics.

            Times I've been ninja'd: 18
            Times I've ninja'd people: 3
              #24410    
            Old March 30th, 2013 (12:22 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 U_Flame View Post
              Just the tile ones. Plushies and cushions work fine. I didn't mess with any scripts since the needed ones came with the the Secret Base map I edited.
              That is what I thought. I believe it has something to do with cmdA6.... What happens when you remove that script? (Back-up please)
              __________________

              Paired with Simba
                #24411    
              Old March 30th, 2013 (1:38 PM).
              U.Flame's Avatar
              U.Flame U.Flame is offline
              Suuuper Busy
              • Crystal Tier
               
              Join Date: Jun 2008
              Location: Sapphire City in future Hoenn
              Age: 22
              Gender: Male
              Nature: Jolly
              Posts: 1,258
              Quote:
              Originally Posted by karatekid552 View Post
              That is what I thought. I believe it has something to do with cmdA6.... What happens when you remove that script? (Back-up please)
              Right...where is that script exactly?
              __________________
              Hacks I'm working on:
              Pokemon Sapphire Hoenn's Rebirth - My own hack, making progress whenever possible.
              3rd Gen Multiplayer Project - Research and development, occasionally testing, sometimes with support.
              Pokemon Cursed/Creepy White - Group project, on hiatus for now with plans to return eventually.
              Animal Crossing Wild World playing as an animal - experimental, messing with models and textures

              Hacks I've worked on in the past:
              Pokemon Ruby Destiny Broken Timeline (pre-reboot) - Assisted with maps
              Pokemon HeartGold Prince Boo Edition - Experimental project with three small changes. Made at the request of YouTube LPer PrinceBoo21.

              Been super busy with work, life, and laptop problems. Hopefully I can get back into it soon, I fear I'm already rusty. Meanwhile I'm considering writing some of my hacks as a series of fanfics.

              Times I've been ninja'd: 18
              Times I've ninja'd people: 3
                #24412    
              Old March 30th, 2013 (4:04 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 U_Flame View Post
                Right...where is that script exactly?
                It is in one of the map scripts.
                __________________

                Paired with Simba
                  #24413    
                Old March 30th, 2013 (5:10 PM).
                BlackWhiteRobin's Avatar
                BlackWhiteRobin BlackWhiteRobin is offline
                   
                  Join Date: Sep 2012
                  Age: 19
                  Gender: Male
                  Nature: Quirky
                  Posts: 539
                  Hey guys, 1 question.

                  This clean FR rom, I inserted a bigger bootscreen and repointed it. There's nothing wrong with the bootscreen though, it works really fine!
                  BUT! When I played through the game, the LR Buttons which bring up the Help System doesn't work no more! I checked the options and its in and button mode is HELP. When you open the Start Menu, the blue thing at the bottom is there but the help screen doesn't come up.

                  It really isn't a problem for me actually I'm glad it's gone but I'm just curious why?

                  Does this happen to you when you insert a larger bootscreen?
                  __________________

                    #24414    
                  Old March 30th, 2013 (5:29 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 robin22gongon View Post
                    Hey guys, 1 question.

                    This clean FR rom, I inserted a bigger bootscreen and repointed it. There's nothing wrong with the bootscreen though, it works really fine!
                    BUT! When I played through the game, the LR Buttons which bring up the Help System doesn't work no more! I checked the options and its in and button mode is HELP. When you open the Start Menu, the blue thing at the bottom is there but the help screen doesn't come up.

                    It really isn't a problem for me actually I'm glad it's gone but I'm just curious why?

                    Does this happen to you when you insert a larger bootscreen?
                    Weren't you just asking how to remove the help? Lol, I would give it another try. Make sure that the help system works on the clean rom, insert the bootscreen, and see if it still works. It could be a really neat find.
                    __________________

                    Paired with Simba
                      #24415    
                    Old March 30th, 2013 (5:38 PM). Edited April 28th, 2013 by BlackWhiteRobin.
                    BlackWhiteRobin's Avatar
                    BlackWhiteRobin BlackWhiteRobin is offline
                       
                      Join Date: Sep 2012
                      Age: 19
                      Gender: Male
                      Nature: Quirky
                      Posts: 539
                      Quote:
                      Originally Posted by karatekid552 View Post
                      Weren't you just asking how to remove the help? Lol, I would give it another try. Make sure that the help system works on the clean rom, insert the bootscreen, and see if it still works. It could be a really neat find.
                      Yep tried it on a clean rom, inserted a tileset worth 2056 bytes and help system got ditched. And yeah it works on a clean FR Rom.

                      Here's what I did. Download the attachments and apply it to a clean FR rom.


                      Scripting question again. A sample starter script that doesn't involve the rival. All I can manage to do is the "Do you like Bulabasaur? No. Do you like Squirtle? No. Do you like Charmander? Yes. Here you go. I'm only allowed to give you 1 Pokemon." That.
                      __________________

                        #24416    
                      Old March 30th, 2013 (6:03 PM). Edited March 30th, 2013 by karatekid552.
                      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 robin22gongon View Post
                        Yep tried it on a clean rom, inserted a tileset worth 2056 bytes and help system got ditched. And yeah it works on a clean FR Rom.

                        Here's what I did. Download the attachments and apply it to a clean FR rom.


                        Scripting question again. A sample starter script that doesn't involve the rival. All I can manage to do is the "Do you like Bulabasaur? No. Do you like Squirtle? No. Do you like Charmander? Yes. Here you go. I'm only allowed to give you 1 Pokemon." That.
                        Well, you could create a multichoice box and use that, or do something simillar to the five houses where there are 3 balls you pick up one and it shows you the starter. You can say no and look at another one, but as soon as you say yes, it sets the var so that you can't see the other ones and it gives you the pokemon.

                        Edit: I looked at your patch, and this was not just a bootscreen insert. You also removed the titlescreen and intro. Those could deffinately have had something to do with it.
                        __________________

                        Paired with Simba
                          #24417    
                        Old March 30th, 2013 (6:59 PM).
                        BlackWhiteRobin's Avatar
                        BlackWhiteRobin BlackWhiteRobin is offline
                           
                          Join Date: Sep 2012
                          Age: 19
                          Gender: Male
                          Nature: Quirky
                          Posts: 539
                          Oh yeah! Just remembered! That should be it! Sorry.
                          Maybe the HELP System loads from the titlescreen and without the titlescreen, it would not load. Sorry for the inconvenience.

                          About the script:
                          Okay thanks!
                          __________________

                            #24418    
                          Old March 30th, 2013 (8:28 PM).
                          U.Flame's Avatar
                          U.Flame U.Flame is offline
                          Suuuper Busy
                          • Crystal Tier
                           
                          Join Date: Jun 2008
                          Location: Sapphire City in future Hoenn
                          Age: 22
                          Gender: Male
                          Nature: Jolly
                          Posts: 1,258
                          Found it. Deleting it didn't seem to have any kind of effect though.
                          __________________
                          Hacks I'm working on:
                          Pokemon Sapphire Hoenn's Rebirth - My own hack, making progress whenever possible.
                          3rd Gen Multiplayer Project - Research and development, occasionally testing, sometimes with support.
                          Pokemon Cursed/Creepy White - Group project, on hiatus for now with plans to return eventually.
                          Animal Crossing Wild World playing as an animal - experimental, messing with models and textures

                          Hacks I've worked on in the past:
                          Pokemon Ruby Destiny Broken Timeline (pre-reboot) - Assisted with maps
                          Pokemon HeartGold Prince Boo Edition - Experimental project with three small changes. Made at the request of YouTube LPer PrinceBoo21.

                          Been super busy with work, life, and laptop problems. Hopefully I can get back into it soon, I fear I'm already rusty. Meanwhile I'm considering writing some of my hacks as a series of fanfics.

                          Times I've been ninja'd: 18
                          Times I've ninja'd people: 3
                            #24419    
                          Old March 30th, 2013 (10:09 PM).
                          BlackWhiteRobin's Avatar
                          BlackWhiteRobin BlackWhiteRobin is offline
                             
                            Join Date: Sep 2012
                            Age: 19
                            Gender: Male
                            Nature: Quirky
                            Posts: 539
                            I compile this script as a script event in A-map
                            Code:
                            '---------------
                            #org 0x800F00
                            checkflag 0x828
                            if 0x1 goto 0x8800F14
                            if 0x0 goto 0x8800FF1
                            release
                            end
                            
                            '---------------
                            #org 0x800F14
                            nop
                            release
                            end
                            
                            '---------------
                            #org 0x800FF1
                            lock
                            faceplayer
                            msgbox 0x8800F18 MSG_KEEPOPEN '"Hey whippersnapper!\nCome back her..."
                            closeonkeypress
                            release
                            end
                            
                            
                            '---------
                            ' Strings
                            '---------
                            #org 0x800F18
                            = Hey whippersnapper!\nCome back here!
                            But instead of just stopping the player, the game freezes, is there something wrong?
                            __________________

                              #24420    
                            Old March 30th, 2013 (10:23 PM).
                            miksy91's Avatar
                            miksy91 miksy91 is offline
                            Dark Energy is back in action! ;)
                               
                              Join Date: Oct 2008
                              Location: A small country in the North
                              Gender: Male
                              Nature: Relaxed
                              Posts: 1,438
                              Quote:
                              Originally Posted by robin22gongon View Post
                              I compile this script as a script event in A-map
                              '---------------
                              #org 0x800F00
                              checkflag 0x828
                              if 0x1 goto 0x8800F14
                              if 0x0 goto 0x8800FF1
                              release
                              end

                              '---------------
                              #org 0x800F14
                              nop
                              release
                              end


                              '---------------
                              #org 0x800FF1
                              lock
                              faceplayer
                              msgbox 0x8800F18 MSG_KEEPOPEN '"Hey whippersnapper!\nCome back her..."
                              closeonkeypress
                              release
                              end


                              '---------
                              ' Strings
                              '---------
                              #org 0x800F18
                              = Hey whippersnapper!\nCome back here!
                              Try if that works.
                              I'd say that when you're not locking the player (making the player unable to move?) during the script, and use "release" anyhow, that will lead to an interrupt that forces the game to freeze.

                              If this thing is a triggered script like it would make sense for it to be, you should be using "trigger flags" (if such exist in FRLG or RSE) to prevent this script data from loading at all, which you have here done in parts by refering to bit 0x828.
                              What I meant that you might not want to use a checkbit at all, and by the specifics of the trigger events, define whether a script data is loaded when the player steps on them.

                              That way, the game won't start executing script data during the gameplay that does especially nothing (even though it doesn't do "anything", it may stop the player on the ground for a while and the player may notice the game "lagging").
                              But I might be wrong though, triggered scripts may be built in like that in these games, especially since you're not automatically "locked" to the script.
                              __________________
                              My Rom Hack



                              Fixing bugs in a ROM hack
                              CP of encountered pokemon in GO

                              Learn how to hack GB/C games:

                              Check my GameBoy/Color hacking videos in Youtube
                              -The video set uses Pokemon Silver (U) rom for demonstrations
                                #24421    
                              Old March 30th, 2013 (11:51 PM).
                              BlackWhiteRobin's Avatar
                              BlackWhiteRobin BlackWhiteRobin is offline
                                 
                                Join Date: Sep 2012
                                Age: 19
                                Gender: Male
                                Nature: Quirky
                                Posts: 539
                                Okay fixed it. Thanks miksy91!

                                Question again.
                                If this code was used
                                Code:
                                msgbox @sample 0x5
                                a yes or no box will come up.
                                If I want the script to continue when player says yes, I put
                                Code:
                                if 0x1 goto @sample1
                                right?
                                But what if I want the script to continue when player says
                                NO?
                                __________________

                                  #24422    
                                Old March 31st, 2013 (12:41 AM).
                                kearnseyboy6's Avatar
                                kearnseyboy6 kearnseyboy6 is offline
                                Aussie's Toughest Mudder
                                   
                                  Join Date: Dec 2008
                                  Posts: 300
                                  Quote:
                                  Originally Posted by robin22gongon View Post
                                  Okay fixed it. Thanks miksy91!

                                  Question again.
                                  If this code was used
                                  Code:
                                  msgbox @sample 0x5
                                  a yes or no box will come up.
                                  If I want the script to continue when player says yes, I put
                                  Code:
                                  if 0x1 goto @sample1
                                  right?
                                  But what if I want the script to continue when player says
                                  NO?
                                  Not quite try something similar to this:

                                  [CODE]
                                  #dynamic 0x800000
                                  #org @start
                                  lock
                                  faceplayer
                                  msgbox @1 0x5
                                  compare 0x800D 0x1
                                  if 0x1 goto @yes
                                  release
                                  end
                                  #org @yes
                                  msgbox @2 0x6
                                  release
                                  end

                                  #org @1
                                  = Is today Sunday?

                                  #org @2
                                  = You selected YES.[CODE]

                                  For the best scripting tutorial, highly suggest DIEGOISAWESOME's tuts

                                  http: //www.poke community.com/showthread.php?t=164276

                                  Try this out and if it doesn't work let us know.
                                    #24423    
                                  Old March 31st, 2013 (3:16 AM).
                                  miksy91's Avatar
                                  miksy91 miksy91 is offline
                                  Dark Energy is back in action! ;)
                                     
                                    Join Date: Oct 2008
                                    Location: A small country in the North
                                    Gender: Male
                                    Nature: Relaxed
                                    Posts: 1,438
                                    Quote:
                                    Originally Posted by robin22gongon View Post
                                    Okay fixed it. Thanks miksy91!

                                    Question again.
                                    If this code was used
                                    Code:
                                    msgbox @sample 0x5
                                    a yes or no box will come up.
                                    If I want the script to continue when player says yes, I put
                                    Code:
                                    if 0x1 goto @sample1
                                    right?
                                    But what if I want the script to continue when player says
                                    NO?
                                    When you call a "Yes/No" box and click the answer, the game will write either 00 or 01 into a specific ram address, depending on which one you answered.

                                    So like you can assume by what you're saying here, it writes 01 into this ram address if you chose YES.

                                    That "if 0x1 goto @address" checks whether the value of this ram address is 01. If it is, jump operation occurs that makes the script continue at @address.
                                    If the value is NOT 01, the script will continue normally after "if 0x1 goto @address" instruction.

                                    So, if you chose "NO" instead, 00 would be written into this ram address. Next, you check with "if 0x1 goto @address" command if the value of that ram address is 01 or not. Because it is 00, the script will continue after the command, not in @address (it only jumps here if that value is 01).
                                    __________________
                                    My Rom Hack



                                    Fixing bugs in a ROM hack
                                    CP of encountered pokemon in GO

                                    Learn how to hack GB/C games:

                                    Check my GameBoy/Color hacking videos in Youtube
                                    -The video set uses Pokemon Silver (U) rom for demonstrations
                                      #24424    
                                    Old March 31st, 2013 (10:22 AM).
                                    lmatanl lmatanl is offline
                                       
                                      Join Date: Jan 2013
                                      Gender: Male
                                      Posts: 1
                                      Can someone help me insert a female mugshot into B/W 2 or maybe just tell me how it's done? BWME doesn't work for B/W2, unfortunately.

                                      Thanks!
                                        #24425    
                                      Old March 31st, 2013 (1:13 PM).
                                      Mana's Avatar
                                      Mana Mana is offline
                                      • Platinum Tier
                                       
                                      Join Date: Jan 2009
                                      Location: UK
                                      Gender: Female
                                      Posts: 10,015
                                      Does anyone know of any non-ASM ways to skip the introduction sequence, and go straight to naming the hero?
                                      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 5:22 PM.