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
  #4726    
Old September 7th, 2010 (2:24 PM). Edited September 7th, 2010 by Kazbat028.
Kazbat028's Avatar
Kazbat028 Kazbat028 is offline
The Only Guy With a Girlfriend
     
    Join Date: Apr 2010
    Gender: Male
    Nature: Mild
    Posts: 84
    wow, thanks. and will using XSE fix my problems? is pokescript buggy?
    and when I compile, do I have to check any of those boxes?
    __________________
    SS FC: 2408 0082 3603
    PEARL FC: 1291 3594 9507


    I do not care if a completely random percentage of people that you made up use hacks or cheats in their games. I also don't care that you don't use hacks.
    I am looking for somone to co-manage a thread with me. PM me and we'll work something out.

    Relevant Advertising!

      #4727    
    Old September 8th, 2010 (2:12 AM).
    Jm20's Avatar
    Jm20 Jm20 is offline
    A.k.a. Zig :-)
       
      Join Date: Sep 2009
      Location: The Netherlands
      Age: 24
      Gender: Male
      Posts: 88
      Quote:
      Originally Posted by Kazbat028 View Post
      wow, thanks. and will using XSE fix my problems? is pokescript buggy?
      and when I compile, do I have to check any of those boxes?
      Another way of compiling is opening your ROM in XSE. Paste your script in the page and click 'compile' (the two radargears in the toolbar). If your script is OK it will give you the offset of the first pointer (for example "@start").

      My question from last page: If someone know how to help: please tell me!
      Quote:
      Originally Posted by Jm20 View Post
      Having problems with level scripts in Advancemap:

      When I add a level script in Advancemap in the Header tab, and then choose 'script type' as '02 Validates values, etc.' automatically load the offsets in the "Script offset" box (the greyed one, number 1) and "Script offset 2" box from an other map. Then, when I fill the rest off the boxes and save everything, the two maps have the same level script.

      How can I prevent Advancemap to automatically load script offsets from another map?
        #4728    
      Old September 8th, 2010 (7:27 AM).
      Andrut's Avatar
      Andrut Andrut is offline
      Collecting dust since 1898
         
        Join Date: Dec 2009
        Location: Warsaw, Poland
        Age: 19
        Posts: 286
        In Ruby, how can i change the poxedex given be already national? What's the special for it?
          #4729    
        Old September 8th, 2010 (1:19 PM). Edited September 8th, 2010 by Teh Blazer.
        Teh Blazer's Avatar
        Teh Blazer Teh Blazer is offline
        Divider of Zero
           
          Join Date: Feb 2009
          Location: 'MERICA
          Age: 21
          Gender: Male
          Nature: Relaxed
          Posts: 768
          I'm having some trouble with my script. For one, the people I move, they don't appear, they're just invisible. Second, when the script finishes, you take control of the guy standing next to you and his palette is messed up. WHat went wrong? Oh yeah, it's XSE.

          Spoiler:
          '---------------
          #org 0x26E1C0
          lockall
          goto 0x826E1D0

          '---------------
          #org 0x26E1D0
          msgbox 0x817F614 0x4 '"This job is soo boring...\pI need ..."
          applymovement 0x7 0x81650D1
          msgbox 0x81827BE 0x4 '"You, stupid kid.\nLet's fight. NOW..."
          trainerbattle 0x3 0x161 0x0 0x8172DAF
          msgbox 0x8172CFC 0x4 '"We, /B/, are Pokémon gangsters!\nW..."
          showsprite 0x4
          applymovement 0x4 0x8165992
          movesprite 0x5 0x11 0x7
          applymovement 0x5 0x8163F18
          movesprite 0x6 0x11 0x7
          applymovement 0x6 0x816441C
          waitmovement 0x0
          applymovement 0x4 0x81643ED
          waitmovement 0x0
          msgbox 0x818056E 0x4 '"[grey_fr]Anon, calm down.\nWe got ..."
          applymovement 0x4 0x80000DC
          waitmovement 0x0
          msgbox 0x81B146A 0x4 '"[grey_fr]As for you, young "hero",..."
          fadescreen 0x0
          hidesprite 0x3
          hidesprite 0x4
          hidesprite 0x5
          hidesprite 0x6
          setflag 0x2C
          releaseall
          return


          '---------
          ' Strings
          '---------
          #org 0x17F614
          = This job is soo boring...\pI need something to do.

          #org 0x1827BE
          = You, stupid kid.\nLet's fight. NOW.

          #org 0x172DAF
          = So, you are good[.]

          #org 0x172CFC
          = We, PLASMA, are Pokémon gangsters!\nWe strike fear with our strength!

          #org 0x18056E
          = [grey_fr]Anon, calm down.\nWe got what we came here for.

          #org 0x1B146A
          = [grey_fr]As for you, young "hero",\ndon't interfere with our plans.\lIf we meet next time on opposite sides,\lI WILL crush you...


          '-----------
          ' Movements
          '-----------
          #org 0x1650D1
          #raw 0x10 'Step Down (Normal)
          #raw 0x12 'Step Left (Normal)
          #raw 0x12 'Step Left (Normal)
          #raw 0x12 'Step Left (Normal)
          #raw 0x12 'Step Left (Normal)
          #raw 0xFE 'End of Movements

          #org 0x165992
          #raw 0x14 'Jump2 Down
          #raw 0xFE 'End of Movements

          #org 0x163F18
          #raw 0x10 'Step Down (Normal)
          #raw 0x12 'Step Left (Normal)
          #raw 0xFE 'End of Movements

          #org 0x16441C
          #raw 0x10 'Step Down (Normal)
          #raw 0x13 'Step Right (Normal)
          #raw 0xFE 'End of Movements

          #org 0x1643ED
          #raw 0x12 'Step Left (Normal)
          #raw 0x12 'Step Left (Normal)
          #raw 0x12 'Step Left (Normal)
          #raw 0xFE 'End of Movements

          #org 0xDC
          #raw 0x10 'Step Down (Normal)
          #raw 0x12 'Step Left (Normal)
          #raw 0x12 'Step Left (Normal)
          #raw 0x4A 'Face Player
          #raw 0xFE 'End of Movements
          __________________
          Being a hero is overrated anyways
            #4730    
          Old September 9th, 2010 (1:04 AM).
          Swolligator's Avatar
          Swolligator Swolligator is offline
          Butcher of the Sands
          • Crystal Tier
           
          Join Date: Sep 2009
          Location: Syndicate HQ
          Age: 25
          Gender: Male
          Nature: Modest
          Posts: 1,955
          Okay, I admit to being a newbie to scripting.
          You appear from the intro screen and the script starts when you walk forward (into the script), the person talks to you. I have got most of it but it seems that you have to get the PokeDex first then talk to the person.

          Here it is:
          Spoiler:

          '---------------
          #org 0x800557
          if 0x1 goto 0x880056B
          msgbox 0x88005BA MSG_NORMAL '"Your parents disowned you?\nThat i..."
          release
          end

          '---------------
          #org 0x80056B
          givepokemon 0x178 0x5 0x0 0x0 0x0 0x0
          fanfare 0x13E
          msgbox 0x8800609 MSG_KEEPOPEN '"[black_fr]You recieved an Absol!"
          waitfanfare
          closeonkeypress
          setflag 0x828
          msgbox 0x8800625 MSG_YESNO '"[black_fr]Would you like to give a..."
          compare LASTRESULT 0x1
          if 0x1 call 0x88005A8
          msgbox 0x8800656 MSG_NORMAL '"You are young, go on an adventure\..."
          release
          end

          '---------------
          #org 0x8005A8
          call 0x81A74EB
          return

          '---------------
          #org 0x1A74EB
          fadescreen 0x1
          special 0x9E
          waitstate
          return


          '---------
          ' Strings
          '---------
          #org 0x8005BA
          = Your parents disowned you?\nThat is sad.\pHere, I want you to have my\nPokemon.

          #org 0x800609
          = [black_fr]You recieved an Absol!

          #org 0x800625
          = [black_fr]Would you like to give a\nnickname to Absol?

          #org 0x800656
          = You are young, go on an adventure\nfor me please!


          It is done on XSE, all i need help with is to make it so that the person does not give you another Absol when you talk to them, turns to face you when you step forward (into the script) and make it so you don't have to get the PokeDex to obtain the Absol.
          Can someone please point out where I have gone wrong, what i need to fix and help me please?
          __________________
            #4731    
          Old September 9th, 2010 (5:05 AM).
          Nightcrow's Avatar
          Nightcrow Nightcrow is offline
             
            Join Date: Jun 2010
            Location: Belgium
            Age: 31
            Gender: Male
            Nature: Calm
            Posts: 44
            Quote:
            Originally Posted by Teh Blazer View Post
            I'm having some trouble with my script. For one, the people I move, they don't appear, they're just invisible. Second, when the script finishes, you take control of the guy standing next to you and his palette is messed up. WHat went wrong? Oh yeah, it's XSE.

            Spoiler:
            '---------------
            #org 0x26E1C0
            lockall
            goto 0x826E1D0

            '---------------
            #org 0x26E1D0
            msgbox 0x817F614 0x4 '"This job is soo boring...\pI need ..."
            applymovement 0x7 0x81650D1
            msgbox 0x81827BE 0x4 '"You, stupid kid.\nLet's fight. NOW..."
            trainerbattle 0x3 0x161 0x0 0x8172DAF
            msgbox 0x8172CFC 0x4 '"We, /B/, are Pokémon gangsters!\nW..."
            showsprite 0x4
            applymovement 0x4 0x8165992
            movesprite 0x5 0x11 0x7
            applymovement 0x5 0x8163F18
            movesprite 0x6 0x11 0x7
            applymovement 0x6 0x816441C
            waitmovement 0x0
            applymovement 0x4 0x81643ED
            waitmovement 0x0
            msgbox 0x818056E 0x4 '"[grey_fr]Anon, calm down.\nWe got ..."
            applymovement 0x4 0x80000DC
            waitmovement 0x0
            msgbox 0x81B146A 0x4 '"[grey_fr]As for you, young "hero",..."
            fadescreen 0x0
            hidesprite 0x3
            hidesprite 0x4
            hidesprite 0x5
            hidesprite 0x6
            setflag 0x2C
            releaseall
            return


            '---------
            ' Strings
            '---------
            #org 0x17F614
            = This job is soo boring...\pI need something to do.

            #org 0x1827BE
            = You, stupid kid.\nLet's fight. NOW.

            #org 0x172DAF
            = So, you are good[.]

            #org 0x172CFC
            = We, PLASMA, are Pokémon gangsters!\nWe strike fear with our strength!

            #org 0x18056E
            = [grey_fr]Anon, calm down.\nWe got what we came here for.

            #org 0x1B146A
            = [grey_fr]As for you, young "hero",\ndon't interfere with our plans.\lIf we meet next time on opposite sides,\lI WILL crush you...


            '-----------
            ' Movements
            '-----------
            #org 0x1650D1
            #raw 0x10 'Step Down (Normal)
            #raw 0x12 'Step Left (Normal)
            #raw 0x12 'Step Left (Normal)
            #raw 0x12 'Step Left (Normal)
            #raw 0x12 'Step Left (Normal)
            #raw 0xFE 'End of Movements

            #org 0x165992
            #raw 0x14 'Jump2 Down
            #raw 0xFE 'End of Movements

            #org 0x163F18
            #raw 0x10 'Step Down (Normal)
            #raw 0x12 'Step Left (Normal)
            #raw 0xFE 'End of Movements

            #org 0x16441C
            #raw 0x10 'Step Down (Normal)
            #raw 0x13 'Step Right (Normal)
            #raw 0xFE 'End of Movements

            #org 0x1643ED
            #raw 0x12 'Step Left (Normal)
            #raw 0x12 'Step Left (Normal)
            #raw 0x12 'Step Left (Normal)
            #raw 0xFE 'End of Movements

            #org 0xDC
            #raw 0x10 'Step Down (Normal)
            #raw 0x12 'Step Left (Normal)
            #raw 0x12 'Step Left (Normal)
            #raw 0x4A 'Face Player
            #raw 0xFE 'End of Movements
            The script itself looks pretty ok to me. Did you use dynamic offsets when compiling this? Or did you just compile the hard coded offsets like you placed it here? You may have overwritten some game data which could explain the bugs you end up with.

            I suggest you try putting it on a backup version of your rom with dynamic offsets starting at 0x800000. After compiling it you will get a list with the offsets so you know which one to use in advancemap.

            example:
            Spoiler:

            dynamic offset 0x800000
            #org @start
            ---here come the lines of your script---
            ---refer to new offsets as @name---
            ---code your offsets as #org @name---
            ---example:---
            msgbox @text1 0x4
            end

            #org @text1
            = blablabla or whatever text you want

            after compiling the list will for example say:
            @start 800F52
            @text1 800FF1
            the offset of @start is the one you use in advancemap to call your script.
              #4732    
            Old September 9th, 2010 (5:49 AM).
            Andrut's Avatar
            Andrut Andrut is offline
            Collecting dust since 1898
               
              Join Date: Dec 2009
              Location: Warsaw, Poland
              Age: 19
              Posts: 286
              I'm posting this again.......
              Quote:
              In Ruby, how can i change the poxedex given be already national? What's the special for it?
                #4733    
              Old September 9th, 2010 (6:59 AM).
              Jm20's Avatar
              Jm20 Jm20 is offline
              A.k.a. Zig :-)
                 
                Join Date: Sep 2009
                Location: The Netherlands
                Age: 24
                Gender: Male
                Posts: 88
                Quote:
                Originally Posted by 雷影 イチロ View Post
                Okay, I admit to being a newbie to scripting.
                You appear from the intro screen and the script starts when you walk forward (into the script), the person talks to you. I have got most of it but it seems that you have to get the PokeDex first then talk to the person.

                Here it is:
                Spoiler:

                '---------------
                #org 0x800557
                if 0x1 goto 0x880056B
                msgbox 0x88005BA MSG_NORMAL '"Your parents disowned you?\nThat i..."
                release
                end

                '---------------
                #org 0x80056B
                givepokemon 0x178 0x5 0x0 0x0 0x0 0x0
                fanfare 0x13E
                msgbox 0x8800609 MSG_KEEPOPEN '"[black_fr]You recieved an Absol!"
                waitfanfare
                closeonkeypress
                setflag 0x828
                msgbox 0x8800625 MSG_YESNO '"[black_fr]Would you like to give a..."
                compare LASTRESULT 0x1
                if 0x1 call 0x88005A8
                msgbox 0x8800656 MSG_NORMAL '"You are young, go on an adventure\..."
                release
                end

                '---------------
                #org 0x8005A8
                call 0x81A74EB
                return

                '---------------
                #org 0x1A74EB
                fadescreen 0x1
                special 0x9E
                waitstate
                return


                '---------
                ' Strings
                '---------
                #org 0x8005BA
                = Your parents disowned you?\nThat is sad.\pHere, I want you to have my\nPokemon.

                #org 0x800609
                = [black_fr]You recieved an Absol!

                #org 0x800625
                = [black_fr]Would you like to give a\nnickname to Absol?

                #org 0x800656
                = You are young, go on an adventure\nfor me please!


                It is done on XSE, all i need help with is to make it so that the person does not give you another Absol when you talk to them, turns to face you when you step forward (into the script) and make it so you don't have to get the PokeDex to obtain the Absol.
                Can someone please point out where I have gone wrong, what i need to fix and help me please?
                Shouldn't you put a checkflag or checkvar command at the beginning of the script?

                By the way, the script now calls the following: If the flag is 0x1, you goto to the pointer in which you get an Absol. If the flag is 0x0, the man/woman says he wants to give you an Absol. Correct me if I'm wrong, but that doesn't make sense to me, really. :-\

                Quote:
                Originally Posted by xoax
                I'm posting this again.......
                Quote:
                In Ruby, how can i change the poxedex given be already national? What's the special for it?
                Go to XSE > Help > Guide > Appendix > Specials > R/S Specials. Oops, I see there is no national dex special there. Well then I don't know. Diegoisawesomes tutorial doesn't have the special either. Maybe you should decompile a script from ruby. When you complete the Hoenn dex you recieve the nat. dex right?

                Anyone on my question/problem:
                Clicky
                  #4734    
                Old September 9th, 2010 (8:58 AM). Edited September 9th, 2010 by Raigeki.
                Raigeki Raigeki is offline
                   
                  Join Date: Sep 2010
                  Gender: Male
                  Posts: 16
                  First of, I want to make one thing clear: I just started scripting some hours ago with givepokemon, wildbattle etc. scripts. So I'm a biiig n00b.


                  Game: Pokemon Ruby
                  Type: AXV
                  Editor: XSE

                  I wanted to insert a person that heals your Pokémons into the Petalburg Cave (Yeah, cave)

                  Well, I don't really know how to make it work, but I've tried this:

                  Code:
                  '-----------------------
                  #org 0x6B2418
                  msgbox 0x6B2418 '"It is hard to get through\nthis..."
                  callstd 0x2
                  fadescreen 0x1
                  special 0x0
                  fadescreen 0x0
                  end
                  
                  
                  '---------
                  ' Strings
                  '---------
                  #org 0x6B2418
                  = It is hard to get through\nthis cave.\pLet me heal your POKéMONS.
                  From what I know of, fadescreen 0x1 fades the screen, and 0x0 unfades it. And special 0x0 = healing. But when I compile it, it just says:

                  Code:
                  '-----------------------
                  #org 0x6B2418
                  cmdC3 0xE8
                  nop
                  I have done something wrong, I know. But what it is... I'm completely lost. Some help would be apprieciated.



                  Furthermore, I found this script in Pokemon AshGray (A hacked FireRed made by Hirakuanh ... dl.poke-mega dot org/pokemon-ash-gray-1-65 ...) and edited it a little, just to see, if it would work. (Then I will make another one that looks kinda the same, just to prevent extreme credit-madness. Of course I will still give credit.)

                  Code:
                  '-----------------------
                  #org 0x8189BB
                  lockall
                  checkflag 0x1006 ////If you go to bed, this flag activates////
                  if 0x0 goto 0x880000C
                  setvar 0x6061 0x1
                  releaseall
                  end
                  
                  '-----------------------
                  #org 0x80000C
                  showsprite 0x1
                  sound 0x9
                  applymovement 0x1 0x882023B
                  applymovement MOVE_PLAYER 0x8820307
                  waitmovement 0x0
                  applymovement 0x1 0x882030C
                  applymovement MOVE_PLAYER 0x8801DE6
                  textcolor 0x0
                  msgbox 0x881D2FD '"\c\h01ÇMOM: [player]! Get to bed!\n..."
                  callstd 0x4
                  closeonkeypress
                  applymovement 0x1 0x8820311
                  sound 0x9
                  waitmovement 0x1
                  hidesprite 0x1
                  setflag 0x2C
                  releaseall
                  end
                  
                  
                  '-----------
                  ' Movements
                  '-----------
                  #org 0x82023B
                  #raw 13 'Step Right (Normal)
                  #raw FE 'End of Movements
                  
                  #org 0x820307
                  #raw 10 'Step Down (Normal)
                  #raw 62 'Exclamation Mark (!)
                  #raw 3 'Face Right
                  #raw FE 'End of Movements
                  
                  #org 0x82030C
                  #raw 4A 'Face Player
                  #raw FE 'End of Movements
                  
                  #org 0x801DE6
                  #raw 1 'Face Up
                  #raw FE 'End of Movements
                  
                  #org 0x820311
                  #raw 12 'Step Left (Normal)
                  #raw FE 'End of Movements
                  
                  
                  '---------
                  ' Strings
                  '---------
                  #org 0x81D2FD
                  = \c\h01ÇMOM: [player]! Get to bed!\nIt's 11:00! You should be asleep!\pGo to bed and don't forget to\nchange into your pajamas!


                  I edited it a little to see, if it would work in my Ruby. (I heard the movements/raw-thing are different from Firered?) ... Well, it didn't work.

                  Code:
                  '-----------------------
                  #org 0x6B16AC
                  lockall
                  checkflag 0x1006
                  if 0x0 goto 0x6B2600
                  setvar 0x6061 0x1
                  releaseall
                  end
                  
                  '-----------------------
                  #org 0x6B2600
                  showsprite 0x14
                  sound 0x9
                  applymovement MOVE_PLAYER 0x6B2618
                  applymovement 0x1 0x6B260C
                  waitmovement 0x0
                  applymovement 0x1 0x6B2624
                  applymovement MOVE_PLAYER 0x22F1A8
                  textcolor 0x0
                  msgbox 0x23CE28 '"[player]! Get to bed!\n..."
                  callstd 0x4
                  closeonkeypress
                  applymovement 0x1 0x23CE1C
                  sound 0x9
                  waitmovement 0x1
                  hidesprite 0x14
                  setflag 0x2C
                  releaseall
                  end
                  
                  
                  '-----------
                  ' Movements
                  '-----------
                  #org 0x6B2618
                  #raw 10 'Step Down (Normal)
                  #raw 62 'Exclamation Mark (!)
                  #raw FE 'End of Movements
                  
                  #org 0x6B260C
                  #raw 13 'Step Down (Normal)
                  #raw FE 'End of Movements
                  
                  #org 0x6B2624
                  #raw 4A 'Face Player
                  #raw FE 'End of Movements
                  
                  #org 0x22F1A8
                  #raw 1 'Face Up
                  #raw FE 'End of Movements
                  
                  #org 0x23CE1C
                  #raw 12 'Step Up (Normal)
                  #raw FE 'End of Movements
                  
                  
                  '---------
                  ' Strings
                  '---------
                  #org 0x23CE28
                  = \c\h01ÇMOM: [player]! Get to bed!\nIt's 11:00! You should be asleep!\pGo to bed!!


                  The script itself just doesn't activate. NOTHING happens, when I step on the green S-tile. Nothing. The Game froze before, but now nothing happens. The ID of the mom is 002C, the var-number is 6061 (Is that the problem?) and var-value 0000. When I compile it and open the script again, only the part from #org 0x6B16AC to applymovement MOVE_PLAYER 0x6B2618 is left. Everything else is gone. What do I do wrong? And how do I find out what the movements in Ruby are?

                  And can somebody please send me a link to XSE download? The one I have is outdated (I think..) And all the links I find are outdated too.. Or maybe I'm wrong, but better be safe than sorry.
                    #4735    
                  Old September 9th, 2010 (9:27 AM).
                  Jm20's Avatar
                  Jm20 Jm20 is offline
                  A.k.a. Zig :-)
                     
                    Join Date: Sep 2009
                    Location: The Netherlands
                    Age: 24
                    Gender: Male
                    Posts: 88
                    Quote:
                    Originally Posted by Raigeki View Post
                    First of, I want to make one thing clear: I just started scripting some hours ago with givepokemon, wildbattle etc. scripts. So I'm a biiig n00b.


                    Game: Pokemon Ruby
                    Type: AXV
                    Editor: XSE

                    I wanted to insert a person that heals your Pokémons into the Petalburg Cave (Yeah, cave)

                    Well, I don't really know how to make it work, but I've tried this:

                    (...)

                    I have done something wrong, I know. But what it is... I'm completely lost. Some help would be apprieciated.



                    Furthermore, I found this script in Pokemon AshGray (A hacked FireRed made by Hirakuanh ... dl.poke-mega dot org/pokemon-ash-gray-1-65 ...) and edited it a little, just to see, if it would work. (Then I will make another one that looks kinda the same, just to prevent extreme credit-madness. Of course I will still give credit.)

                    (...)

                    I edited it a little to see, if it would work in my Ruby. (I heard the movements/raw-thing are different from Firered?) ... Well, it didn't work.

                    (...)

                    The script itself just doesn't activate. NOTHING happens, when I step on the green S-tile. Nothing. The Game froze before, but now nothing happens. The ID of the mom is 002C, the var-number is 6061 (Is that the problem?) and var-value 0000. When I compile it and open the script again, only the part from #org 0x6B16AC to applymovement MOVE_PLAYER 0x6B2618 is left. Everything else is gone. What do I do wrong? And how do I find out what the movements in Ruby are?

                    And can somebody please send me a link to XSE download? The one I have is outdated (I think..) And all the links I find are outdated too.. Or maybe I'm wrong, but better be safe than sorry.
                    1. Are you sure you've got a right offset with enough space? Do you use FreeSpaceFinder? It happens to me sometimes too, just try to find another offset. Check the size of the script in Windows Explorer or similar. Always take a few ten bytes extra.

                    2. I'm not able to find a major mistake in your second script. Maybe the flag 1006 is already turned 'on'. You should add a msgbox under the "if 0x0 goto..." line. Type something like "flag 1006 is 0x1" and you will know for sure when playing the game.

                    3. You can update XSE by clicking Help > Live Update. It works better than downloading a new version.
                      #4736    
                    Old September 9th, 2010 (9:47 AM). Edited September 9th, 2010 by Raigeki.
                    Raigeki Raigeki is offline
                       
                      Join Date: Sep 2010
                      Gender: Male
                      Posts: 16
                      1. I have downloaded FSF some days ago, but never actually tried it. I might give it a try in a few minutes.

                      2. Hm.. I'll try the messagebox. If that doesn't work, I'll take a look on the flag again.

                      3. Okay, thanks.


                      Thank you for your answer.


                      Okay, now everything is intact when I save (Found a offset with enough space).. Everything seems to work when I save it.

                      I changed var-number to 4050 and unknown to 0300 and now it works (d'oh)

                      But.. The sprite of my mom is visible all the time. She is standing on the staircase. But she doesn't move. The 'hero' is the only one that moves. And the message is displayed twice.. D:
                        #4737    
                      Old September 9th, 2010 (1:35 PM).
                      Jm20's Avatar
                      Jm20 Jm20 is offline
                      A.k.a. Zig :-)
                         
                        Join Date: Sep 2009
                        Location: The Netherlands
                        Age: 24
                        Gender: Male
                        Posts: 88
                        Quote:
                        Originally Posted by Raigeki View Post
                        1. I have downloaded FSF some days ago, but never actually tried it. I might give it a try in a few minutes.

                        2. Hm.. I'll try the messagebox. If that doesn't work, I'll take a look on the flag again.

                        3. Okay, thanks.


                        Thank you for your answer.


                        Okay, now everything is intact when I save (Found a offset with enough space).. Everything seems to work when I save it.

                        I changed var-number to 4050 and unknown to 0300 and now it works (d'oh)

                        But.. The sprite of my mom is visible all the time. She is standing on the staircase. But she doesn't move. The 'hero' is the only one that moves. And the message is displayed twice.. D:
                        First of all, what is the person event number of 'mom'? In your script, you use 0x1 when using msgbox, and 0x14 when using applymovement. Correct me if I'm wrong, but I think those have to be the same if they apply to the same overworld.
                        And when exactly should 'mom' be invisible? To make her invisible, you should set the flag, which matches the Person ID of the overworld. But I can see you got that already. Does 'mom' has to be invisible before/at the start of the script? In that case, the flag/Person ID should be set before the script (preferrably before you enter the map).
                        I have absolutely no idea why the message would show up twice. That remains a mystery
                        And a few other things that might bug: I think you should use 'clearflag 0x...' when using 'showsprite'. Again, correct me if I'm wrong, I'm not completely sure about this. Add 'waitmovement 0x0' after the 'applymovements'. (Sometimes you missed them?)

                        So:
                        - Check the Person Event Nr. of 'mom' and correct if needed.
                        - Be sure you set the flag of 'mom's Person ID before you enter the map (or you would have to work with level script which are complicated and do not work best in these types of scripts).

                        I hope I could help.
                          #4738    
                        Old September 10th, 2010 (8:18 AM). Edited September 10th, 2010 by Raigeki.
                        Raigeki Raigeki is offline
                           
                          Join Date: Sep 2010
                          Gender: Male
                          Posts: 16
                          Haha, I found the reason to why the script worked uncorrectly.

                          The moms event number thing is 15. So I had to write F, and NOT 15 into hidesprite.. Hex, not decimal..

                          Do anybody know why this script doesn't work?

                          Again, Pokemon Ruby, AXV, XSE.

                          Code:
                          '---------------
                          #org 0x6BB844
                          checkflag 0x2002
                          if 0x0 goto 0x6B2744
                          
                          '---------------
                          #org 0x6B2744
                          lock
                          msgbox 0x6B2594 MSG_KEEPOPEN '"Hello, I'm the Cutter...."
                          closeonkeypress
                          applymovement 0x1 0x6B2710
                          waitmovement 0x0
                          msgbox 0x6B26A0 MSG_KEEPOPEN '"How dare you wear shoes..."
                          closeonkeypress
                          clearflag 0x860
                          msgbox 0x6B25DC MSG_KEEPOPEN '"The Cutter took your..."
                          closeonkeypress
                          applymovement MOVE_PLAYER 0x6B271C
                          applymovement 0x1 0x6B2744
                          setflag 0x2002
                          release
                          end
                          
                          '---------
                          ' Strings
                          '---------
                          
                          #org 0x6B2594
                          = Hello, I'm the Cutter.
                          
                          #org 0x6B26A0
                          = How dare you wear shoes in MY house?!\Get out! NOW!
                          
                          #org 0x6B25DC
                          = The Cutter took your Running Shoes!
                          
                          '-----------
                          ' Movements
                          '-----------
                          #org 0x6B2710
                          #raw 0x56 'Exclamation Mark (!)
                          #raw 0x46 'Jump in Place (Facing Down)
                          
                          #org 0x6B271C
                          #raw 0x08 'Step Down (Normal)
                          #raw 0x0A 'Step Left (Normal)
                          #raw 0x0A 'Step Left (Normal)
                          #raw 0x0A 'Step Left (Normal)
                          #raw 0x0A 'Step Left (Normal)
                          #raw 0x0A 'Step Left (Normal)
                          #raw 0x08 'Step Down (Normal)
                          #raw 0x08 'Step Down (Normal)
                          
                          #org 0x6B2744
                          #raw 0x08 'Step Down (Normal)
                          #raw 0x0A 'Step Left (Normal)
                          #raw 0x0A 'Step Left (Normal)
                          #raw 0x0A 'Step Left (Normal)
                          #raw 0x0A 'Step Left (Normal)
                          #raw 0x0A 'Step Left (Normal)
                          #raw 0x08 'Step Down (Normal)
                          #raw 0x08 'Step Down (Normal)
                          When you go to the Cutter the first time, he will be mad at you for wearing shoes, then take your running shoes (Clearflag 0x860) and push you outside. (I've got some other scripts to write, so you have to get them back, and can't leave without them).. But when I write that into XSE and compile it, it just turn into

                          Code:
                          '---------------
                          #org 0x6BB844
                          checkflag 0x2002
                          if 0x0 goto 0x86B2744
                          '---------------
                          #org 0x6B2744
                          gotostd 0xA
                          That doesn't make sense..

                          I've used like five different offsets, all with about 1500 bytes of space.. So it should not be cut down to that. Or am I wrong?
                            #4739    
                          Old September 10th, 2010 (10:27 AM).
                          Jm20's Avatar
                          Jm20 Jm20 is offline
                          A.k.a. Zig :-)
                             
                            Join Date: Sep 2009
                            Location: The Netherlands
                            Age: 24
                            Gender: Male
                            Posts: 88
                            I'm afraid I can't help you with that. Maybe someone else.

                            I'm in need of help myself right now, actually. It's this level script. It used to work fine. However, something bugged with inserting new level scripts in other map, so I had to delete and reinsert the offset a few times. Somehow, I managed to fix that and reinsterted the script. However, now it freezes at the end of the script. I'm afraid it's something with the movecamera script, or the special managing it.

                            Code:
                            '---------------
                            #org 0x163CAF
                            lockall
                            special 0x113
                            applymovement MOVE_CAMERA 0x8163D1A
                            waitmovement 0x0
                            applymovement 0x1 0x8163D29
                            waitmovement 0x0
                            pause 0x20
                            applymovement 0x1 0x8163D2D
                            waitmovement 0x0
                            pause 0x20
                            applymovement 0x1 0x8163D32
                            waitmovement 0x0
                            applymovement MOVE_CAMERA 0x8163D3A
                            waitmovement 0x0
                            applymovement MOVE_PLAYER 0x8163D41
                            waitmovement 0x0
                            msgbox 0x8163D4B MSG_NORMAL '"Hello, [player]! I'm glad you came..."
                            applymovement 0x1 0x8163D37
                            waitmovement 0x0
                            setvar 0x7001 0x1
                            setvar 0x7002 0x0
                            setflag 0x1003
                            special 0x114
                            releaseall
                            end
                            
                            
                            '---------
                            ' Strings
                            '---------
                            #org 0x163D4B
                            = Hello, [player]! I'm glad you came.
                            
                            
                            '-----------
                            ' Movements
                            '-----------
                            #org 0x163D1A
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements
                            
                            #org 0x163D29
                            #raw 0xE 'Step Left (Slow)
                            #raw 0x1 'Face Up
                            #raw 0xFE 'End of Movements
                            
                            #org 0x163D2D
                            #raw 0xF 'Step Right (Slow)
                            #raw 0xF 'Step Right (Slow)
                            #raw 0x1 'Face Up
                            #raw 0xFE 'End of Movements
                            
                            #org 0x163D32
                            #raw 0xE 'Step Left (Slow)
                            #raw 0x0 'Face Down
                            #raw 0x62 'Exclamation Mark (!)
                            #raw 0xFE 'End of Movements
                            
                            #org 0x163D3A
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0xFE 'End of Movements
                            
                            #org 0x163D41
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements
                            
                            #org 0x163D37
                            #raw 0x1 'Face Up
                            #raw 0xFE 'End of Movements
                              #4740    
                            Old September 10th, 2010 (2:28 PM).
                            Kazbat028's Avatar
                            Kazbat028 Kazbat028 is offline
                            The Only Guy With a Girlfriend
                               
                              Join Date: Apr 2010
                              Gender: Male
                              Nature: Mild
                              Posts: 84
                              I had that issue as well. In advancemap, make sure the 'unknown' number is set 0003 and the VAR number is 4050.
                              __________________
                              SS FC: 2408 0082 3603
                              PEARL FC: 1291 3594 9507


                              I do not care if a completely random percentage of people that you made up use hacks or cheats in their games. I also don't care that you don't use hacks.
                              I am looking for somone to co-manage a thread with me. PM me and we'll work something out.
                                #4741    
                              Old September 11th, 2010 (7:12 AM).
                              Leafbarrett's Avatar
                              Leafbarrett Leafbarrett is offline
                                 
                                Join Date: Mar 2009
                                Age: 25
                                Gender: Male
                                Posts: 75
                                Okay, so I changed a script to add in an extra legendary battle, and now all of a sudden, any event sprites that should be invisible until a certain flag is triggered (i.e. Oak before you try to walk into the grass, the Silph Scope before you defeat Giovanni) are all visible, and I don't have any idea why.
                                EDIT: Right, I guess I should include the script...
                                Code:
                                '-----------------------
                                #org 0x16575C
                                special 0x187
                                compare LASTRESULT 0x2
                                if 0x1 goto 0x81A7AE0
                                special 0x188
                                lock
                                faceplayer
                                startwildbattle 0xFC 0x50 0x0
                                checksound
                                msgbox2 0x81A6448 '"[.][.][.]"
                                waitmsgbox
                                pause 0xA
                                playsong 0x2 0x2
                                waitkeypress
                                setflag 0x807
                                special 0x138
                                waitstate
                                clearflag 0x807
                                special2 LASTRESULT 0xB4
                                compare LASTRESULT 0x1
                                if 0x1 goto 0x816381B
                                compare LASTRESULT 0x4
                                if 0x1 goto 0x8163824
                                compare LASTRESULT 0x5
                                if 0x1 goto 0x8163824
                                setflag 0x2BF
                                release
                                end
                                
                                '-----------------------
                                #org 0x1A7AE0
                                release
                                end
                                
                                '-----------------------
                                #org 0x16381B
                                setflag 0x2BF
                                goto 0x81A922D
                                end
                                
                                '-----------------------
                                #org 0x163824
                                setvar 0x8004 0x91
                                goto 0x81A9236
                                end
                                
                                '-----------------------
                                #org 0x1A922D
                                fadescreen 0x1
                                hidesprite LASTTALKED
                                fadescreen 0x0
                                release
                                end
                                
                                '-----------------------
                                #org 0x1A9236
                                fadescreen 0x1
                                hidesprite LASTTALKED
                                fadescreen 0x0
                                bufferpokemon 0x0 0x8004
                                msgbox 0x83291D8 '"[.][.][.]"
                                callstd 0x4
                                release
                                end
                                
                                
                                '---------
                                ' Strings
                                '---------
                                #org 0x1A6448
                                = [.][.][.]
                                
                                #org 0x3291D8
                                = [.][.][.]
                                  #4742    
                                Old September 11th, 2010 (7:15 AM).
                                Kazbat028's Avatar
                                Kazbat028 Kazbat028 is offline
                                The Only Guy With a Girlfriend
                                   
                                  Join Date: Apr 2010
                                  Gender: Male
                                  Nature: Mild
                                  Posts: 84
                                  Quote:
                                  Originally Posted by Leafbarrett View Post
                                  Okay, so I changed a script to add in an extra legendary battle, and now all of a sudden, any event sprites that should be invisible until a certain flag is triggered (i.e. Oak before you try to walk into the grass, the Silph Scope before you defeat Giovanni) are all visible, and I don't have any idea why.
                                  It would be helpful if you included the script you used in your post.
                                  __________________
                                  SS FC: 2408 0082 3603
                                  PEARL FC: 1291 3594 9507


                                  I do not care if a completely random percentage of people that you made up use hacks or cheats in their games. I also don't care that you don't use hacks.
                                  I am looking for somone to co-manage a thread with me. PM me and we'll work something out.
                                    #4743    
                                  Old September 11th, 2010 (7:20 AM).
                                  Leafbarrett's Avatar
                                  Leafbarrett Leafbarrett is offline
                                     
                                    Join Date: Mar 2009
                                    Age: 25
                                    Gender: Male
                                    Posts: 75
                                    Quote:
                                    Originally Posted by Kazbat028 View Post
                                    It would be helpful if you included the script you used in your post.
                                    Yeah, I realized that right after I posted, so I added it.
                                      #4744    
                                    Old September 11th, 2010 (7:49 AM).
                                    Kazbat028's Avatar
                                    Kazbat028 Kazbat028 is offline
                                    The Only Guy With a Girlfriend
                                       
                                      Join Date: Apr 2010
                                      Gender: Male
                                      Nature: Mild
                                      Posts: 84
                                      The only thing I can see wrong with it is that on line 3 it should be

                                      compare LASTRESULT 0x1 not 0x2
                                      __________________
                                      SS FC: 2408 0082 3603
                                      PEARL FC: 1291 3594 9507


                                      I do not care if a completely random percentage of people that you made up use hacks or cheats in their games. I also don't care that you don't use hacks.
                                      I am looking for somone to co-manage a thread with me. PM me and we'll work something out.
                                        #4745    
                                      Old September 11th, 2010 (8:34 AM).
                                      Leafbarrett's Avatar
                                      Leafbarrett Leafbarrett is offline
                                         
                                        Join Date: Mar 2009
                                        Age: 25
                                        Gender: Male
                                        Posts: 75
                                        *goes to fix* But would that fix the rest of the problems? :<
                                          #4746    
                                        Old September 11th, 2010 (11:37 AM).
                                        romancandle romancandle is offline
                                           
                                          Join Date: Oct 2009
                                          Gender: Male
                                          Nature: Adamant
                                          Posts: 72
                                          Spoiler:
                                          Code:
                                          '---------------
                                          #org 0x800716
                                          checkflag 0x828
                                          if 0x1 goto 0x8800470
                                          lock
                                          applymovement 0x1 0x880031F
                                          waitmovement 0x0
                                          applymovement MOVE_PLAYER 0x8800323
                                          pause 0x10
                                          msgbox 0x8800331 MSG_KEEPOPEN '"Hey! You look like you could use a..."
                                          preparemsg 0x8800364 '"How about a Charmander?"
                                          waitmsg
                                          multichoice 0x7 0x9 0x0 0x1
                                          compare 0x8000 0x0
                                          if 0x1 goto 0x8800894
                                          compare 0x8000 0x1
                                          if 0x1 goto 0x88008E0
                                          bufferitem 0x79 0x4
                                          goto 0x0
                                          
                                          '---------------
                                          #org 0x800470
                                          hidesprite 0x1
                                          release
                                          end
                                          
                                          '---------------
                                          #org 0x800894
                                          givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
                                          fanfare 0x13E
                                          msgbox 0x88003DC MSG_KEEPOPEN '"[black_fr]You received a Charmande..."
                                          waitfanfare
                                          closeonkeypress
                                          setflag 0x200
                                          msgbox 0x8800638 MSG_YESNO '"[black_fr]Would you like to give a..."
                                          compare LASTRESULT 0x1
                                          if 0x1 call 0x88009F6
                                          msgbox 0x88003AF MSG_NORMAL '"Oh, and here is a Pokedex! Enjoy!\..."
                                          setflag 0x828
                                          setflag 0x829
                                          applymovement 0x1 0x8800326
                                          waitmovement 0xFE
                                          return
                                          
                                          '---------------
                                          #org 0x8008E0
                                          preparemsg 0x880037E '"How about a Squirtle?"
                                          waitmsg
                                          multichoice 0x7 0x9 0x0 0x1
                                          compare 0x8000 0x0
                                          if 0x1 goto 0x8800902
                                          compare 0x8000 0x0
                                          if 0x0 goto 0x880094E
                                          '---------------
                                          #org 0x8009F6
                                          countpokemon
                                          subvar LASTRESULT 0x1
                                          copyvar 0x8004 LASTRESULT
                                          fadescreen 0x1
                                          special 0x166
                                          waitstate
                                          return
                                          
                                          '---------------
                                          #org 0x800902
                                          givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
                                          fanfare 0x13E
                                          msgbox 0x880041B MSG_KEEPOPEN '"[black_fr]You received a Squirtle!"
                                          waitfanfare
                                          closeonkeypress
                                          setflag 0x200
                                          msgbox 0x8800638 MSG_YESNO '"[black_fr]Would you like to give a..."
                                          compare LASTRESULT 0x1
                                          if 0x1 call 0x88009F6
                                          msgbox 0x88003AF MSG_NORMAL '"Oh, and here is a Pokedex! Enjoy!\..."
                                          setflag 0x828
                                          setflag 0x829
                                          applymovement 0x1 0x8800326
                                          waitmovement 0xFE
                                          end
                                          
                                          '---------------
                                          #org 0x80094E
                                          preparemsg 0x8800396 '"How about a Bulbasaur?"
                                          waitmsg
                                          multichoice 0x7 0x9 0x0 0x1
                                          compare 0x8000 0x0
                                          if 0x1 goto 0x8800970
                                          compare 0x8000 0x0
                                          if 0x0 goto 0x88009BD
                                          '---------------
                                          #org 0x800970
                                          givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
                                          fanfare 0x13E
                                          msgbox 0x88003FC MSG_KEEPOPEN '"[black_fr]You received a Bulbasaur..."
                                          waitfanfare
                                          closeonkeypress
                                          setflag 0x200
                                          msgbox 0x8800638 MSG_YESNO '"[black_fr]Would you like to give a..."
                                          compare LASTRESULT 0x1
                                          if 0x1 call 0x88009F6
                                          msgbox 0x88003AF MSG_NORMAL '"Oh, and here is a Pokedex! Enjoy!\..."
                                          setflag 0x828
                                          setflag 0x829
                                          applymovement 0x1 0x8800326
                                          waitmovement 0xFE
                                          release
                                          end
                                          
                                          '---------------
                                          #org 0x8009BD
                                          preparemsg 0x8800364 '"How about a Charmander?"
                                          waitmsg
                                          multichoice 0x7 0x9 0x0 0x1
                                          compare 0x8000 0x0
                                          if 0x1 goto 0x8800894
                                          compare 0x8000 0x0
                                          if 0x0 goto 0x88008E0
                                          
                                          '---------
                                          ' Strings
                                          '---------
                                          #org 0x800331
                                          = Hey! You look like you could use a\nfree pokemon.
                                          
                                          #org 0x800364
                                          = How about a Charmander?
                                          
                                          #org 0x8003DC
                                          = [black_fr]You received a Charmander!
                                          
                                          #org 0x800638
                                          = [black_fr]Would you like to give a\nnickname to your pokemon?
                                          
                                          #org 0x8003AF
                                          = Oh, and here is a Pokedex! Enjoy!\nHehehehe
                                          
                                          #org 0x80037E
                                          = How about a Squirtle?
                                          
                                          #org 0x80041B
                                          = [black_fr]You received a Squirtle!
                                          
                                          #org 0x800396
                                          = How about a Bulbasaur?
                                          
                                          #org 0x8003FC
                                          = [black_fr]You received a Bulbasaur!
                                          
                                          
                                          '-----------
                                          ' Movements
                                          '-----------
                                          #org 0x80031F
                                          #raw 0x62 'Exclamation Mark (!)
                                          #raw 0x2F 'Face Left (Delayed)
                                          #raw 0xFE 'End of Movements
                                          
                                          #org 0x800323
                                          #raw 0x30 'Face Right (Delayed)
                                          #raw 0xFE 'End of Movements
                                          
                                          #org 0x800326
                                          #raw 0x1D 'Step Down (Fast)
                                          #raw 0x1D 'Step Down (Fast)
                                          #raw 0x1D 'Step Down (Fast)
                                          #raw 0x1D 'Step Down (Fast)
                                          #raw 0x1D 'Step Down (Fast)
                                          #raw 0x1D 'Step Down (Fast)
                                          #raw 0x1D 'Step Down (Fast)
                                          #raw 0x1D 'Step Down (Fast)
                                          #raw 0x1D 'Step Down (Fast)
                                          #raw 0xFE 'End of Movements


                                          I need help with this script. Just playing around with the yes/no part for the pokemon either gives Charmander on Yes and No, or gives no pokemon on Yes (creating an infinite loop). Also, when the nickname screen appears, the picture and pokemon species name is "?". Can anyone help with these two problems?
                                            #4747    
                                          Old September 12th, 2010 (4:48 AM).
                                          Jm20's Avatar
                                          Jm20 Jm20 is offline
                                          A.k.a. Zig :-)
                                             
                                            Join Date: Sep 2009
                                            Location: The Netherlands
                                            Age: 24
                                            Gender: Male
                                            Posts: 88
                                            Quote:
                                            Originally Posted by Kazbat028 View Post
                                            I had that issue as well. In advancemap, make sure the 'unknown' number is set 0003 and the VAR number is 4050.
                                            Is that an answer on my question? If so, what 'unknown' number to you mean? It is a level script.
                                              #4748    
                                            Old September 12th, 2010 (10:00 AM).
                                            smellybellysrock's Avatar
                                            smellybellysrock smellybellysrock is offline
                                            Legend Of Band Camp: You ready
                                               
                                              Join Date: May 2008
                                              Posts: 76
                                              Well, you see, I want this script to activate when the player steps on it, but I just can't seem to get it right. Can somebody correct it?
                                              Spoiler:

                                              #org 0x8169E1A
                                              '-----------------------------------
                                              checkflag 0x01FE
                                              if b_true goto end
                                              addpokemon TOGEPI 5 NONE 0x0 0x0 0x0
                                              setflag 0x01FE
                                              end


                                              (I use PKSV)
                                              __________________

                                              Are you ready for Band Camp?
                                                #4749    
                                              Old September 13th, 2010 (5:00 AM).
                                              Saitou Saitou is offline
                                               
                                                 
                                                Join Date: Sep 2010
                                                Gender: Male
                                                Nature: Relaxed
                                                Posts: 118
                                                I have been having this 'problem' for a while now, and my attempts to understand it failed, so I want to ask for help here. Okay, so I am using XSE, and have been for a couple of days now, after trying PokeScript, which has a very rough, raw syntax.

                                                My question is about the '#dynamic' call. Suppose you made a small or even large script, does the '#dynamic' command check how many bytes needed to modify the free space in the ROM first, and then assigns an available offset that can hold those bytes? Or does something else check how many bytes this script will take in the ROM's memory?

                                                And about the built-in commands, is there a place to know how much bytes each will use, as in it's raw form?
                                                  #4750    
                                                Old September 13th, 2010 (6:18 AM).
                                                Shiny Quagsire's Avatar
                                                Shiny Quagsire Shiny Quagsire is offline
                                                I'm Still Alive, Elsewhere
                                                   
                                                  Join Date: May 2009
                                                  Location: Hoenn Safari Zone
                                                  Age: 19
                                                  Gender: Male
                                                  Nature: Jolly
                                                  Posts: 700
                                                  Quote:
                                                  Originally Posted by smellybellysrock View Post
                                                  Well, you see, I want this script to activate when the player steps on it, but I just can't seem to get it right. Can somebody correct it?
                                                  Spoiler:

                                                  #org 0x8169E1A
                                                  '-----------------------------------
                                                  checkflag 0x01FE
                                                  if b_true goto end
                                                  addpokemon TOGEPI 5 NONE 0x0 0x0 0x0
                                                  setflag 0x01FE
                                                  end


                                                  (I use PKSV)
                                                  Try changing the second unknown byte to 03. I've seen it a lot in nintendo scripts. If that doesn't work, change the script to another script such as this:

                                                  Code:
                                                  #org 0xoffset
                                                  goto 0xoffset
                                                  Quote:
                                                  Originally Posted by Saitou View Post
                                                  I have been having this 'problem' for a while now, and my attempts to understand it failed, so I want to ask for help here. Okay, so I am using XSE, and have been for a couple of days now, after trying PokeScript, which has a very rough, raw syntax.

                                                  My question is about the '#dynamic' call. Suppose you made a small or even large script, does the '#dynamic' command check how many bytes needed to modify the free space in the ROM first, and then assigns an available offset that can hold those bytes? Or does something else check how many bytes this script will take in the ROM's memory?

                                                  And about the built-in commands, is there a place to know how much bytes each will use, as in it's raw form?
                                                  Basically, imagine #dynamic as free-space finder. All it does is tells it where to start, and the number of free space to look for is the scripts byte length. Simple.

                                                  So
                                                  #dynamic 0x800000
                                                  would search from free space with enough room for the script

                                                  For your second question:One byte for the command, and the arguments follow it. (Flipped)
                                                  For example:
                                                  Code:
                                                  callasm 0x800000
                                                  would be:
                                                  Code:
                                                  23 00 00 80 08
                                                  Does this help?
                                                  __________________



                                                  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 9:36 PM.