The PokéCommunity Forums Fan Games ROM Hacking
Script Help Thread (DO NOT REQUEST SCRIPTS)

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.


Closed Thread
 
Thread Tools
  #7651    
Old January 29th, 2013 (3:36 AM). Edited January 29th, 2013 by karatekid552.
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
     
    Join Date: Nov 2012
    Location: Do you really want to know? Really?
    Gender: Male
    Nature: Bold
    Posts: 1,766
    Quote:
    Originally Posted by FBI agent View Post
    You need to setvar 0x5004 to 0x0 for female and 0x1 for male, should work then. I'm gonna try it on a clean rom and see what happens :P
    I did and vars always start off set to 0 anways. Why not just use the checkgender command, btw?

    Quote:
    Originally Posted by thetripplenine View Post
    No I'm trying to use movesprite because I want the mother to say that to the player...

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

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

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


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

    #org 0x8699CE
    = Oh, I'm sorry I didn't realize you\nwere the new recruit!
    Flags in the 800's are often used by the game and may be set behind the scenes. Not always nest to use them. The flags in the 1000's are very good to use though.

    In PKSVUI, have you tried changeing the 'preparemsgbox and waitmsgbox' to;

    Msgbox @msg
    Callstd MSG_NORMAL

    ?

    I remember reading comething about the preparemsgbox command and I don't think it is your best choice. Also, it this a person script or an S-tile script? The more information we have, the better.
    __________________

    Paired with Simba

    Relevant Advertising!

      #7652    
    Old January 29th, 2013 (3:55 AM).
    FBI's Avatar
    FBI FBI is offline
    Free supporter
     
    Join Date: Jan 2013
    Location: Unknown Island
    Gender: Male
    Posts: 1,863
    Quote:
    Originally Posted by karatekid552 View Post
    I did and vars always start off set to 0 anways. Why not just use the checkgender command, btw?



    Flags in the 800's are often used by the game and may be set behind the scenes. Not always nest to use them. The flags in the 1000's are very good to use though.

    In PKSVUI, have you tried changeing the 'preparemsgbox and waitmsgbox' to;

    Msgbox @msg
    Callstd MSG_NORMAL

    ?

    I remember reading comething about the preparemsgbox command and I don't think it is your best choice. Also, it this a person script or an S-tile script? The more information we have, the better.
    Because I needed it for another script earlier :D
    That's pretty wierd though, I'm getting all the @fine messages. I also know the running shoes flag i being set since I get the @GL message.
    __________________
    ...
      #7653    
    Old January 29th, 2013 (4:44 AM). Edited January 29th, 2013 by tajaros.
    tajaros's Avatar
    tajaros tajaros is offline
    Hi I'm dawg
       
      Join Date: Apr 2012
      Location: Philippines
      Age: 19
      Gender: Male
      Nature: Timid
      Posts: 857
      Quote:
      Originally Posted by karatekid552 View Post
      Cool, but I just remebered that the post was on the other help thread.

      Just add this after the battle to make it dissapear:

      fadescreen 0x1
      hidesprite 0xsprite#
      fadescreen 0x0
      Remember to repoint.
      Not sprite # but person event no. This might confuse some people to use the sprite # seen on A-map.


      Quote:
      Originally Posted by thetripplenine View Post
      Now I can't work this Xse... For example this script won't do anything, it just freezes the game.

      Spoiler:
      #dynamic 0x9C0000

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

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


      Btw it's supposed to move the mother in emerald
      Who in the world is person event no. 533???????? (that's 215 in hex) I'm pretty sure that's what is causing your game to freeze not the dynamic offset. Remember XSE does things in hex...

      If you're trying to move the player it should be 0xFF (255 in dec) but I don't think that would be a good idea since the center of the screen would be off and you would be trapped in the game.

      So if you're trying to do that just use a warp command and make a warp using A-map. Please do not change into PKSV keep on using XSE it's the best script editor for GBA Pokemon Games... :)

      Quote:
      Originally Posted by thetripplenine View Post
      No I'm trying to use movesprite because I want the mother to say that to the player...

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

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

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


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

      #org 0x8699CE
      = Oh, I'm sorry I didn't realize you\nwere the new recruit!
      ? You already are checking if the flag 0x828 is already set (which is the pokemon menu) so why set it again?

      Use another flag probably 0x200 if you haven't used that up.
      Quote:
      Originally Posted by karatekid552 View Post
      I did and vars always start off set to 0 anways. Why not just use the checkgender command, btw?



      Flags in the 800's are often used by the game and may be set behind the scenes. Not always nest to use them. The flags in the 1000's are very good to use though.

      In PKSVUI, have you tried changeing the 'preparemsgbox and waitmsgbox' to;

      Msgbox @msg
      Callstd MSG_NORMAL

      ?

      I remember reading comething about the preparemsgbox command and I don't think it is your best choice. Also, it this a person script or an S-tile script? The more information we have, the better.
      NO, NO, NO, NO, NO.

      Do not use flags greater than 0x900 cause they will be overwriting with variables from 0x4000 and up and might be the cause of your game having bad eggs and such. And will also be the cause of already set variables which will be a hassle.

      I recommend using flags from 0x200-0x2FF since those are used for stories in FR.
      __________________
        #7654    
      Old January 29th, 2013 (5:25 AM).
      karatekid552's Avatar
      karatekid552 karatekid552 is offline
      What happens if I push it?....
         
        Join Date: Nov 2012
        Location: Do you really want to know? Really?
        Gender: Male
        Nature: Bold
        Posts: 1,766
        Quote:
        Originally Posted by tajaros View Post
        Not sprite # but person event no. This might confuse some people to use the sprite # seen on A-map.



        Who in the world is person event no. 533???????? (that's 215 in hex) I'm pretty sure that's what is causing your game to freeze not the dynamic offset. Remember XSE does things in hex...

        If you're trying to move the player it should be 0xFF (255 in dec) but I don't think that would be a good idea since the center of the screen would be off and you would be trapped in the game.

        So if you're trying to do that just use a warp command and make a warp using A-map. Please do not change into PKSV keep on using XSE it's the best script editor for GBA Pokemon Games... :)



        ? You already are checking if the flag 0x828 is already set (which is the pokemon menu) so why set it again?

        Use another flag probably 0x200 if you haven't used that up.


        NO, NO, NO, NO, NO.

        Do not use flags greater than 0x900 cause they will be overwriting with variables from 0x4000 and up and might be the cause of your game having bad eggs and such. And will also be the cause of already set variables which will be a hassle.

        I recommend using flags from 0x200-0x2FF since those are used for stories in FR.

        ummm... If you're planning on leaving scripts that were already a part of the game, be carefull in the 200's, almost half of them are used:

        Used flags in FR/LG from Diegoisawesome's tutorial:
        Quote:
        Fire Red/Leaf Green:
        Spoiler:

        0x1
        0x2
        0x3
        0x4
        0x5
        0x6
        0x2B
        0x2C
        0x2E
        0x2F
        0x30
        0x31
        0x32
        0x33
        0x34
        0x35
        0x36
        0x37
        0x39
        0x3D
        0x3E
        0x3F
        0x40
        0x41
        0x42
        0x43
        0x44
        0x45
        0x46
        0x47
        0x48
        0x49
        0x4A
        0x4B
        0x4C
        0x4D
        0x50
        0x52
        0x54
        0x58
        0x59
        0x5C
        0x5D
        0x5F
        0x62
        0x63
        0x64
        0x65
        0x66
        0x67
        0x68
        0x69
        0x6A
        0x6B
        0x72
        0x75
        0x7A
        0x7B
        0x7C
        0x7D
        0x7E
        0x80
        0x81
        0x82
        0x84
        0x85
        0x86
        0x88
        0x8B
        0x8C
        0x8D
        0x8E
        0x91
        0x92
        0x93
        0x94
        0x95
        0x96
        0x97
        0x98
        0x99
        0x9A
        0x9B
        0x9C
        0x9E
        0x9F
        0xA0
        0xA1
        0xA2
        0xAA
        0xAD
        0xAE
        0xB1
        0xB2
        0xB3
        0xB4
        0xD5
        0xD6
        0xD7
        0xDC
        0xEA
        0x109
        0x10A
        0x10B
        0x118
        0x119
        0x11A
        0x11B
        0x120
        0x121
        0x124
        0x125
        0x126
        0x127
        0x128
        0x129
        0x142
        0x143
        0x144
        0x163
        0x16A
        0x16E
        0x16F
        0x188
        0x189
        0x190
        0x191
        0x192
        0x1A7
        0x1A8
        0x1B6
        0x1B7
        0x1B8
        0x1CE
        0x1CF
        0x1D0
        0x219
        0x21A
        0x21F
        0x230
        0x231
        0x232
        0x233
        0x234
        0x235
        0x236
        0x237
        0x238
        0x239
        0x23A
        0x23B
        0x23C
        0x23D
        0x23F
        0x240
        0x241
        0x243
        0x244
        0x245
        0x246
        0x247
        0x248
        0x249
        0x24A
        0x24B
        0x24D
        0x24E
        0x24F
        0x250
        0x251
        0x252
        0x253
        0x254
        0x255
        0x256
        0x257
        0x258
        0x259
        0x25B
        0x25E
        0x263
        0x264
        0x265
        0x266
        0x267
        0x268
        0x269
        0x26A
        0x26B
        0x26C
        0x26D
        0x26E
        0x26F
        0x270
        0x271
        0x272
        0x273
        0x274
        0x275
        0x276
        0x278
        0x27A
        0x27B
        0x27C
        0x27D
        0x27E
        0x27F
        0x280
        0x281
        0x282
        0x283
        0x284
        0x285
        0x286
        0x287
        0x288
        0x289
        0x28A
        0x28B
        0x28C
        0x28D
        0x290
        0x291
        0x292
        0x293
        0x294
        0x295
        0x296
        0x297
        0x298
        0x29A
        0x29B
        0x29C
        0x29D
        0x29E
        0x29F
        0x2A0
        0x2A1
        0x2A2
        0x2A3
        0x2A5
        0x2A6
        0x2BB
        0x2BC
        0x2BD
        0x2BE
        0x2BF
        0x2C0
        0x2C1
        0x2C2
        0x2C3
        0x2C4
        0x2C5
        0x2C6
        0x2C7
        0x2C8
        0x2C9
        0x2CA
        0x2CB
        0x2CC
        0x2CD
        0x2CE
        0x2CF
        0x2D0
        0x2D1
        0x2D2
        0x2D3
        0x2D4
        0x2D5
        0x2D6
        0x2D7
        0x2D8
        0x2D9
        0x2DA
        0x2DB
        0x2DC
        0x2DD
        0x2E1
        0x2E2
        0x2E3
        0x2E4
        0x2E5
        0x2EC
        0x2ED
        0x2EE
        0x2EF
        0x2F0
        0x2F1
        0x2F2
        0x2F3
        0x2F4
        0x2F5
        0x2F6
        0x2F7
        0x2F8
        0x2F9
        0x2FA
        0x2FB
        0x2FC
        0x2FD
        0x2FE
        0x2FF
        0x4B0
        0x4B1
        0x4B2
        0x4B3
        0x4B4
        0x4B5
        0x4B6
        0x4B7
        0x4B8
        0x4B9
        0x4BA
        0x4BB
        0x4BC
        0x805
        0x807
        0x820
        0x821
        0x822
        0x823
        0x824
        0x825
        0x826
        0x827
        0x828
        0x829
        0x82C
        0x82D
        0x82F
        0x830
        0x834
        0x83E
        0x841
        0x842
        0x844
        0x845
        0x846
        0x847
        0x848
        0x849
        0x84A
        0x84B
        0x890
        0x891
        0x892
        0x893
        0x894
        0x895
        0x896
        0x897
        0x898
        0x899
        0x89A
        0x89B
        0x89C
        0x89D
        0x89E
        0x89F
        0x8A0
        0x8A1
        0x8A2
        0x8A3
        0x8A4
        0x8A5
        0x8A6
        0x8A7
        0x8A8
        0x8A9
        0x8AA
        0x8AB
        0x8AC
        0x8AD
        0x8AE
        0x8AF
        0x8B0
        0x8B1
        0x8B2
        0x8B3
        0x8B4
        0x8B5
        0x8B6
        0x8B7
        0x8B8
        0x8B9
        0x8BA
        0x8BB
        0x8BC
        0x8BD
        0x8BE
        0x8BF
        0x8C0
        0x8C1
        0x8C2


        I'm sorry about the whole 1000's thing, I have always used them and never had a problem. I could of sworn I saw them on a list of safe flags, that I can't conveniently find at the moment. The 900's are good though, right? They don't appear on any of the lists.
        __________________

        Paired with Simba
          #7655    
        Old January 29th, 2013 (12:28 PM).
        thetripplenine's Avatar
        thetripplenine thetripplenine is offline
        tripple.
           
          Join Date: Jan 2013
          Location: California
          Age: 20
          Gender: Male
          Nature: Bold
          Posts: 98
          Quote:
          Who in the world is person event no. 533???????? (that's 215 in hex) I'm pretty sure that's what is causing your game to freeze not the dynamic offset. Remember XSE does things in hex...

          If you're trying to move the player it should be 0xFF (255 in dec) but I don't think that would be a good idea since the center of the screen would be off and you would be trapped in the game.

          So if you're trying to do that just use a warp command and make a warp using A-map. Please do not change into PKSV keep on using XSE it's the best script editor for GBA Pokemon Games... :)
          So ya i changed it, btw i'm trying to move the mother not the player and the game still freezes... Do I have to give the mother a person ID?

          Spoiler:
          #dynamic 0x9C0000

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

          #org @1
          = Hi [player]! Ignore some of what\nProfessor Birch said. Your mission\lis to infultrate Team Magma's\lheadquarters. Go north of this\lhouse, enter the cave, receive\lyour pokemon, and find the sailor\lwho will send you to the\lrecruitment training.
            #7656    
          Old January 29th, 2013 (1:21 PM).
          karatekid552's Avatar
          karatekid552 karatekid552 is offline
          What happens if I push it?....
             
            Join Date: Nov 2012
            Location: Do you really want to know? Really?
            Gender: Male
            Nature: Bold
            Posts: 1,766
            Quote:
            Originally Posted by thetripplenine View Post
            So ya i changed it, btw i'm trying to move the mother not the player and the game still freezes... Do I have to give the mother a person ID?

            Spoiler:
            #dynamic 0x9C0000

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

            #org @1
            = Hi [player]! Ignore some of what\nProfessor Birch said. Your mission\lis to infultrate Team Magma's\lheadquarters. Go north of this\lhouse, enter the cave, receive\lyour pokemon, and find the sailor\lwho will send you to the\lrecruitment training.
            The sprite number must match be the corresponding hex number for the decimal number placed in the person event number box (the one that you can change easily). The person I.D. Is used for showing an hiding ows based on a given flag.
            __________________

            Paired with Simba
              #7657    
            Old January 29th, 2013 (1:28 PM). Edited January 29th, 2013 by butterflye.
            butterflye's Avatar
            butterflye butterflye is offline
            Dancing on the rainbow lane
               
              Join Date: Nov 2012
              Age: 23
              Gender: Female
              Nature: Calm
              Posts: 8
              Quote:
              Originally Posted by karatekid552 View Post
              It's var 0x800D, that is LASTRESULT. It's on line 10, you're checking the wrong var.
              Corrected for your indication. Perhaps in a moment of anger, I throw the mouse out of the window, but it still doesn't work. Still no matter what I click, the game interprets as No. I really do not know what I'm doing wrong or what is the reason ;/ Maybe someone could check the operation of this script on his rom? Maybe it's the fault of my rom.
              I would be grateful and obliged.

              Spoiler:
              #dynamic 0xD00523

              #org @start
              lock
              faceplayer
              checkflag 0x828
              if 0x1 goto @done
              msgbox @1 0x5
              compare LASTRESULT 0x800D
              if 0x1 goto @givepokemon
              msgbox @no 0x6
              release
              end

              #org @givepokemon
              msgbox @thanks 0x6
              givepokemon 0x376 0x5 0x0 0x0 0x0 0x0
              fanfare 0x13E
              msgbox @received 0x6
              waitfanfare
              setflag 0x828
              release
              end

              #org @done
              msgbox @endie 0x6
              release
              end

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

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

              #org @endie
              = I hope Absol is fine.

              #org @thanks
              = Here you go.

              #org @received
              = [red_rs]Absol is now your friend!
              __________________
              Yes, I'm Polish.:paranoid:

              Supports:
              Spoiler:
              | |

                #7658    
              Old January 29th, 2013 (1:32 PM).
              karatekid552's Avatar
              karatekid552 karatekid552 is offline
              What happens if I push it?....
                 
                Join Date: Nov 2012
                Location: Do you really want to know? Really?
                Gender: Male
                Nature: Bold
                Posts: 1,766
                Quote:
                Originally Posted by butterflye View Post
                Corrected for your indication. Perhaps in a moment of anger, I throw the mouse out of the window, but it still doesn't work. Still no matter what I click, the game interprets as No. I really do not know what I'm doing wrong or what is the reason ;/ Maybe someone could check the operation of this script on his rom? Maybe it's the fault of my rom.
                I would be grateful and obliged.

                Spoiler:
                #dynamic 0xD00523

                #org @start
                lock
                faceplayer
                checkflag 0x828
                if 0x1 goto @done
                msgbox @1 0x5
                compare LASTRESULT 0x800D
                if 0x1 goto @givepokemon
                msgbox @no 0x6
                release
                end

                #org @givepokemon
                msgbox @thanks 0x6
                givepokemon 0x376 0x5 0x0 0x0 0x0 0x0
                fanfare 0x13E
                msgbox @received 0x6
                waitfanfare
                setflag 0x828
                release
                end

                #org @done
                msgbox @endie 0x6
                release
                end

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

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

                #org @endie
                = I hope Absol is fine.

                #org @thanks
                = Here you go.

                #org @received
                = [red_rs]Absol is now your friend!
                Lol, LASTRESULT IS 0x800D! You want to compare it to 0x1 (which is programing for 'true' or 'yes', 'no' would be 0x0)

                Vars are tough, just try not to abuse the mouse, it didn't do anything wrong:D.
                __________________

                Paired with Simba
                  #7659    
                Old January 29th, 2013 (1:36 PM). Edited January 29th, 2013 by thetripplenine.
                thetripplenine's Avatar
                thetripplenine thetripplenine is offline
                tripple.
                   
                  Join Date: Jan 2013
                  Location: California
                  Age: 20
                  Gender: Male
                  Nature: Bold
                  Posts: 98
                  Quote:
                  Originally Posted by butterflye View Post
                  Corrected for your indication. Perhaps in a moment of anger, I throw the mouse out of the window, but it still doesn't work. Still no matter what I click, the game interprets as No. I really do not know what I'm doing wrong or what is the reason ;/ Maybe someone could check the operation of this script on his rom? Maybe it's the fault of my rom.
                  I would be grateful and obliged.

                  Spoiler:
                  #dynamic 0xD00523

                  #org @start
                  lock
                  faceplayer
                  checkflag 0x828
                  if 0x1 goto @done
                  msgbox @1 0x5
                  compare LASTRESULT 0x800D
                  if 0x1 goto @givepokemon
                  msgbox @no 0x6
                  release
                  end

                  #org @givepokemon
                  msgbox @thanks 0x6
                  givepokemon 0x376 0x5 0x0 0x0 0x0 0x0
                  fanfare 0x13E
                  msgbox @received 0x6
                  waitfanfare
                  setflag 0x828
                  release
                  end

                  #org @done
                  msgbox @endie 0x6
                  release
                  end

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

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

                  #org @endie
                  = I hope Absol is fine.

                  #org @thanks
                  = Here you go.

                  #org @received
                  = [red_rs]Absol is now your friend!
                  Well First of all you need to change the first part of your givepokemon to 0x178 (not 376) because xse works on hex's and second of all do you not want the person to be able to nickname the pokemon, and what karatekid said...

                  Quote:
                  Originally Posted by karatekid552 View Post
                  The sprite number must match be the corresponding hex number for the decimal number placed in the person event number box (the one that you can change easily). The person I.D. Is used for showing an hiding ows based on a given flag.
                  Ya i did the right hex number which is 215 that converts to whatever i said... it's also the mothers so I don't get why it's not working....
                    #7660    
                  Old January 29th, 2013 (1:44 PM).
                  karatekid552's Avatar
                  karatekid552 karatekid552 is offline
                  What happens if I push it?....
                     
                    Join Date: Nov 2012
                    Location: Do you really want to know? Really?
                    Gender: Male
                    Nature: Bold
                    Posts: 1,766
                    Quote:
                    Originally Posted by thetripplenine View Post
                    Well First of all you need to change the first part of your givepokemon to 0x178 (not 376) because xse works on hex's and second of all do you not want the person to be able to nickname the pokemon, and what karatekid said...



                    Ya i did the right hex number which is 215 that converts to whatever i said... it's also the mothers so I don't get why it's not working....


                    Try pitting a fadescreen 0x0 before it and a fadescreen 0x1 after it.
                    __________________

                    Paired with Simba
                      #7661    
                    Old January 29th, 2013 (1:50 PM).
                    thetripplenine's Avatar
                    thetripplenine thetripplenine is offline
                    tripple.
                       
                      Join Date: Jan 2013
                      Location: California
                      Age: 20
                      Gender: Male
                      Nature: Bold
                      Posts: 98
                      Quote:
                      Originally Posted by karatekid552 View Post
                      Try pitting a fadescreen 0x0 before it and a fadescreen 0x1 after it.

                      Well at least it does something now... the screen goes black and all you see is the mother and the player...

                      I think my problem may just be me adding something so the same script doesn't happen again and again every time you step on that certain spot...
                        #7662    
                      Old January 29th, 2013 (1:58 PM).
                      kj3400's Avatar
                      kj3400 kj3400 is offline
                      Wants a Magneton for a Charger
                         
                        Join Date: Mar 2012
                        Gender: Male
                        Nature: Lax
                        Posts: 53
                        Quote:
                        Originally Posted by thetripplenine View Post
                        Well at least it does something now... the screen goes black and all you see is the mother and the player...

                        I think my problem may just be me adding something so the same script doesn't happen again and again every time you step on that certain spot...

                        Well that's easy, just set a flag at the end and add a part at the start where if you step on it again, it just releases you and ends the script without doing anything.
                          #7663    
                        Old January 29th, 2013 (2:06 PM).
                        karatekid552's Avatar
                        karatekid552 karatekid552 is offline
                        What happens if I push it?....
                           
                          Join Date: Nov 2012
                          Location: Do you really want to know? Really?
                          Gender: Male
                          Nature: Bold
                          Posts: 1,766
                          An even easier way would be to take the var you had to input for the s-tile and set it to something other than what its specified value in A-map is.
                          __________________

                          Paired with Simba
                            #7664    
                          Old January 29th, 2013 (2:09 PM).
                          FBI's Avatar
                          FBI FBI is offline
                          Free supporter
                           
                          Join Date: Jan 2013
                          Location: Unknown Island
                          Gender: Male
                          Posts: 1,863
                          Quote:
                          Originally Posted by thetripplenine View Post
                          No I'm trying to use movesprite because I want the mother to say that to the player...

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

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

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


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

                          #org 0x8699CE
                          = Oh, I'm sorry I didn't realize you\nwere the new recruit!
                          You are mixing XSE command syntax with PKSV. Also there's a ton wrong here logically too. Try this:

                          Spoiler:

                          #dynamic 0x740000
                          #org @start
                          lockall
                          checkflag 0x828
                          if TRUE jump @picked
                          msgbox @cannot_enter
                          callstd MSG_NOCLOSE
                          releaseall
                          end

                          #org @picked
                          msgbox @allowed
                          callstd MSG_NORMAL
                          fadescreen 0x1
                          disappear LASTTALKED
                          setflag 0x200 'You should not be setting 0x828 since that is the prerequisite to enter this sub section
                          fadescreen 0x0
                          releaseall
                          end

                          #org @cannot_enter
                          = You cannot enter without picking a\Pok\emon.

                          #org @allowed
                          = Oh, I'm sorry I didn't realize you\nwere the new recruit!


                          That would work in PKSV, not problems unless you've already used the flag 0x200 somewhere.
                          --------------------------

                          Quote:
                          Originally Posted by tajaros View Post
                          So if you're trying to do that just use a warp command and make a warp using A-map. Please do not change into PKSV keep on using XSE it's the best script editor for GBA Pokemon Games... :)
                          Outside of popularity, what basis are you using to make this statement? I'm really curious, sounds a lot like an opinion rather than a fact. PKSV definitely seems more user friendly and the compiler messages help point out mistakes in an obvious manner. Then again, I don't know if there is some inner workings that make one better than the other, maybe you can tell me?
                          __________________
                          ...
                            #7665    
                          Old January 29th, 2013 (2:25 PM).
                          karatekid552's Avatar
                          karatekid552 karatekid552 is offline
                          What happens if I push it?....
                             
                            Join Date: Nov 2012
                            Location: Do you really want to know? Really?
                            Gender: Male
                            Nature: Bold
                            Posts: 1,766
                            Quote:
                            Originally Posted by FBI agent View Post
                            Outside of popularity, what basis are you using to make this statement? I'm really curious, sounds a lot like an opinion rather than a fact. PKSV definitely seems more user friendly and the compiler messages help point out mistakes in an obvious manner. Then again, I don't know if there is some inner workings that make one better than the other, maybe you can tell me?

                            Just my opinion on XSE, yes in some respects PKSVUI is easier, however, it doesn't tell you what parameters are required for each command, while XSE tells you as you type. Personally, it is a little less user friendly (no drop down box) but I like it better. Its defined names (sush as LASTRESULT) can also be edited very easily. It also auto selects your @start offset for copying after you compile, which can speed up things if you have a lot of scripts to do, whereas PKSVUI is a little bit tougher to copy your new offset.

                            Also, don't forget that XSE has a command database that contains everything known about each command.

                            Popularity? When I first started hacking, all I heard was PKSVUI this and PKSVUI that. I'm sitting there with XSE going, what do I do??? haha

                            I know I'm not tajaros, so this is just my personal opinion of the subject.
                            __________________

                            Paired with Simba
                              #7666    
                            Old January 29th, 2013 (2:33 PM).
                            kj3400's Avatar
                            kj3400 kj3400 is offline
                            Wants a Magneton for a Charger
                               
                              Join Date: Mar 2012
                              Gender: Male
                              Nature: Lax
                              Posts: 53
                              Quote:
                              Originally Posted by karatekid552 View Post
                              An even easier way would be to take the var you had to input for the s-tile and set it to something other than what its specified value in A-map is.
                              I've always wondered about that. Is there a reason you have to set the script var number to 4050, or is that just a generic number?
                                #7667    
                              Old January 29th, 2013 (2:41 PM).
                              karatekid552's Avatar
                              karatekid552 karatekid552 is offline
                              What happens if I push it?....
                                 
                                Join Date: Nov 2012
                                Location: Do you really want to know? Really?
                                Gender: Male
                                Nature: Bold
                                Posts: 1,766
                                Quote:
                                Originally Posted by kj3400 View Post
                                I've always wondered about that. Is there a reason you have to set the script var number to 4050, or is that just a generic number?
                                Generic. The script will only happen if the given var equals the given value.
                                __________________

                                Paired with Simba
                                  #7668    
                                Old January 29th, 2013 (3:36 PM).
                                FBI's Avatar
                                FBI FBI is offline
                                Free supporter
                                 
                                Join Date: Jan 2013
                                Location: Unknown Island
                                Gender: Male
                                Posts: 1,863
                                Quote:
                                Originally Posted by karatekid552 View Post
                                Just my opinion on XSE, yes in some respects PKSVUI is easier, however, it doesn't tell you what parameters are required for each command, while XSE tells you as you type.
                                You can just hit debug and all that info is all displayed.

                                Quote:
                                Originally Posted by karatekid552 View Post
                                Personally, it is a little less user friendly (no drop down box) but I like it better. Its defined names (sush as LASTRESULT) can also be edited very easily. It also auto selects your @start offset for copying after you compile, which can speed up things if you have a lot of scripts to do, whereas PKSVUI is a little bit tougher to copy your new offset.
                                This is true, but PKSV has ascript generator which is useful for fast scripting, a movement helper, auto complete, a list of important flags, the defined names is just a side thing.

                                Quote:
                                Also, don't forget that XSE has a command database that contains everything known about each command.
                                Fair enough, that and the text adjuster are the only things I use in XSE :P
                                When you decompile a script that has a callasm command, PKSV branches down and prints out the ASM commands themselves.

                                Quote:
                                Popularity? When I first started hacking, all I heard was PKSVUI this and PKSVUI that. I'm sitting there with XSE going, what do I do??? haha

                                I know I'm not tajaros, so this is just my personal opinion of the subject.
                                Exact opposite for me ;(
                                __________________
                                ...
                                  #7669    
                                Old January 29th, 2013 (3:43 PM).
                                karatekid552's Avatar
                                karatekid552 karatekid552 is offline
                                What happens if I push it?....
                                   
                                  Join Date: Nov 2012
                                  Location: Do you really want to know? Really?
                                  Gender: Male
                                  Nature: Bold
                                  Posts: 1,766
                                  Quote:
                                  Originally Posted by FBI agent View Post
                                  You can just hit debug and all that info is all displayed.


                                  This is true, but PKSV has ascript generator which is useful for fast scripting, a movement helper, auto complete, a list of important flags, the defined names is just a side thing.


                                  Fair enough, that and the text adjuster are the only things I use in XSE :P
                                  When you decompile a script that has a callasm command, PKSV branches down and prints out the ASM commands themselves.


                                  Exact opposite for me ;(
                                  Okay, we'll call it a draw... Just depends on the situation you need it for.
                                  __________________

                                  Paired with Simba
                                    #7670    
                                  Old January 29th, 2013 (4:54 PM).
                                  thetripplenine's Avatar
                                  thetripplenine thetripplenine is offline
                                  tripple.
                                     
                                    Join Date: Jan 2013
                                    Location: California
                                    Age: 20
                                    Gender: Male
                                    Nature: Bold
                                    Posts: 98
                                    Wow nothings working... It's so weird...
                                      #7671    
                                    Old January 29th, 2013 (5:02 PM).
                                    karatekid552's Avatar
                                    karatekid552 karatekid552 is offline
                                    What happens if I push it?....
                                       
                                      Join Date: Nov 2012
                                      Location: Do you really want to know? Really?
                                      Gender: Male
                                      Nature: Bold
                                      Posts: 1,766
                                      Quote:
                                      Originally Posted by thetripplenine View Post
                                      Wow nothings working... It's so weird...
                                      Post a copy of your most recent script with exactly what you are trying to do and I will personally compile it and do my best to fix it.
                                      __________________

                                      Paired with Simba
                                        #7672    
                                      Old January 29th, 2013 (5:15 PM).
                                      thetripplenine's Avatar
                                      thetripplenine thetripplenine is offline
                                      tripple.
                                         
                                        Join Date: Jan 2013
                                        Location: California
                                        Age: 20
                                        Gender: Male
                                        Nature: Bold
                                        Posts: 98
                                        Spoiler:
                                        #dynamic 0x9C0000

                                        #org @start
                                        movesprite 0xD7 0x6 0x2
                                        if movesprite goto @Stop
                                        faceplayer
                                        msgbox @1 0x6
                                        release
                                        end

                                        #org @stop
                                        setflag 0x220
                                        return

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


                                        I think i messed up a lot, just saying...
                                          #7673    
                                        Old January 29th, 2013 (5:23 PM).
                                        karatekid552's Avatar
                                        karatekid552 karatekid552 is offline
                                        What happens if I push it?....
                                           
                                          Join Date: Nov 2012
                                          Location: Do you really want to know? Really?
                                          Gender: Male
                                          Nature: Bold
                                          Posts: 1,766
                                          Quote:
                                          Originally Posted by thetripplenine View Post
                                          Spoiler:
                                          #dynamic 0x9C0000

                                          #org @start
                                          movesprite 0xD7 0x6 0x2
                                          if movesprite goto @Stop
                                          faceplayer
                                          msgbox @1 0x6
                                          release
                                          end

                                          #org @stop
                                          setflag 0x220
                                          return

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


                                          I think i messed up a lot, just saying...
                                          Why not just use an applymovement and have the mom walk over? Also, if movesprite... makes absolutly no sense. If is used to determine what to do if a compare type command is used and a certain value is returned.
                                          __________________

                                          Paired with Simba
                                            #7674    
                                          Old January 29th, 2013 (5:23 PM).
                                          FBI's Avatar
                                          FBI FBI is offline
                                          Free supporter
                                           
                                          Join Date: Jan 2013
                                          Location: Unknown Island
                                          Gender: Male
                                          Posts: 1,863
                                          Quote:
                                          Originally Posted by thetripplenine View Post
                                          Spoiler:
                                          #dynamic 0x9C0000

                                          #org @start
                                          movesprite 0xD7 0x6 0x2
                                          if movesprite goto @Stop
                                          faceplayer
                                          msgbox @1 0x6
                                          release
                                          end

                                          #org @stop
                                          setflag 0x220
                                          return

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


                                          I think i messed up a lot, just saying...
                                          1) Stop using movesprite
                                          2) Get the new XSE
                                          3) if movesprite? That's wrong. If statements check if something evaluates to something else.
                                          I.E:
                                          If it's raining <- condition
                                          I will wear my coat
                                          You are not checking anything there with if movesprite infact you shouldn't even be able to compile the script with that kinda error. Try this:

                                          if [condition] == TRUE
                                          jump @SubSection

                                          4) Tell us what you're trying to do in detail with this script. Right now there are so many errors it's hard to tell what you want happening.
                                          __________________
                                          ...
                                            #7675    
                                          Old January 29th, 2013 (5:25 PM).
                                          thetripplenine's Avatar
                                          thetripplenine thetripplenine is offline
                                          tripple.
                                             
                                            Join Date: Jan 2013
                                            Location: California
                                            Age: 20
                                            Gender: Male
                                            Nature: Bold
                                            Posts: 98
                                            Well I just wanted the stupid mom to walk over and tell you something... But, I guess I can use applymovement...
                                            Closed Thread

                                            Quick Reply

                                            Join the conversation!

                                            Create an account to post a reply in this thread, participate in other discussions, and more!

                                            Create a PokéCommunity Account

                                            Sponsored Links
                                            Thread Tools

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

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

                                            Forum Jump


                                            All times are GMT -8. The time now is 2:35 PM.