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 (9:55 AM).
butterflye's Avatar
butterflye butterflye is offline
Dancing on the rainbow lane
     
    Join Date: Nov 2012
    Age: 22
    Gender: Female
    Nature: Calm
    Posts: 8
    Yes, thank you, it finally works.

    But I have another problem and I hope that my another request doesn't tire anybody. The same script is going to have one, a strange anomaly. If there is a choice of Yes / No, when I click Yes, the game takes it as click No, and I don't get Pokemon. Does anyone know and could cause me the reason? I totally am beginner in scripting...

    Again, this is the script:
    Spoiler:
    #dynamic 0xD0052F

    #org @start
    lock
    faceplayer
    checkflag 0x828
    if 0x1 goto @done
    msgbox @1 0x5
    compare LASTRESULT 0x300D
    if 0x1 goto @take
    msgbox @2 0x6
    release
    end

    #org @done
    msgbox @6 0x6
    release
    end

    #org @take
    givepokemon 0x376 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @3 0x4
    setflag 0x828
    msgbox @5 0x6
    release
    end

    #org @1
    = You! Come here. Remember, what I\nsaid. Here, take this Absol. He\lseems to loved you, but I don't\lknow, how he can make it.

    #org @2
    = Humph. You have no heart.

    #org @3
    = [black_rs]You received an Absol!

    #org @5
    = Better not hurt him!

    #org @6
    = I hope Absol is fine.
    __________________
    Yes, I'm Polish.

    Supports:
    Spoiler:
    | |


    Relevant Advertising!

      #7627    
    Old January 28th, 2013 (10:23 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 butterflye View Post
      Yes, thank you, it finally works.

      But I have another problem and I hope that my another request doesn't tire anybody. The same script is going to have one, a strange anomaly. If there is a choice of Yes / No, when I click Yes, the game takes it as click No, and I don't get Pokemon. Does anyone know and could cause me the reason? I totally am beginner in scripting...

      Again, this is the script:
      Spoiler:
      #dynamic 0xD0052F

      #org @start
      lock
      faceplayer
      checkflag 0x828
      if 0x1 goto @done
      msgbox @1 0x5
      compare LASTRESULT 0x300D
      if 0x1 goto @take
      msgbox @2 0x6
      release
      end

      #org @done
      msgbox @6 0x6
      release
      end

      #org @take
      givepokemon 0x376 0x5 0x0 0x0 0x0 0x0
      fanfare 0x13E
      msgbox @3 0x4
      setflag 0x828
      msgbox @5 0x6
      release
      end

      #org @1
      = You! Come here. Remember, what I\nsaid. Here, take this Absol. He\lseems to loved you, but I don't\lknow, how he can make it.

      #org @2
      = Humph. You have no heart.

      #org @3
      = [black_rs]You received an Absol!

      #org @5
      = Better not hurt him!

      #org @6
      = I hope Absol is fine.

      It's var 0x800D, that is LASTRESULT. It's on line 10, you're checking the wrong var.
      __________________

      Paired with Simba
        #7628    
      Old January 28th, 2013 (10:31 AM).
      SpadeEdge16's Avatar
      SpadeEdge16 SpadeEdge16 is offline
         
        Join Date: May 2012
        Gender: Male
        Posts: 154
        Quote:
        Originally Posted by karatekid552 View Post
        It's var 0x800D, that is LASTRESULT. It's on line 10, you're checking the wrong var.
        like i was saying, I get 300 and 800 mixed up sometimes haha. x3
        but yeah, betterflye, if the 800D works for your script, then forget what i said about setting the compare to 0x0.
          #7629    
        Old January 28th, 2013 (11:40 AM).
        thetripplenine's Avatar
        thetripplenine thetripplenine is offline
        999
           
          Join Date: Jan 2013
          Location: California
          Age: 19
          Gender: Male
          Nature: Bold
          Posts: 98
          Quote:
          Originally Posted by DrFuji View Post
          It doesn't work because I accidentally misspelled Riolu on that dynamic pointer so it didn't know where to connect. After correcting that it compiled perfectly in my XSE
          Ok ya so with the new xse it works better but I don't know why but i'm not receiving the pokemon.

          Proof
            #7630    
          Old January 28th, 2013 (11:45 AM).
          masterquestmq's Avatar
          masterquestmq masterquestmq is offline
          Enthusiastic Rom Hacker
             
            Join Date: Nov 2010
            Gender: Male
            Posts: 125
            Quote:
            Originally Posted by thetripplenine View Post
            Ok ya so with the new xse it works better but I don't know why but i'm not receiving the pokemon.

            Proof

            You actually have the pokemon BUT you didn't activate the pokemon party to appear on the menu
            go back to the script and insert this line (I think you're using emerald right?)
            setflag 0x860

            and if u want the pokedex insert this line
            setflag 0x861


            hope this helps...
              #7631    
            Old January 28th, 2013 (12:04 PM).
            thetripplenine's Avatar
            thetripplenine thetripplenine is offline
            999
               
              Join Date: Jan 2013
              Location: California
              Age: 19
              Gender: Male
              Nature: Bold
              Posts: 98
              Quote:
              Originally Posted by masterquestmq View Post
              You actually have the pokemon BUT you didn't activate the pokemon party to appear on the menu
              go back to the script and insert this line (I think you're using emerald right?)
              setflag 0x860

              and if u want the pokedex insert this line
              setflag 0x861


              hope this helps...
              Ok thank you it worked...

              And thanks to the other people that helped me
                #7632    
              Old January 28th, 2013 (1:02 PM).
              kj3400's Avatar
              kj3400 kj3400 is offline
              Wants a Magneton for a Charger
                 
                Join Date: Mar 2012
                Gender: Male
                Nature: Lax
                Posts: 53
                Another question...
                I have a script that involves someone moving to a particular spot, but as soon as I move out of eyeshot and come back, the person reverts back to where they initially were. How would I keep them from moving back, even after exiting and entering the map again?
                  #7633    
                Old January 28th, 2013 (2:18 PM).
                FBI's Avatar
                FBI FBI is offline
                Free supporter
                • Silver Tier
                 
                Join Date: Jan 2013
                Location: Unknown Island
                Gender: Male
                Posts: 1,769
                Quote:
                Originally Posted by kj3400 View Post
                Another question...
                I have a script that involves someone moving to a particular spot, but as soon as I move out of eyeshot and come back, the person reverts back to where they initially were. How would I keep them from moving back, even after exiting and entering the map again?
                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.
                __________________
                ...
                  #7634    
                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
                    #7635    
                  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?
                      #7636    
                    Old January 28th, 2013 (2:42 PM).
                    FBI's Avatar
                    FBI FBI is offline
                    Free supporter
                    • Silver Tier
                     
                    Join Date: Jan 2013
                    Location: Unknown Island
                    Gender: Male
                    Posts: 1,769
                    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.
                    __________________
                    ...
                      #7637    
                    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
                        #7638    
                      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
                          #7639    
                        Old January 28th, 2013 (4:11 PM).
                        FBI's Avatar
                        FBI FBI is offline
                        Free supporter
                        • Silver Tier
                         
                        Join Date: Jan 2013
                        Location: Unknown Island
                        Gender: Male
                        Posts: 1,769
                        For running shoes if I just set the flag 0x82F does it give them to me? What to do?
                        __________________
                        ...
                          #7640    
                        Old January 28th, 2013 (4:22 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 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
                        __________________
                          #7641    
                        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.
                            #7642    
                          Old January 28th, 2013 (4:26 PM).
                          thetripplenine's Avatar
                          thetripplenine thetripplenine is offline
                          999
                             
                            Join Date: Jan 2013
                            Location: California
                            Age: 19
                            Gender: Male
                            Nature: Bold
                            Posts: 98
                            DrFuji I do not understand the new xse, it's so much more different...
                            __________________
                            Or Nah?
                              #7643    
                            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
                                #7644    
                              Old January 28th, 2013 (4:45 PM).
                              FBI's Avatar
                              FBI FBI is offline
                              Free supporter
                              • Silver Tier
                               
                              Join Date: Jan 2013
                              Location: Unknown Island
                              Gender: Male
                              Posts: 1,769
                              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.
                              __________________
                              ...
                                #7645    
                              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
                                  #7646    
                                Old January 28th, 2013 (5:01 PM).
                                FBI's Avatar
                                FBI FBI is offline
                                Free supporter
                                • Silver Tier
                                 
                                Join Date: Jan 2013
                                Location: Unknown Island
                                Gender: Male
                                Posts: 1,769
                                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.
                                __________________
                                ...
                                  #7647    
                                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
                                    #7648    
                                  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
                                      #7649    
                                    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
                                      __________________
                                      The one and only.
                                      -PoisonEmeralds
                                        #7650    
                                      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
                                        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
                                        Closed Thread
                                        Quick Reply

                                        Sponsored Links
                                        Thread Tools

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

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

                                        Forum Jump


                                        All times are GMT -8. The time now is 5:25 PM.