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
  #226    
Old January 10th, 2009 (1:44 PM).
Satoshi Sugimori's Avatar
Satoshi Sugimori Satoshi Sugimori is offline
Hermit
     
    Join Date: Dec 2006
    Location: Tokyo, Japan
    Age: 24
    Gender: Male
    Nature: Timid
    Posts: 862
    Send a message via Windows Live Messenger to Satoshi Sugimori
    Quote:
    Originally Posted by Ichiro Kazuki View Post
    Thats my Script.

    Spoiler:
    Code:
    #dynamic 0x26ECB8
    
    #org @start
    lock
    faceplayer
    setvar 0x8008 0x9
    call 0x1A8CAD
    checkflag 0x1000
    if 0x1 goto @how
    msgbox @yesno 0x5
    compare LASTRESULT 0x0
    if 0x1 goto @too
    call 0x1A8CBD
    compare 0x8004 0x6
    if 0x4 goto @too
    call 0x1A8CC9
    comparevars2 LASTRESULT 0x8009
    if 0x5 goto @not
    call 0x1A8CD9
    msgbox @thanksalot 0x4
    setflag 0x1000
    release
    end
    
    #org @not
    bufferpokemon 0x0 0x27
    msgbox @not2 0x4
    release
    end
    
    #org @too
    bufferpokemon 0x0 0xD3
    msgbox @too2 0x4
    release
    end
    
    #org @how
    msgbox @old 0x4
    release
    end
    
    #org @thanksalot
    = Thanks \nI really mean it!
    
    #org @not2
    = That's not [buffer1]\nYou have it or not?
    
    #org @too2
    = Dammit, I wanted one [buffer1]!
    
    #org @yesno
    = Hey there!\nDo you have a [buffer1]?\lWant to trade it for my\l[buffer2]?
    
    #org @old
    = I miss [buffer2]\nYour [buffer1] is doing fine.


    He say a don't know comparevars2 on line 17. how can i fix this?

    It's a trade script
    Did you try comparevar2 whitout the s?
    __________________

    Relevant Advertising!

      #227    
    Old January 10th, 2009 (4:45 PM). Edited January 10th, 2009 by The Abyss.
    The Abyss The Abyss is offline
       
      Join Date: Jul 2008
      Location: Sydney, Australia
      Age: 22
      Nature: Jolly
      Posts: 162
      If I wanted to make 4 people move at the same time is their a special value they need to be assigned?

      Spoiler:
      #dynamic 0x2DD1AB

      #org @start
      checkflag 0x828
      if 0x0 goto @explain
      if 0x1 goto @away
      end

      #org @explain
      lock
      faceplayer
      msgbox @gone
      release
      end

      #org @away
      lock
      msgbox @bye 0x6
      applymovement 0x00 @walk
      waitmovement 0x0
      release
      end

      #org @gone
      = Please don't disturb us\nWe need the space

      #org @bye
      = We've seen enough\nLet's go

      #org @walk
      #raw 0x13
      #raw 0x13
      #raw 0x13
      #raw 0x13
      #raw 0x13
      #raw 0x10
      #raw 0x10
      #raw 0x10
      #raw 0x60
      #raw 0xFE


      I need this to move 4 people at the same time then make them disappear.
      __________________

        #228    
      Old January 10th, 2009 (5:17 PM).
      Binary's Avatar
      Binary Binary is offline
      え?
         
        Join Date: Aug 2007
        Age: 22
        Posts: 3,993
        Quote:
        Originally Posted by XDRules View Post
        If I wanted to make 4 people move at the same time is their a special value they need to be assigned?

        Spoiler:
        #dynamic 0x2DD1AB

        #org @start
        checkflag 0x828
        if 0x0 goto @explain
        if 0x1 goto @away
        end

        #org @explain
        lock
        faceplayer
        msgbox @gone
        release
        end

        #org @away
        lock
        msgbox @bye 0x6
        applymovement 0x00 @walk
        waitmovement 0x0
        release
        end

        #org @gone
        = Please don't disturb us\nWe need the space

        #org @bye
        = We've seen enough\nLet's go

        #org @walk
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x60
        #raw 0xFE


        I need this to move 4 people at the same time then make them disappear.
        do you mean applymovement 0x(person event no.)?
        Then, if you want 4 people to move at the same time..
        Code:
        applymovement 0x(person event no.) @pointer
        applymovement 0x(person event no.) @pointer
        applymovement 0x(person event no.) @pointer 
        applymovement 0x(person event no.) @pointer
        waitmovement 0x0
        And if you want them all to disappear (at once)
        Code:
        hidesprite 0x(person event no.)
        hidesprite 0x(person event no.)
        hidesprite 0x(person event no.)
        hidesprite 0x(person event no.)
        setflag 0x828 (because there's checkflag 0x828)
        And make sure you put the person ID of all four sprites as 828 (In AM)
        __________________
          #229    
        Old January 10th, 2009 (5:19 PM).
        The Abyss The Abyss is offline
           
          Join Date: Jul 2008
          Location: Sydney, Australia
          Age: 22
          Nature: Jolly
          Posts: 162
          Flag 828 is the Pokemon menu though. They're supposed to leave when you have a pokemon. I'll just use another flag then.
          __________________

            #230    
          Old January 10th, 2009 (5:22 PM).
          Binary's Avatar
          Binary Binary is offline
          え?
             
            Join Date: Aug 2007
            Age: 22
            Posts: 3,993
            Quote:
            Originally Posted by XDRules View Post
            Flag 828 is the Pokemon menu though. They're supposed to leave when you have a pokemon. I'll just use another flag then.
            Yeah you could do that. Don't forget to assign the Person ID with the same flag though.
            __________________
              #231    
            Old January 10th, 2009 (6:03 PM).
            The Abyss The Abyss is offline
               
              Join Date: Jul 2008
              Location: Sydney, Australia
              Age: 22
              Nature: Jolly
              Posts: 162
              More help here

              Spoiler:
              #dynamic 0x2E4E83

              #org @start
              checkflag 0x828
              if 0x0 goto @hey
              if 0x1 goto @none
              end

              #org @hey
              lock
              msgbox @no 0x6
              applymovement 0xFF @back
              waitmovement 0x0
              release
              end

              #org @no
              = No-one is allowed\nto leave this Village\nuntil we have finished\nsearching.

              #org @back
              #raw 0x0E
              #raw 0xFE

              #org @none
              release
              end


              What's wrong?
              __________________

                #232    
              Old January 10th, 2009 (6:12 PM).
              Binary's Avatar
              Binary Binary is offline
              え?
                 
                Join Date: Aug 2007
                Age: 22
                Posts: 3,993
                Quote:
                Originally Posted by XDRules View Post
                More help here

                Spoiler:
                #dynamic 0x2E4E83

                #org @start
                checkflag 0x828
                if 0x0 goto @hey
                if 0x1 goto @none
                end

                #org @hey
                lock
                msgbox @no 0x6
                applymovement 0xFF @back
                waitmovement 0x0
                release
                end

                #org @no
                = No-one is allowed\nto leave this Village\nuntil we have finished\nsearching.

                #org @back
                #raw 0x0E
                #raw 0xFE

                #org @none
                release
                end


                What's wrong?
                Code:
                #dynamic 0x2E4E83
                
                #org @start
                checkflag 0x828
                if 0x1 goto @none
                msgbox @no 0x2
                applymovement 0xFF @back
                waitmovement 0x0
                release
                end
                
                #org @no
                = No-one is allowed\nto leave this Village\nuntil we have finished\nsearching.
                
                #org @back
                #raw 0x0E 0xFE
                
                #org @none
                release
                end
                I think that should do it.
                __________________
                  #233    
                Old January 10th, 2009 (6:17 PM).
                The Abyss The Abyss is offline
                   
                  Join Date: Jul 2008
                  Location: Sydney, Australia
                  Age: 22
                  Nature: Jolly
                  Posts: 162
                  Still not working. Do i need to assign a Special Var value or something?
                  __________________

                    #234    
                  Old January 11th, 2009 (12:40 AM).
                  Hiche.. Hiche.. is offline
                   
                     
                    Join Date: Apr 2008
                    Posts: 979
                    Quote:
                    Originally Posted by XDRules View Post
                    Still not working. Do i need to assign a Special Var value or something?
                    Yes, in Advance Map. Unknown should be 0003, and var number should be 5040, or 4050.
                      #235    
                    Old January 11th, 2009 (1:54 AM).
                    Medo0 Medo0 is offline
                       
                      Join Date: Jan 2009
                      Posts: 53
                      HEY GUYS
                      I Found this Script here [Page -6-]
                      Quote:
                      #org 0x2D513F
                      setvar 0x4060 0x37
                      givepokemon 0x4060 0x8 0x0 0x0 0x0 0x0
                      fanfare 0x13E
                      msgbox @player 0x4
                      waitfanfare
                      closeonkeypress
                      hidesprite LASTTALKED
                      setflag 0x828
                      release
                      end

                      #org @player
                      [player] recieved a Vulpix!
                      i have a person that will give you a Vulpix

                      Now
                      1st How to change the pokemon that you will receive [ i don't know ids ]
                      2nd the offset for the person is "14D6CD" do i have to change only the "2D513F" to
                      "14D6CD"

                      Could Some1 help
                        #236    
                      Old January 11th, 2009 (2:12 AM).
                      Andryandrew Andryandrew is offline
                      Italian Asm Hacker
                         
                        Join Date: Mar 2007
                        Age: 23
                        Gender:
                        Nature: Timid
                        Posts: 117
                        Quote:
                        Originally Posted by Medo0 View Post
                        HEY GUYS
                        I Found this Script here [Page -6-]

                        i have a person that will give you a Vulpix

                        Now
                        1st How to change the pokemon that you will receive [ i don't know ids ]
                        2nd the offset for the person is "14D6CD" do i have to change only the "2D513F" to
                        "14D6CD"

                        Pleas help
                        HERE you can find a list of pokemon with their relatives IDs...

                        2- this scritp is a half with dynamic offset and a half with static offsets and it contain some errors; try this (you have to compile it with XSE):
                        Quote:
                        #dynamic 0x800000

                        #org @start
                        givepokemon 0xPKMN id 0xPKMN level 0x0 0x0 0x0 0x0
                        fanfare 0x13E
                        msgbox @player 0x2
                        waitfanfare
                        hidesprite LASTTALKED
                        setflag 0x828
                        release
                        end

                        #org @player
                        = [player] recieved a Vulpix!
                        __________________

                        Sorry for my bad English... I'm Italian
                        Anybody that is a GBA ASM hacker is cool!
                        I'm a GBA ASM hacker --> I'm cool :D

                        Made Day-Night Routine! You can find the thread HERE
                          #237    
                        Old January 11th, 2009 (2:19 AM).
                        Medo0 Medo0 is offline
                           
                          Join Date: Jan 2009
                          Posts: 53
                          Quote:
                          Originally Posted by Andryandrew View Post
                          HERE you can find a list of pokemon with their relatives IDs...

                          2- this scritp is a half with dynamic offset and a half with static offsets and it contain some errors; try this (you have to compile it with XSE):
                          Man .. I Swear you are a Scripting Master
                          I Will test it now
                            #238    
                          Old January 11th, 2009 (2:28 AM).
                          Andryandrew Andryandrew is offline
                          Italian Asm Hacker
                             
                            Join Date: Mar 2007
                            Age: 23
                            Gender:
                            Nature: Timid
                            Posts: 117
                            Quote:
                            Originally Posted by Medo0 View Post
                            Man .. I Swear you are a Scripting Master
                            I Will test it now
                            I feel very very embarrassed xd
                            __________________

                            Sorry for my bad English... I'm Italian
                            Anybody that is a GBA ASM hacker is cool!
                            I'm a GBA ASM hacker --> I'm cool :D

                            Made Day-Night Routine! You can find the thread HERE
                              #239    
                            Old January 11th, 2009 (2:59 AM).
                            Medo0 Medo0 is offline
                               
                              Join Date: Jan 2009
                              Posts: 53
                              Oh Geeez ... I Got this Message When I Replaced the ID With Pikachu
                              [For The Fat guy in little root]
                              i got this message

                              Link http://medo00972.googlepages.com/script.jpg

                              -Medo0
                                #240    
                              Old January 11th, 2009 (3:31 AM).
                              Hiche.. Hiche.. is offline
                               
                                 
                                Join Date: Apr 2008
                                Posts: 979
                                Quote:
                                Originally Posted by Medo0 View Post
                                Oh Geeez ... I Got this Message When I Replaced the ID With Pikachu
                                [For The Fat guy in little root]
                                i got this message

                                Link http://medo00972.googlepages.com/script.jpg

                                -Medo0
                                0x1900? Uhh.. What's with that? Remove the "level" thing. Replace 0x1900 with 0x25, which in this case is Vulpix.
                                  #241    
                                Old January 11th, 2009 (4:10 AM).
                                Medo0 Medo0 is offline
                                   
                                  Join Date: Jan 2009
                                  Posts: 53
                                  Replaced the ID With Pikachu
                                    #242    
                                  Old January 11th, 2009 (4:18 AM).
                                  Andryandrew Andryandrew is offline
                                  Italian Asm Hacker
                                     
                                    Join Date: Mar 2007
                                    Age: 23
                                    Gender:
                                    Nature: Timid
                                    Posts: 117
                                    Quote:
                                    Originally Posted by Medo0 View Post
                                    Oh Geeez ... I Got this Message When I Replaced the ID With Pikachu
                                    [For The Fat guy in little root]
                                    i got this message

                                    Link http://medo00972.googlepages.com/script.jpg

                                    -Medo0
                                    Pikachu id is 0x0019, not 1900 because the bytes have to be switched... and you have to delete the word "level", I wrote it to show you where you have to put the level of the pokemon...
                                    __________________

                                    Sorry for my bad English... I'm Italian
                                    Anybody that is a GBA ASM hacker is cool!
                                    I'm a GBA ASM hacker --> I'm cool :D

                                    Made Day-Night Routine! You can find the thread HERE
                                      #243    
                                    Old January 11th, 2009 (4:42 AM).
                                    Medo0 Medo0 is offline
                                       
                                      Join Date: Jan 2009
                                      Posts: 53
                                      Last question
                                      What's Wrong with this basic Script
                                      #Dynamic 0x80209E

                                      Quote:
                                      #ORG @Main
                                      Lock
                                      FacePlayer
                                      Message @Speak
                                      BoxSet 0x6
                                      Release
                                      End

                                      #ORG @Speak
                                      = Squirtle : Squeeertl
                                        #244    
                                      Old January 11th, 2009 (4:56 AM).
                                      Andryandrew Andryandrew is offline
                                      Italian Asm Hacker
                                         
                                        Join Date: Mar 2007
                                        Age: 23
                                        Gender:
                                        Nature: Timid
                                        Posts: 117
                                        Quote:
                                        Originally Posted by Medo0 View Post
                                        Last question
                                        What's Wrong with this basic Script
                                        #Dynamic 0x80209E
                                        maybe the case of the characters... try this:
                                        Quote:
                                        #org @Main
                                        lock
                                        faceplayer
                                        message @Speak
                                        Boxset 0x6
                                        Release
                                        End

                                        #org @Speak
                                        = Squirtle : Squeeertl
                                        __________________

                                        Sorry for my bad English... I'm Italian
                                        Anybody that is a GBA ASM hacker is cool!
                                        I'm a GBA ASM hacker --> I'm cool :D

                                        Made Day-Night Routine! You can find the thread HERE
                                          #245    
                                        Old January 11th, 2009 (5:18 AM).
                                        tImE's Avatar
                                        tImE tImE is offline
                                        It's still me, 44tim44 ;)
                                           
                                          Join Date: Mar 2007
                                          Location: Somewhere in Scandinavia...
                                          Nature: Relaxed
                                          Posts: 685
                                          Code:
                                          compare 0x400C 0x2
                                          if 0x1 goto 0x821E350
                                          compare 0x400B 0x1
                                          if 0x1 goto 0x821E2F0
                                          compare 0x400B 0x2
                                          if 0x1 goto 0x821E320
                                          compare 0x400B 0x4
                                          if 0x1 goto 0x821E350
                                          compare 0x400B 0x8
                                          if 0x1 goto 0x821E41D
                                          compare 0x400B 0x0
                                          if 0x5 goto 0x821E44D
                                          goto 0x821E080
                                          What "Var-values/commands" need to be set for these
                                          to occur?

                                          I'd be glad if some could help me. ^^
                                          __________________
                                            #246    
                                          Old January 11th, 2009 (10:37 AM).
                                          Andryandrew Andryandrew is offline
                                          Italian Asm Hacker
                                             
                                            Join Date: Mar 2007
                                            Age: 23
                                            Gender:
                                            Nature: Timid
                                            Posts: 117
                                            Quote:
                                            Originally Posted by 44tim44 View Post
                                            Code:
                                            compare 0x400C 0x2
                                            if 0x1 goto 0x821E350
                                            compare 0x400B 0x1
                                            if 0x1 goto 0x821E2F0
                                            compare 0x400B 0x2
                                            if 0x1 goto 0x821E320
                                            compare 0x400B 0x4
                                            if 0x1 goto 0x821E350
                                            compare 0x400B 0x8
                                            if 0x1 goto 0x821E41D
                                            compare 0x400B 0x0
                                            if 0x5 goto 0x821E44D
                                            goto 0x821E080
                                            What "Var-values/commands" need to be set for these
                                            to occur?

                                            I'd be glad if some could help me.
                                            mmm... I don't understand your question...
                                            __________________

                                            Sorry for my bad English... I'm Italian
                                            Anybody that is a GBA ASM hacker is cool!
                                            I'm a GBA ASM hacker --> I'm cool :D

                                            Made Day-Night Routine! You can find the thread HERE
                                              #247    
                                            Old January 11th, 2009 (11:31 AM).
                                            tImE's Avatar
                                            tImE tImE is offline
                                            It's still me, 44tim44 ;)
                                               
                                              Join Date: Mar 2007
                                              Location: Somewhere in Scandinavia...
                                              Nature: Relaxed
                                              Posts: 685
                                              Quote:
                                              Originally Posted by Andryandrew View Post
                                              mmm... I don't understand your question...
                                              "compare 0x400C 0x2
                                              if 0x1 goto 0x821E350"

                                              "compare 0x800D 0x1
                                              if 0x1 goto 0x_______"
                                              is the same as
                                              "compare Lastresult 0x1
                                              if b_true goto 0x_______",
                                              This checks if 0x1 occured and
                                              if it did, then it jumps to "0x_______"

                                              Compare 0x400C is the same thing
                                              it just compare different values/variables.

                                              I need to know which variables and values which
                                              need to be set in order to get the
                                              script to continue.
                                              __________________
                                                #248    
                                              Old January 12th, 2009 (9:36 AM).
                                              Popstar Leafeon's Avatar
                                              Popstar Leafeon Popstar Leafeon is offline
                                              Rose's Protegé
                                                 
                                                Join Date: Dec 2008
                                                Location: Autumn Villa, Twi Region
                                                Age: 25
                                                Gender: Male
                                                Nature: Timid
                                                Posts: 104
                                                Quote:
                                                Originally Posted by Andryandrew View Post
                                                The script seems perfectly normal... what does not work?
                                                Maybe you have alrerady used flag 0x82f in your rom?
                                                In Pewter City, yeah. It's always there. But no, this is supposed to give you the shoes early on, so you don't have to constantly walk.
                                                __________________
                                                Why is the rum always gone?






                                                  #249    
                                                Old January 12th, 2009 (9:40 AM).
                                                пзо's Avatar
                                                пзо пзо is offline
                                                zzirRusty
                                                   
                                                  Join Date: Dec 2008
                                                  Nature: Quiet
                                                  Posts: 222
                                                  Okay, this is definitely the last time I'm coming here.

                                                  I have this problem, with the starter town of my hack.
                                                  Every time I place a OW in the hack map, hes in the trees.
                                                  Somehow..
                                                  __________________
                                                  | Pokémon Obsidian | Pokémon Mystical Glacier |
                                                  Yeah, I said it, Pokémon Mystical Glacier..
                                                  Its comming back.. Better than ever.
                                                  Along side Pokémon Obsidian.
                                                    #250    
                                                  Old January 12th, 2009 (9:44 AM). Edited January 12th, 2009 by Pokepal17.
                                                  Pokepal17's Avatar
                                                  Pokepal17 Pokepal17 is offline
                                                  More cowbell~
                                                  • Silver Tier
                                                   
                                                  Join Date: Oct 2008
                                                  Location: Steeltown
                                                  Age: 22
                                                  Gender: Male
                                                  Nature: Modest
                                                  Posts: 1,511
                                                  Quote:
                                                  Originally Posted by пзо View Post
                                                  Okay, this is definitely the last time I'm coming here.

                                                  I have this problem, with the starter town of my hack.
                                                  Every time I place a OW in the hack map, hes in the trees.
                                                  Somehow..
                                                  Is it Fire Red and is the town built on Pallet town? Coz it has a level script that moves a NPC to where a trainer tips sign was in the original game.
                                                  _______________________________________________________________________________________________________


                                                  Need help

                                                  ROM: Fire Red
                                                  Version: BPRE
                                                  Script Editor: XSE
                                                  Script: Level Script

                                                  Spoiler:

                                                  '---------------
                                                  #org 0x800000
                                                  lock
                                                  checkflag 0x1000
                                                  if 0x0 call 0x880000D
                                                  release
                                                  end
                                                  '---------------
                                                  #org 0x80000D
                                                  applymovement MOVE_PLAYER 0x8800024
                                                  waitmovement 0x0
                                                  msgbox 0x8800028 MSG_NORMAL '"I'm happy!"
                                                  setflag 0x1000
                                                  return

                                                  '---------
                                                  ' Strings
                                                  '---------
                                                  #org 0x800028
                                                  = I'm happy!

                                                  '-----------
                                                  ' Movements
                                                  '-----------
                                                  #org 0x800024
                                                  #raw 0x63 'Question Mark (?)
                                                  #raw 0x66 'Happy ()
                                                  #raw 0xFE 'End of Movements


                                                  A-map settings

                                                  Spoiler:


                                                  Please note: This is my first level script. I am not completely sure on how to make them. I was given some brief details about them and I didn't understand so by looking at level scripts in a ROM I tried this one as a test. Also please explain any corrections made and if possible, please can you give a link to a tutorial on level scripts. Thanks in advance.
                                                  __________________
                                                  Pokémon Stardrop
                                                  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 4:27 PM.