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
  #7626    
Old January 28th, 2013 (2:28 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 FBI agent View Post
    This is actually a question that I'd be interested in too. The solution I think is a level script, similar to the one in the player's room in FireRed. It'd go like this:

    movesprite2 0xPersonEventNumber 0xX-pos 0xY-pos
    spritebehave 0xPersonEventNumber 0xBehaviourNumber

    Behavior number is just what the person does (look down is 0x8 look around is 0x1...ect). This is for FireRed, though other gen III ROMs are likely similar if not the same.
    Very close, it just doesn't need to be in a level script. It just has to go directly after the applymovement it is holding in place.
    __________________

    Paired with Simba

    Relevant Advertising!

      #7627    
    Old January 28th, 2013 (2:33 PM).
    kj3400's Avatar
    kj3400 kj3400 is offline
    Wants a Magneton for a Charger
       
      Join Date: Mar 2012
      Gender: Male
      Nature: Lax
      Posts: 53
      So if I put that in, I can guarantee the particular ow's not going to move when I leave the map?
        #7628    
      Old January 28th, 2013 (2:42 PM).
      FBI's Avatar
      FBI FBI is offline
      Free supporter
       
      Join Date: Jan 2013
      Location: Unknown Island
      Gender: Male
      Posts: 1,858
      Quote:
      Originally Posted by karatekid552 View Post
      Very close, it just doesn't need to be in a level script. It just has to go directly after the applymovement it is holding in place.
      Really? I thought it would reset if you leave the map :O

      Quote:
      Originally Posted by kj3400 View Post
      So if I put that in, I can guarantee the particular ow's not going to move when I leave the map?
      Yes good Samaritan.
      __________________
      ...
        #7629    
      Old January 28th, 2013 (2:43 PM). Edited January 28th, 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 kj3400 View Post
        So if I put that in, I can guarantee the particular ow's not going to move when I leave the map?
        If done properly, yes. If you don't care what direction it faces, then you don't need the sprite behave. I believe a basic list of behaviors is:

        0 = face down
        1 = face up
        2 = face left
        3 = face right

        Not sure, but after a few tries you'll get it right.

        Note: These behaviors will not line up with the ones in A-map, trust me, I've tried.

        Quote:
        Originally Posted by FBI agent View Post
        Really? I thought it would reset if you leave the map :O
        Depends, the command "movesprite" is not permanent. "Movesprite2" is permanent.

        You do realize that there is a command database in XSE if you just hit F1, right? That is where I learned how to use half of these commands:).

        Also, level scripts are pretty much the same as regular scripts, they just activate when you enter the map, rather than activating on a person event or an s-tile.
        __________________

        Paired with Simba
          #7630    
        Old January 28th, 2013 (2:50 PM).
        kj3400's Avatar
        kj3400 kj3400 is offline
        Wants a Magneton for a Charger
           
          Join Date: Mar 2012
          Gender: Male
          Nature: Lax
          Posts: 53
          Ok, thanks guys, it'll be good to finally learn all the ins and outs of this scripting business :P
            #7631    
          Old January 28th, 2013 (4:11 PM).
          FBI's Avatar
          FBI FBI is offline
          Free supporter
           
          Join Date: Jan 2013
          Location: Unknown Island
          Gender: Male
          Posts: 1,858
          For running shoes if I just set the flag 0x82F does it give them to me? What to do?
          __________________
          ...
            #7632    
          Old January 28th, 2013 (4:22 PM).
          DrFuji's Avatar
          DrFuji DrFuji is online now
          Heiki Hecchara‌‌
           
          Join Date: Sep 2009
          Location: Aussie
          Age: 25
          Gender: Male
          Nature: Jolly
          Posts: 1,395
          Quote:
          Originally Posted by FBI agent View Post
          For running shoes if I just set the flag 0x82F does it give them to me? What to do?
          Yeah, a few of the early things that look like items are actually activated by flags in FRLG (e.g the Pokedex). Just set the flag in a script and you should be able to run around in appropriate locations :P
          __________________
            #7633    
          Old January 28th, 2013 (4:22 PM).
          kj3400's Avatar
          kj3400 kj3400 is offline
          Wants a Magneton for a Charger
             
            Join Date: Mar 2012
            Gender: Male
            Nature: Lax
            Posts: 53
            Quote:
            Originally Posted by FBI agent View Post
            For running shoes if I just set the flag 0x82F does it give them to me? What to do?
            I don't see why it wouldn't.
              #7634    
            Old January 28th, 2013 (4:26 PM).
            thetripplenine's Avatar
            thetripplenine thetripplenine is offline
            tripple.
               
              Join Date: Jan 2013
              Location: California
              Age: 20
              Gender: Male
              Nature: Bold
              Posts: 98
              DrFuji I do not understand the new xse, it's so much more different...
                #7635    
              Old January 28th, 2013 (4:30 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 thetripplenine View Post
                DrFuji I do not understand the new xse, it's so much more different...
                I felt the same way, don't worry. As you practice and get used to it you willfind it much easier to use and more powerful. Donmt worry, it just takes a little time.
                __________________

                Paired with Simba
                  #7636    
                Old January 28th, 2013 (4:45 PM).
                FBI's Avatar
                FBI FBI is offline
                Free supporter
                 
                Join Date: Jan 2013
                Location: Unknown Island
                Gender: Male
                Posts: 1,858
                Not working D:
                The variable 0x5004 is just a variable I was using to keep track of gender btw. There were not problems with the script outside running shoe (everything would work in the order/way I wanted, but running shoes were never given). After the end of the script I tried it out and I just can't run :(

                This is FireRed.

                Spoiler:

                #dyn 0x740000
                #org @start
                lock
                faceplayer
                textcolor RED
                checkflag 0x2A
                if TRUE jump @got
                msgbox @text
                callstd MSG_NORMAL
                release
                end

                #org @got
                checkflag 0x82F
                if TRUE jump @GL
                compare 0x5004 0x1
                if == call @bfine
                compare 0x5004 0x0
                if == jump @gfine
                setflag FR_RUNNING_SHOES 'This is equivalent to setflag 0x82F
                textcolor GRAY
                fanfare 0x101
                waitfanfare
                msgbox @recieve
                callstd MSG_NORMAL
                end

                #org @gfine
                msgbox @fine
                callstd MSG_NORMAL
                return

                #org @bfine
                msgbox @boyfine
                callstd MSG_NORMAL
                return

                #org @GL
                textcolor BLUE
                msgbox @heal
                callstd MSG_NORMAL
                release
                end

                #org @heal
                = MOM: If you ever feel tired,\nyou can always rest in your bed.

                #org @recieve
                = \v\h01 recieved RUNNING SHOES!

                #org @boyfine
                = MOM: \v\h01 my dear son, I'm so\nproud of you. I remember when you\lused to get the lab chemicals all\lover your coat and when the PROF.-\pOh nevermind that, if you're going\lon a journey atleast take these\lwith you, they'll be helpful.

                #org @fine
                = MOM: \v\h01 my dear daughter, I'm so\nproud of you. I remember when you\lused to get the lab chemicals all\lover your coat and when the PROF.-\pOh nevermind that, if you're going\lon a journey atleast take these\lwith you, they'll be helpful.

                #org @text
                = MOM: PROF. CEDAR wanted to have a\nword with you, \v\h01. You should\lgo see what the kind man wants. He\lsaid he'd by near the storage room.
                __________________
                ...
                  #7637    
                Old January 28th, 2013 (4:50 PM).
                PoisonEmeralds's Avatar
                PoisonEmeralds PoisonEmeralds is offline
                Rookie ROM Hacker
                   
                  Join Date: Jan 2013
                  Location: United Kingdom
                  Age: 22
                  Gender: Male
                  Nature: Calm
                  Posts: 18
                  If i'm using pokemon ruby and i've made events using poketronic and advance map how do I make it so the event dissapears from the map once you've battled or captured the pokemon?
                  __________________
                  The one and only.
                  -PoisonEmeralds
                    #7638    
                  Old January 28th, 2013 (5:01 PM).
                  FBI's Avatar
                  FBI FBI is offline
                  Free supporter
                   
                  Join Date: Jan 2013
                  Location: Unknown Island
                  Gender: Male
                  Posts: 1,858
                  Quote:
                  Originally Posted by PoisonEmeralds View Post
                  If i'm using pokemon ruby and i've made events using poketronic and advance map how do I make it so the event dissapears from the map once you've battled or captured the pokemon?
                  You can't do it using Poketronic (I'm pretty sure). You gotta use a script editor.
                  __________________
                  ...
                    #7639    
                  Old January 28th, 2013 (5:15 PM).
                  PoisonEmeralds's Avatar
                  PoisonEmeralds PoisonEmeralds is offline
                  Rookie ROM Hacker
                     
                    Join Date: Jan 2013
                    Location: United Kingdom
                    Age: 22
                    Gender: Male
                    Nature: Calm
                    Posts: 18
                    Quote:
                    Originally Posted by FBI agent View Post
                    You can't do it using Poketronic (I'm pretty sure). You gotta use a script editor.
                    You can you just use the wild pokemon battle script inserter with poketronic then use free space finder
                    __________________
                    The one and only.
                    -PoisonEmeralds
                      #7640    
                    Old January 28th, 2013 (5:17 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
                      Actually, you can. In the bottom, where it says flag, enter the flag. Then compile. Now, open up your script in XSE and delete the line that says clearflag 0x_____. Now, compile it again. Then, go take that flag number and set it as the person I.D. In A-map.

                      The person won't disappear right away, but you won't be able to battle again. Look about 5 posts above to find out how to make it dissapear on the spot. Remeber, if you add to a poketronic script, you must repoint.
                      __________________

                      Paired with Simba
                        #7641    
                      Old January 28th, 2013 (5:18 PM).
                      PoisonEmeralds's Avatar
                      PoisonEmeralds PoisonEmeralds is offline
                      Rookie ROM Hacker
                         
                        Join Date: Jan 2013
                        Location: United Kingdom
                        Age: 22
                        Gender: Male
                        Nature: Calm
                        Posts: 18
                        Quote:
                        Originally Posted by karatekid552 View Post
                        Actually, you can. In the bottom, where it says flag, enter the flag. Then compile. Now, open up your script in XSE and delete the line that says clearflag 0x_____. Now, compile it again. Then, go take that flag number and set it as the person I.D. In A-map.

                        The person won't disappear right away, but you won't be able to battle again. Look about 5 posts above to find out how to make it dissapear on the spot. Remeber, if you add to a poketronic script, you must repoint.
                        Okay cheers bro I'll keep that in mind :P
                        __________________
                        The one and only.
                        -PoisonEmeralds
                          #7642    
                        Old January 28th, 2013 (5:23 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 PoisonEmeralds View Post
                          Okay cheers bro I'll keep that in mind :P
                          Cool, but I just remebered that the post was on the other help thread.

                          Just add this after the battle to make it dissapear:

                          fadescreen 0x1
                          hidesprite 0xsprite#
                          fadescreen 0x0

                          Remember to repoint.
                          __________________

                          Paired with Simba
                            #7643    
                          Old January 28th, 2013 (5:25 PM).
                          PoisonEmeralds's Avatar
                          PoisonEmeralds PoisonEmeralds is offline
                          Rookie ROM Hacker
                             
                            Join Date: Jan 2013
                            Location: United Kingdom
                            Age: 22
                            Gender: Male
                            Nature: Calm
                            Posts: 18
                            Quote:
                            Originally Posted by karatekid552 View Post
                            Cool, but I just remebered that the post was on the other help thread.

                            Just add this after the battle to make it dissapear:

                            fadescreen 0x1
                            hidesprite 0xsprite#
                            fadescreen 0x0

                            Remember to repoint.
                            Thanks you're a legend <3 (No homo)
                            __________________
                            The one and only.
                            -PoisonEmeralds
                              #7644    
                            Old January 28th, 2013 (5:46 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 FBI agent View Post
                              Not working D:
                              The variable 0x5004 is just a variable I was using to keep track of gender btw. There were not problems with the script outside running shoe (everything would work in the order/way I wanted, but running shoes were never given). After the end of the script I tried it out and I just can't run :(

                              This is FireRed.

                              Spoiler:

                              #dyn 0x740000
                              #org @start
                              lock
                              faceplayer
                              textcolor RED
                              checkflag 0x2A
                              if TRUE jump @got
                              msgbox @text
                              callstd MSG_NORMAL
                              release
                              end

                              #org @got
                              checkflag 0x82F
                              if TRUE jump @GL
                              compare 0x5004 0x1
                              if == call @bfine
                              compare 0x5004 0x0
                              if == jump @gfine
                              setflag FR_RUNNING_SHOES 'This is equivalent to setflag 0x82F
                              textcolor GRAY
                              fanfare 0x101
                              waitfanfare
                              msgbox @recieve
                              callstd MSG_NORMAL
                              end

                              #org @gfine
                              msgbox @fine
                              callstd MSG_NORMAL
                              return

                              #org @bfine
                              msgbox @boyfine
                              callstd MSG_NORMAL
                              return

                              #org @GL
                              textcolor BLUE
                              msgbox @heal
                              callstd MSG_NORMAL
                              release
                              end

                              #org @heal
                              = MOM: If you ever feel tired,\nyou can always rest in your bed.

                              #org @recieve
                              = \v\h01 recieved RUNNING SHOES!

                              #org @boyfine
                              = MOM: \v\h01 my dear son, I'm so\nproud of you. I remember when you\lused to get the lab chemicals all\lover your coat and when the PROF.-\pOh nevermind that, if you're going\lon a journey atleast take these\lwith you, they'll be helpful.

                              #org @fine
                              = MOM: \v\h01 my dear daughter, I'm so\nproud of you. I remember when you\lused to get the lab chemicals all\lover your coat and when the PROF.-\pOh nevermind that, if you're going\lon a journey atleast take these\lwith you, they'll be helpful.

                              #org @text
                              = MOM: PROF. CEDAR wanted to have a\nword with you, \v\h01. You should\lgo see what the kind man wants. He\lsaid he'd by near the storage room.
                              Simple misspelling. It's FR_RUNNINGSHOES on XSE v.1.1.1, and just RUNNINGSHOES on XSE v.1.0.0.
                              __________________

                              Paired with Simba
                                #7645    
                              Old January 28th, 2013 (6:29 PM).
                              FBI's Avatar
                              FBI FBI is offline
                              Free supporter
                               
                              Join Date: Jan 2013
                              Location: Unknown Island
                              Gender: Male
                              Posts: 1,858
                              Quote:
                              Originally Posted by karatekid552 View Post
                              Simple misspelling. It's FR_RUNNINGSHOES on XSE v.1.1.1, and just RUNNINGSHOES on XSE v.1.0.0.
                              I tried it in XSE and it didn't work :S
                              I even substituted to word for actual 0x82F :/
                              __________________
                              ...
                                #7646    
                              Old January 28th, 2013 (6:45 PM). Edited January 28th, 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
                                Have you made sure the B-button works?



                                Edit: I compiled your script exactly as is in PKSVUI only changing the setflag to 0x82F.
                                I also added a player that just clears 0x82F, to get rid of my running shoes, and sets the flag 0x2A for your script to run. After setting and clearing those flags. The origional script game me running shoes that work, however the @fine messages didn't run. I'll look into it more.
                                __________________

                                Paired with Simba
                                  #7647    
                                Old January 28th, 2013 (7:39 PM).
                                FBI's Avatar
                                FBI FBI is offline
                                Free supporter
                                 
                                Join Date: Jan 2013
                                Location: Unknown Island
                                Gender: Male
                                Posts: 1,858
                                Quote:
                                Originally Posted by karatekid552 View Post
                                Have you made sure the B-button works?



                                Edit: I compiled your script exactly as is in PKSVUI only changing the setflag to 0x82F.
                                I also added a player that just clears 0x82F, to get rid of my running shoes, and sets the flag 0x2A for your script to run. After setting and clearing those flags. The origional script game me running shoes that work, however the @fine messages didn't run. I'll look into it more.
                                You need to setvar 0x5004 to 0x0 for female and 0x1 for male, should work then. I'm gonna try it on a clean rom and see what happens :P
                                __________________
                                ...
                                  #7648    
                                Old January 28th, 2013 (8:17 PM).
                                thetripplenine's Avatar
                                thetripplenine thetripplenine is offline
                                tripple.
                                   
                                  Join Date: Jan 2013
                                  Location: California
                                  Age: 20
                                  Gender: Male
                                  Nature: Bold
                                  Posts: 98
                                  Now I can't work this Xse... For example this script won't do anything, it just freezes the game.

                                  Spoiler:
                                  #dynamic 0x9C0000

                                  #org @start
                                  movesprite 0x215 0x6 0x2
                                  faceplayer
                                  msgbox @1 0x6
                                  release
                                  end

                                  #org @1
                                  = Hi [player]! Ignore some of what\nProfessor Birch said. Your mission\lis to infultrate Team Magma's\lheadquarters. Go north of this\lhouse, enter the cave, receive\lyour pokemon, and find the sailor\lwho will send you to the\lrecruitment training.


                                  Btw it's supposed to move the mother in emerald
                                    #7649    
                                  Old January 28th, 2013 (8:30 PM).
                                  FBI's Avatar
                                  FBI FBI is offline
                                  Free supporter
                                   
                                  Join Date: Jan 2013
                                  Location: Unknown Island
                                  Gender: Male
                                  Posts: 1,858
                                  Quote:
                                  Originally Posted by thetripplenine View Post
                                  Now I can't work this Xse... For example this script won't do anything, it just freezes the game.

                                  Spoiler:
                                  #dynamic 0x9C0000

                                  #org @start
                                  movesprite 0x215 0x6 0x2
                                  faceplayer
                                  msgbox @1 0x6
                                  release
                                  end

                                  #org @1
                                  = Hi [player]! Ignore some of what\nProfessor Birch said. Your mission\lis to infultrate Team Magma's\lheadquarters. Go north of this\lhouse, enter the cave, receive\lyour pokemon, and find the sailor\lwho will send you to the\lrecruitment training.


                                  Btw it's supposed to move the mother in emerald
                                  For your Dynamic offset I'd start somewhere lower, maybe 740000? There's a good chunk of free space there. Though the problem is you're using a talk script and you've got a movesprite command in it? I assume you want applymovement not movesprite.

                                  Try to just run a talk script without moving. If that works then learn the applymovement command (there's more information on command help in the help tab of XSE).

                                  If you're really having trouble, PKSV has a neat script generator and I personally learned a lot of that from it (and decompiling ingame scripts).
                                  __________________
                                  ...
                                    #7650    
                                  Old January 28th, 2013 (8:53 PM). Edited January 28th, 2013 by thetripplenine.
                                  thetripplenine's Avatar
                                  thetripplenine thetripplenine is offline
                                  tripple.
                                     
                                    Join Date: Jan 2013
                                    Location: California
                                    Age: 20
                                    Gender: Male
                                    Nature: Bold
                                    Posts: 98
                                    Quote:
                                    Originally Posted by FBI agent View Post
                                    For your Dynamic offset I'd start somewhere lower, maybe 740000? There's a good chunk of free space there. Though the problem is you're using a talk script and you've got a movesprite command in it? I assume you want applymovement not movesprite.

                                    Try to just run a talk script without moving. If that works then learn the applymovement command (there's more information on command help in the help tab of XSE).

                                    If you're really having trouble, PKSV has a neat script generator and I personally learned a lot of that from it (and decompiling ingame scripts).

                                    No I'm trying to use movesprite because I want the mother to say that to the player...

                                    Btw I just tried to use PKSVU and it came up with this... Game still freezes, nothing happens...

                                    Spoiler:
                                    '---------------
                                    #org 0x74673B
                                    lockall
                                    checkflag 0x828
                                    if 0x1 goto 0x886989B
                                    preparemsg 0x8869867 '"You cannot enter without picking a..."
                                    waitmsg
                                    waitkeypress
                                    releaseall
                                    end

                                    '---------------
                                    #org 0x86989B
                                    preparemsg 0x88699CE '"Oh, I'm sorry I didn't realize you..."
                                    waitmsg
                                    waitkeypress
                                    fadescreen 0x3
                                    closeonkeypress
                                    hidesprite 0x3
                                    setflag 0x828
                                    fadescreen 0x2
                                    releaseall
                                    end


                                    '---------
                                    ' Strings
                                    '---------
                                    #org 0x869867
                                    = You cannot enter without picking a\nPokémon.

                                    #org 0x8699CE
                                    = Oh, I'm sorry I didn't realize you\nwere the new recruit!
                                    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 2:23 PM.