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
  #7501    
Old January 2nd, 2013 (12:37 PM).
Noossab Blue's Avatar
Noossab Blue Noossab Blue is offline
     
    Join Date: Dec 2012
    Location: USA
    Gender: Female
    Nature: Quirky
    Posts: 240
    I'm trying to alter the Bill event on Cinnabar in Fire Red to respond to a different badge (which is what I'm assuming it responds to in the first place). I want the event to start when I receive the Rainbow badge instead, but I can't find where the script checks that flag...or any flag for that matter.
    __________________
    IGN: Anna/Noossab Blue
    3DS FC: 3196 3609 8450

    Thanks to SilverGrey for the awesome banner! Click to see!
    Current as of 1/31/14: I updated again!


    Relevant Advertising!

      #7502    
    Old January 3rd, 2013 (8:20 PM). Edited January 3rd, 2013 by Herpahermaderp.
    Herpahermaderp's Avatar
    Herpahermaderp Herpahermaderp is offline
    I liek Mudkipz
       
      Join Date: Jul 2012
      Location: USA
      Age: 20
      Gender: Male
      Nature: Relaxed
      Posts: 66
      Quote:
      Originally Posted by Noossab Blue View Post
      I'm trying to alter the Bill event on Cinnabar in Fire Red to respond to a different badge (which is what I'm assuming it responds to in the first place). I want the event to start when I receive the Rainbow badge instead, but I can't find where the script checks that flag...or any flag for that matter.
      I searched through quite a bit of information trying to find the answer to this. Bill's script isn't controlled by setflag 0x826, it is actually controlled by setflag 0x62, which is run by Blaine's script after you defeat him, so if you wanted the Rainbow Badge to set the Bill scenario up, just add setflag 0x62 after her setflag 0x823. I hope this helps.
      __________________
      Y: Roak || 1177-8023-4387
        #7503    
      Old January 3rd, 2013 (11:27 PM). Edited January 3rd, 2013 by Noossab Blue.
      Noossab Blue's Avatar
      Noossab Blue Noossab Blue is offline
         
        Join Date: Dec 2012
        Location: USA
        Gender: Female
        Nature: Quirky
        Posts: 240
        Quote:
        Originally Posted by Herpahermaderp View Post
        I searched through quite a bit of information trying to find the answer to this. Bill's script isn't controlled by setflag 0x826, it is actually controlled by setflag 0x62, which is run by Blaine's script after you defeat him, so if you wanted the Rainbow Badge to set the Bill scenario up, just add setflag 0x62 after her setflag 0x823. I hope this helps.
        Thank you! it's actually a clearflag, not a setflag, but it works! Though you also have to copy the previous setvar.

        So it looks like this now:

        setvar 0x4071 0x1 (makes the scripts associated with the event run)
        clearflag 0x62 (this makes Bill's sprites appear on Cinnabar Island and in the PC in Cinnabar)

        ...and then the rest of whatever you want.
        __________________
        IGN: Anna/Noossab Blue
        3DS FC: 3196 3609 8450

        Thanks to SilverGrey for the awesome banner! Click to see!
        Current as of 1/31/14: I updated again!

          #7504    
        Old January 5th, 2013 (11:56 PM).
        tronwert's Avatar
        tronwert tronwert is offline
           
          Join Date: Jan 2013
          Gender: Male
          Posts: 5
          im having trouble with wildbattle
          game firered
          game xse

          i finished but when i click debug an error comes out
          wp.jpg

          please help
          tnx
            #7505    
          Old January 7th, 2013 (3:53 AM).
          raging-inferno-1986 raging-inferno-1986 is offline
             
            Join Date: Jul 2012
            Gender: Male
            Posts: 21
            Quote:
            Originally Posted by raging-inferno-1986 View Post
            Hi, i made the following code to get the AuroraTicket and clear the flag (so that the Vermillion sailor will let me go to Birth Island). However it didn't work.

            Code:
            #dynamic 0x800000
            
            #org @start
            lock
            faceplayer
            checkflag 0x200
            if 0x1 goto @done
            msgbox @1 0x5
            compare 0x800D 0x1
            if 0x1 goto @take
            msgbox @2 0x6
            release
            end
            
            #org @done
            msgbox @3 0x6
            release
            end
            
            #org @take
            giveitem 0x173 0x1 MSG_OBTAIN
            msgbox @3 0x6
            setflag 0x200
            clearflag 0x2F1
            release
            end
            
            #org @1
            = Hi!\pWould you like an AURORA TICKET?.\pIt will allow access to BIRTH ISLAND. 
            
            #org @2
            = That's okay. I'm sure someone\nelse will enjoy it.
            
            #org @3
            = I knew you would want it.
            What did i do wrong? Thanks.
            Please can anyone help? Thank You.
              #7506    
            Old January 7th, 2013 (5:34 PM). Edited January 16th, 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 raging-inferno-1986 View Post
              Please can anyone help? Thank You.
              I am fairly certain that flag 0x2F1 has to be set not cleared. I'm going to check some of my old posts and confirm this.
              edit: oh wow, haha it was you that asked this question in Simple Questions. umm at that time I had looked at the Vermilion guy script and the only requirements were that you had the item and those flags were clear. Let me look again. I'll edit this post within an hour to tell you of my findings.


              Okay, there was nothing wrong with your script, except that XSE, at least on mine, requires callstd 0xY.

              Ex: yours was:
              msgbox @1 0x6

              What it needs to be:
              msgbox @1
              callstd 0x6

              Don't know why, but it worked that way.

              Here is the completely working script I used. I tested it 3 times and it should work to perfection.

              Code:
              #dynamic 0x800000
              
              #org @start
              lock
              faceplayer
              checkflag 0x200
              if 0x1 goto @done
              msgbox @1
              callstd 0x5
              compare 0x800D 0x1
              if 0x1 goto @take
              msgbox @2
              callstd 0x6
              release
              end
              
              #org @done
              msgbox @3
              callstd 0x6
              release
              end
              
              #org @take
              giveitem 0x173 0x1 0x0
              msgbox @3
              callstd 0x6
              setflag 0x200
              clearflag 0x2F1
              release
              end
              
              #org @1
              = Hi!pWould you like an AURORA TICKET?.pIt will allow access to BIRTH ISLAND. 
              
              #org @2
              = That's okay. I'm sure someonenelse will enjoy it.
              
              #org @3
              = I knew you would want it.

              Edit: I am adding this all of my old posts dealing with callstd instead of an inline command. Jambo51 enlightened me to the fact that I was using an old XSE (v. 1.0.0) in which inline msgbox commands are not supported and you must callstd. In v. 1.1.1, the inline commands such as MSG_NORMAL are supported. Sorry for any confusion I might have caused.
              __________________

              Paired with Simba
                #7507    
              Old January 8th, 2013 (7:54 AM).
              raging-inferno-1986 raging-inferno-1986 is offline
                 
                Join Date: Jul 2012
                Gender: Male
                Posts: 21
                Oh wowl, thank you. My hacking had halted because of this
                  #7508    
                Old January 8th, 2013 (10:26 AM). Edited January 8th, 2013 by Diszle.
                Diszle Diszle is offline
                   
                  Join Date: Feb 2012
                  Gender: Female
                  Posts: 3
                  Hello you all!

                  Im Diszle and have been playing rom hacks for quite a while. Usually just the altered versions, in which you can get all available pokemon, or with adjusted movesets, etc.

                  Now I am ready to do a little hacking of my own. The idea is to just alter pokemon Fire Red to some kind of new pokemon yellow. The idea is that my starter is going to be Pikachu, Gary's starter is going to be Eevee and during the game little events pop up in which I will receive the other three first gen starters. Changing the starters was no problem and I also found a script online which, supposedly, will make people give me the three first gen starters.

                  But, XSE isnt working for me. When I want to open the program, so I can add the script, it immediately closes again. I just cant get it to work. Are there any other Scripting programs in which I can use the GivePokemon script? How can I make people give me random pokemon without XSE?

                  I hope anyone has the answer.

                  - I know that most people think yellow remakes are quite lame, but I always loved the game and its gonna be a personal hack, just to try things out!


                  EDIT! Okay, so I figured I could do something similar with PKSVUI. I added a person event to Pallet Town, so I could check it quickly. I added the give pokemon script to this person, using the Space Finder. But now, I cannot talk to this person. If I face this person and click the A-button to start talking, the person does face me, but the conversation doesn't start.

                  Here is my script: (got it from google)

                  #dynamic 0x800800

                  #org @start
                  lock
                  faceplayer
                  checkflag 0x1200
                  if 0x1 goto @done
                  msgbox @question 0x5
                  compare LASTRESULT 0x1
                  if 0x1 goto @givepokemon
                  msgbox @nothanks 0x6
                  release
                  end

                  #org @done
                  msgbox @checkup 0x6
                  release
                  end

                  #org @givepokemon
                  msgbox @thanks 0x6
                  givepokemon 0x01 0x5 0x0 0x0 0x0 0x0
                  fanfare 0x13E
                  msgbox @recieved 0x6
                  waitfanfare
                  setflag 0x1200
                  msgbox @thanks2 0x6
                  release
                  end

                  #org @question
                  = Hey there!\pYou seem like a nice person!\nWould you like this Bulbasaur?

                  #org @nothanks
                  = Oh? That's to bad.\pCome back if you change your mind.

                  #org @thanks
                  = Oh! That's GREAT!\pHere you go!

                  #org @thanks2
                  = Thanks again! I think it will have\nmore fun with you than with me.

                  #org @recieved
                  = \v\h01 received a BULBASAUR!

                  #org @checkup
                  = How's that Bulbasaur doing?\nHopefully good.
                    #7509    
                  Old January 8th, 2013 (2:57 PM).
                  tajaros's Avatar
                  tajaros tajaros is offline
                  Hi I'm dawg
                     
                    Join Date: Apr 2012
                    Location: Philippines
                    Age: 19
                    Gender: Male
                    Nature: Timid
                    Posts: 857
                    Quote:
                    Originally Posted by Diszle View Post
                    Hello you all!

                    Im Diszle and have been playing rom hacks for quite a while. Usually just the altered versions, in which you can get all available pokemon, or with adjusted movesets, etc.

                    Now I am ready to do a little hacking of my own. The idea is to just alter pokemon Fire Red to some kind of new pokemon yellow. The idea is that my starter is going to be Pikachu, Gary's starter is going to be Eevee and during the game little events pop up in which I will receive the other three first gen starters. Changing the starters was no problem and I also found a script online which, supposedly, will make people give me the three first gen starters.

                    But, XSE isnt working for me. When I want to open the program, so I can add the script, it immediately closes again. I just cant get it to work. Are there any other Scripting programs in which I can use the GivePokemon script? How can I make people give me random pokemon without XSE?

                    I hope anyone has the answer.

                    - I know that most people think yellow remakes are quite lame, but I always loved the game and its gonna be a personal hack, just to try things out!


                    EDIT! Okay, so I figured I could do something similar with PKSVUI. I added a person event to Pallet Town, so I could check it quickly. I added the give pokemon script to this person, using the Space Finder. But now, I cannot talk to this person. If I face this person and click the A-button to start talking, the person does face me, but the conversation doesn't start.

                    Here is my script: (got it from google)

                    #dynamic 0x800800

                    #org @start
                    lock
                    faceplayer
                    checkflag 0x1200
                    if 0x1 goto @done
                    msgbox @question 0x5
                    compare LASTRESULT 0x1
                    if 0x1 goto @givepokemon
                    msgbox @nothanks 0x6
                    release
                    end

                    #org @done
                    msgbox @checkup 0x6
                    release
                    end

                    #org @givepokemon
                    msgbox @thanks 0x6
                    givepokemon 0x01 0x5 0x0 0x0 0x0 0x0
                    fanfare 0x13E
                    msgbox @recieved 0x6
                    waitfanfare
                    setflag 0x1200
                    msgbox @thanks2 0x6
                    release
                    end

                    #org @question
                    = Hey there!\pYou seem like a nice person!\nWould you like this Bulbasaur?

                    #org @nothanks
                    = Oh? That's to bad.\pCome back if you change your mind.

                    #org @thanks
                    = Oh! That's GREAT!\pHere you go!

                    #org @thanks2
                    = Thanks again! I think it will have\nmore fun with you than with me.

                    #org @recieved
                    = \v\h01 received a BULBASAUR!

                    #org @checkup
                    = How's that Bulbasaur doing?\nHopefully good.
                    Um, this is easily fixed. Go to your XSE folder and open the settings file and search there "AutoUpateCheck=1" change 1 to 0 that's it. :)
                    __________________
                      #7510    
                    Old January 8th, 2013 (10:26 PM).
                    Diszle Diszle is offline
                       
                      Join Date: Feb 2012
                      Gender: Female
                      Posts: 3
                      Hi there, thanks for you quick reply.

                      - But this isnt working for me. I dont have the settings file your talking about. I tried to re-download it, and again, the settings file wasnt in it. So I guess Im stuck with PKSVUI, which is fine with me.

                      But then the other question. We is the person I added the GivePokemon script facing me, but not talking to me? Does anyone have an idea?

                      Thnx in advance!
                        #7511    
                      Old January 9th, 2013 (3:53 AM). Edited January 16th, 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 Diszle View Post
                        Hi there, thanks for you quick reply.

                        - But this isnt working for me. I dont have the settings file your talking about. I tried to re-download it, and again, the settings file wasnt in it. So I guess Im stuck with PKSVUI, which is fine with me.

                        But then the other question. We is the person I added the GivePokemon script facing me, but not talking to me? Does anyone have an idea?

                        Thnx in advance!
                        I use XSE so I don't know how it works in PKSVUI, but I know that if your your "boxset" or "callstd" commands aren't done properly, this will happen. If someone could help my explanation by adding how to do this is PKSVUI, it would be nice.




                        Edit: I am adding this all of my old posts dealing with callstd instead of an inline command. Jambo51 enlightened me to the fact that I was using an old XSE (v. 1.0.0) in which inline msgbox commands are not supported and you must callstd. In v. 1.1.1, the inline commands such as MSG_NORMAL are supported. Sorry for any confusion I might have caused.
                        __________________

                        Paired with Simba
                          #7512    
                        Old January 9th, 2013 (7:03 AM). Edited January 9th, 2013 by Diszle.
                        Diszle Diszle is offline
                           
                          Join Date: Feb 2012
                          Gender: Female
                          Posts: 3
                          Hi there,

                          So, by now I've installed XSE on another laptop and there it did have the settings file. The file wasn't complete though, so I found a file in the Toolbox thread, to be used in the XSE settings file, which I did. I copied the file to the right laptop and now I am able to use XSE! Yeah! Happy face.

                          I am going to mess around with XSE now, hoping that I will find my way. Just another quick question, can I open a rom in XSE too? So I can compile the script with the rom?

                          And for KarateKid in particular, what would you do different with this script when using XSE?

                          Thanks in advance!

                          EDIT: I found out how to open a rom so I can compile the script with the rom in XSE, but now the problem is that my script is wrong. Im waiting patiently for anyone to help me out! =)

                          I dont know what I did, but it's working now! Time to look up all the 'yellow' events and try to put them in this FireRed! Happy hacking.
                            #7513    
                          Old January 9th, 2013 (1:38 PM). Edited January 16th, 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
                            Okay, I don't quite know all the differences between PKSVUI and XSE, but I know that in XSE, a message box looks like this:

                            textcolor 0xY (not needed, but if you want)
                            msgbox @msg
                            callstd 0xZ

                            #org @msg
                            = hey, it's a message!

                            The command "boxset" is interchangeable with callstd here. For a list of strands to call, consult diego's mega awesome scripting tutorial.

                            The problem with your script it that it doesn't callstd. I don't know why all the scripts are like this. Did XSE used to support calling the strand in the msgbox line? Anyways, that doesn't work in XSE. So, whenever you see:

                            msgbox @msg 0xZ

                            Change it to:

                            msgbox @msg
                            callstd 0xZ


                            Edit: I am adding this all of my old posts dealing with callstd instead of an inline command. Jambo51 enlightened me to the fact that I was using an old XSE (v. 1.0.0) in which inline msgbox commands are not supported and you must callstd. In v. 1.1.1, the inline commands such as MSG_NORMAL are supported. Sorry for any confusion I might have caused. The above methood does workfor both versions, but you can do it the other way on XSE v. 1.1.1.
                            __________________

                            Paired with Simba
                              #7514    
                            Old January 10th, 2013 (5:39 AM).
                            QuartierGenerale QuartierGenerale is offline
                               
                              Join Date: Oct 2012
                              Posts: 53
                              Hello,

                              i'm not able to find the script where the hero receive the World Map in Pokemon Ruby. So i'm not able to give to hero the world map in the place i want in my hack rom.

                              So the my questions are these two:

                              1. Where can i find the offset for the script where the hero receive the world map in Ruby?
                              2. If i don't have the above, do you known the way for give the world map to the hero?

                              ps. i'm using PKSV, but if u have only script for XSE is the same.

                              Thanks a lot, bye bye
                                #7515    
                              Old January 11th, 2013 (10:41 AM). Edited January 11th, 2013 by wierddude22.
                              wierddude22's Avatar
                              wierddude22 wierddude22 is offline
                              New hacker
                                 
                                Join Date: Aug 2011
                                Location: My house
                                Age: 22
                                Gender: Male
                                Nature: Jolly
                                Posts: 24
                                Been a while since i was here

                                Anyway, this is a script for fire-red that i can't seem to find out what is wrong with it

                                Spoiler:
                                #dynamic 0x800000

                                #org @start
                                checkflag 0x1004
                                if 0x1 goto @rest
                                release
                                end

                                #org @rest
                                clearflag 0x1004
                                message @mess 0x6
                                release
                                end

                                #org @mess
                                = MOVE OUT TO THE CAVERN!


                                It freezes when it gets to the clearflag command.
                                Also it is on the green S tiles in A-Map


                                Thanks in advance

                                Quote:
                                Originally Posted by Kyouhei_ii00 View Post
                                There isn't a tick box in the events of the person. Only ( trainer) setting then a text box with $00 as default. I use advance map 1.95.
                                In that box, set it as $01
                                  #7516    
                                Old January 11th, 2013 (1:56 PM). Edited January 16th, 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 wierddude22 View Post
                                  Been a while since i was here

                                  Anyway, this is a script for fire-red that i can't seem to find out what is wrong with it

                                  Spoiler:
                                  #dynamic 0x800000

                                  #org @start
                                  checkflag 0x1004
                                  if 0x1 goto @rest
                                  release
                                  end

                                  #org @rest
                                  clearflag 0x1004
                                  message @mess 0x6
                                  release
                                  end

                                  #org @mess
                                  = MOVE OUT TO THE CAVERN!


                                  It freezes when it gets to the clearflag command.
                                  Also it is on the green S tiles in A-Map


                                  Thanks in advance
                                  I feel like I've said this a lot lately, but I don't mind answering again, even though it's only two posts above.

                                  Anyways, in XSE, this doesn't work:

                                  msgbox @whatever 0x6


                                  I don't know why it doesn't, was this feature in an earlier XSE? Anyways, you need to callstd.
                                  The correct XSE way is:

                                  msgbox @whatever
                                  callstd 0x6

                                  (or "boxset 0x6" if you prefer)


                                  By the way, I love your picture.:)



                                  Edit: I am adding this all of my old posts dealing with callstd instead of an inline command. Jambo51 enlightened me to the fact that I was using an old XSE (v. 1.0.0) in which inline msgbox commands are not supported and you must callstd. In v. 1.1.1, the inline commands such as MSG_NORMAL are supported. Sorry for any confusion I might have caused.
                                  Quote:
                                  Originally Posted by QuartierGenerale View Post
                                  Hello,

                                  i'm not able to find the script where the hero receive the World Map in Pokemon Ruby. So i'm not able to give to hero the world map in the place i want in my hack rom.

                                  So the my questions are these two:

                                  1. Where can i find the offset for the script where the hero receive the world map in Ruby?
                                  2. If i don't have the above, do you known the way for give the world map to the hero?

                                  ps. i'm using PKSV, but if u have only script for XSE is the same.

                                  Thanks a lot, bye bye
                                  When you say world map, I'm assuming you are talking about the Pokenav. This isn't an item, like the Town Map in Firered, rather it is flag set by Mr. Stone. Through a quick search, I found it in Seth's XSE tutorial. The flag that needs to be set is 0x802.
                                  __________________

                                  Paired with Simba
                                    #7517    
                                  Old January 12th, 2013 (6:46 PM).
                                  masterquestmq's Avatar
                                  masterquestmq masterquestmq is offline
                                  Enthusiastic Rom Hacker
                                     
                                    Join Date: Nov 2010
                                    Gender: Male
                                    Posts: 127
                                    just wondering how do I disable a setvar?
                                    I made a script where all wild pokemon will be 3 levels lower than ur strongest pokemon in the party. found this to be a bit useless in a long game so I want to disable this variable. Is there a command that i need to use?
                                      #7518    
                                    Old January 12th, 2013 (6:54 PM). Edited January 12th, 2013 by tajaros.
                                    tajaros's Avatar
                                    tajaros tajaros is offline
                                    Hi I'm dawg
                                       
                                      Join Date: Apr 2012
                                      Location: Philippines
                                      Age: 19
                                      Gender: Male
                                      Nature: Timid
                                      Posts: 857
                                      Quote:
                                      Originally Posted by masterquestmq View Post
                                      just wondering how do I disable a setvar?
                                      I made a script where all wild pokemon will be 3 levels lower than ur strongest pokemon in the party. found this to be a bit useless in a long game so I want to disable this variable. Is there a command that i need to use?
                                      You just have to set the var you used to 0x0, and you're done. :)
                                      __________________
                                        #7519    
                                      Old January 12th, 2013 (11:40 PM).
                                      hukurae's Avatar
                                      hukurae hukurae is offline
                                         
                                        Join Date: Aug 2009
                                        Gender: Male
                                        Posts: 10
                                        I'm having a little problem with my givingpokemon script in Pokemon Ruby

                                        Everything is fine until the 'nicknaming' process

                                        I took the script from tajaros's guide and combine it with XSE guide to make out

                                        Spoiler:

                                        #org @name1
                                        fadescreen 0x1
                                        special 0x9F
                                        special 0x166
                                        waitstate
                                        return


                                        0x9F is to choose the Pokemon to be named and 0x166 is to nickname
                                        but the screen just freezes

                                        Any solution?
                                          #7520    
                                        Old January 13th, 2013 (12:12 AM).
                                        DrFuji's Avatar
                                        DrFuji DrFuji is offline
                                        Heiki Hecchara‌‌
                                         
                                        Join Date: Sep 2009
                                        Location: Aussie
                                        Age: 25
                                        Gender: Male
                                        Nature: Jolly
                                        Posts: 1,424
                                        Quote:
                                        Originally Posted by hukurae View Post
                                        I'm having a little problem with my givingpokemon script in Pokemon Ruby

                                        Everything is fine until the 'nicknaming' process

                                        I took the script from tajaros's guide and combine it with XSE guide to make out

                                        Spoiler:

                                        #org @name1
                                        fadescreen 0x1
                                        special 0x9F
                                        special 0x166
                                        waitstate
                                        return


                                        0x9F is to choose the Pokemon to be named and 0x166 is to nickname
                                        but the screen just freezes

                                        Any solution?
                                        This is because special 0x166 is used to nickname Pokemon that have been inserted into a PC Box, where the number of the box is indicated by the value of variable 0x800F and the slot by variable 0x8010. The reason why it was freezing is most likely that you didn't have a Pokemon in that exact spot in the PC to be nicknamed resulting in the ROM crashing.

                                        Special 0x9E is the command you want to use when nicknaming a Pokemon in your party whose number is assigned to variable 0x8004 (Which you have done by using special 0x9F). Hopefully that helps.
                                        __________________
                                          #7521    
                                        Old January 13th, 2013 (3:04 AM).
                                        Flame999's Avatar
                                        Flame999 Flame999 is offline
                                           
                                          Join Date: Nov 2008
                                          Location: Lavaridge Town
                                          Gender: Male
                                          Nature: Calm
                                          Posts: 103
                                          How would I make my wild battle a shiny
                                            #7522    
                                          Old January 13th, 2013 (4:15 AM). Edited January 13th, 2013 by hukurae.
                                          hukurae's Avatar
                                          hukurae hukurae is offline
                                             
                                            Join Date: Aug 2009
                                            Gender: Male
                                            Posts: 10
                                            @Dr.Fuji :

                                            Here's what I got from tajaros's guide

                                            Spoiler:

                                            #dynamic 0x800000

                                            #org @start
                                            lock
                                            faceplayer
                                            checkflag 0x828
                                            if 0x1 goto @how
                                            msgbox @give 0x5
                                            compare 0x800D 0x1
                                            if 0x1 goto @get
                                            compare 0x800D 0x0
                                            if 0x1 goto @ok
                                            end

                                            #org @get
                                            givepokemon 0x19 0x5 0x44 0x0 0x0 0x0
                                            fanfare 0x13E
                                            msgbox @receive 0x4
                                            waitfanfare
                                            closeonkeypress
                                            setflag 0x828
                                            msgbox @givenickname 0x5
                                            compare 0x800D 0x1
                                            if 0x1 goto @name
                                            compare 0x800D 0x0
                                            if 0x1 goto @go
                                            end

                                            #org @ok
                                            msgbox @oh 0x6
                                            release
                                            end

                                            #org @name
                                            setvar 0x8004 0x0
                                            call @nickname
                                            goto @takecare

                                            #org @nickname
                                            fadescreen 0x1
                                            special 0x9E
                                            waitstate
                                            return


                                            EDIT : I did make it work

                                            Spoiler:

                                            #org @name1
                                            setvar 0x8004 0x1
                                            fadescreen 0x1
                                            special 0x9E
                                            waitstate
                                            return


                                            but still I don't make out the 'setvar' part ? Why does it have to be '0x8004' (for 0x1 I understand it as '2nd position in the team')
                                            and 'waitstate' is for ?

                                            P/s : I'm quite new at this so apologize for my slow understanding :"(
                                              #7523    
                                            Old January 13th, 2013 (8:07 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
                                              If I remeber correctly, var 0x8004 is just the var that special 0x9F stores your choice at. Waitstate is simple, it just prevents the script from continuing until the special is over.
                                              __________________

                                              Paired with Simba
                                                #7524    
                                              Old January 14th, 2013 (7:46 AM).
                                              hukurae's Avatar
                                              hukurae hukurae is offline
                                                 
                                                Join Date: Aug 2009
                                                Gender: Male
                                                Posts: 10
                                                Spoiler:

                                                '---------------
                                                #org @start
                                                lockall
                                                checkflag 0x807
                                                if 0x0 goto @snippet1
                                                checkattack ATK_CUT
                                                compare LASTRESULT 0x6
                                                if 0x1 goto @snippet1
                                                setanimation 0x0 LASTRESULT
                                                bufferpartypokemon 0x0 LASTRESULT
                                                bufferattack 0x1 ATK_CUT
                                                msgbox @string1 MSG_YESNO '"This tree looks like it can be CUT..."
                                                compare LASTRESULT 0x0
                                                if 0x1 goto @snippet2
                                                msgbox @string2 MSG_KEEPOPEN '"[buffer1] used [buffer2]."
                                                closeonkeypress
                                                doanimation 0x2
                                                waitstate
                                                goto @snippet3

                                                '---------------
                                                #org @snippet1
                                                msgbox @string3 MSG_SIGN '"This tree looks like it can be CUT..."
                                                releaseall
                                                end

                                                '---------------
                                                #org @snippet2
                                                closeonkeypress
                                                releaseall
                                                end

                                                '---------------
                                                #org @snippet3
                                                applymovement LASTTALKED @move1
                                                waitmovement 0x0
                                                hidesprite LASTTALKED
                                                releaseall
                                                end


                                                '---------
                                                ' Strings
                                                '---------
                                                #org @string1
                                                = This tree looks like it can be CUT down.\pWould you like to CUT it?

                                                #org @string2
                                                = [buffer1] used [buffer2].

                                                #org @string3
                                                = This tree looks like it can be CUT down.


                                                '-----------
                                                ' Movements
                                                '-----------
                                                #org @move1
                                                #raw 0x5B 'mov5B
                                                #raw 0xFE 'End of Movements


                                                Here's what I got from breaking down a script of a tree for CUT

                                                I searched for #raw 0x5B but couldn't find it ?

                                                What is that for ? Is it an animation for 'tree being cut down' ?
                                                  #7525    
                                                Old January 14th, 2013 (12: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 hukurae View Post
                                                  Spoiler:

                                                  '---------------
                                                  #org @start
                                                  lockall
                                                  checkflag 0x807
                                                  if 0x0 goto @snippet1
                                                  checkattack ATK_CUT
                                                  compare LASTRESULT 0x6
                                                  if 0x1 goto @snippet1
                                                  setanimation 0x0 LASTRESULT
                                                  bufferpartypokemon 0x0 LASTRESULT
                                                  bufferattack 0x1 ATK_CUT
                                                  msgbox @string1 MSG_YESNO '"This tree looks like it can be CUT..."
                                                  compare LASTRESULT 0x0
                                                  if 0x1 goto @snippet2
                                                  msgbox @string2 MSG_KEEPOPEN '"[buffer1] used [buffer2]."
                                                  closeonkeypress
                                                  doanimation 0x2
                                                  waitstate
                                                  goto @snippet3

                                                  '---------------
                                                  #org @snippet1
                                                  msgbox @string3 MSG_SIGN '"This tree looks like it can be CUT..."
                                                  releaseall
                                                  end

                                                  '---------------
                                                  #org @snippet2
                                                  closeonkeypress
                                                  releaseall
                                                  end

                                                  '---------------
                                                  #org @snippet3
                                                  applymovement LASTTALKED @move1
                                                  waitmovement 0x0
                                                  hidesprite LASTTALKED
                                                  releaseall
                                                  end


                                                  '---------
                                                  ' Strings
                                                  '---------
                                                  #org @string1
                                                  = This tree looks like it can be CUT down.\pWould you like to CUT it?

                                                  #org @string2
                                                  = [buffer1] used [buffer2].

                                                  #org @string3
                                                  = This tree looks like it can be CUT down.


                                                  '-----------
                                                  ' Movements
                                                  '-----------
                                                  #org @move1
                                                  #raw 0x5B 'mov5B
                                                  #raw 0xFE 'End of Movements


                                                  Here's what I got from breaking down a script of a tree for CUT

                                                  I searched for #raw 0x5B but couldn't find it ?

                                                  What is that for ? Is it an animation for 'tree being cut down' ?

                                                  You are correct, if you look in OWRE, you can see that the tree animation is just frames like your hero uses, and therefore can be controlled with a simple applymovement. Not all raw movements are completely documented, which is why you couldn't find it.
                                                  __________________

                                                  Paired with Simba
                                                  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 12:00 PM.