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

TrollandToad.com
Closed Thread
 
Thread Tools
  #1451    
Old June 18th, 2009 (7:29 PM).
Khan6195's Avatar
Khan6195 Khan6195 is offline
Michael Jackson Died. Parté!
     
    Join Date: May 2009
    Location: Canada
    Age: 22
    Gender: Male
    Nature: Adamant
    Posts: 24
    I have read the guide, and F1 doesn't work for me... But anyways, I figured it out... I even hit F1 in the Help menu. Did absolutely nothing for me.
    __________________
    Khan6195's PokePet

    The Level 96 Entei!


    Hacks I support:
    Spoiler:


    Can you read this? Only 55% of people can!
    Spoiler:
    I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg.
    The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch
    at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a
    wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the
    rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit
    a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter
    by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot
    slpeling was ipmorantt!
    fi yuo cna raed tihs, palce it in yuor siantugre
    I feogrt who ollanirigy had tihs but wohveer did. TAHNKS

    Relevant Advertising!

      #1452    
    Old June 19th, 2009 (3:24 AM).
    HackMew's Avatar
    HackMew HackMew is offline
    Mewtwo Strikes Back
    • Crystal Tier
     
    Join Date: Jun 2006
    Posts: 1,314
    Quote:
    Originally Posted by ExitWound View Post
    Well.... I couldn't find any tutorials on it but is this right?
    Spoiler:
    #dynamic 0x8004AA

    #org @start
    checkflag 0x4000
    if b_true goto @nevermind
    message @alert
    boxset 6
    applymovement 37 @approach
    message @battle
    boxset 6
    trainerbattle 0x9 0x0 0x01D @won @won
    applymovement 37 @leave
    message @after
    boxset 6
    setflag 0x4000
    release
    end

    #org @approach
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0xFE

    #org @leave
    #raw 0x0B
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x54
    #raw 0xFE

    #org @alert
    = You!

    #org @battle
    = You're \v\h01 right?\p...\pBattle me!

    #org @won
    = ...

    #org @after
    = Damn it...\lSo the rumors were true.\pWe'll soon battle again.\lBe ready!

    #org @nevermind
    release
    end
    I wonder how would you compile that... boxset doesn't exist anu more. Which means you're using an outdated XSE. Check my thread for the newest one. BTW... the whole approach thingy is not needed as you can just set the Trainer/View Radius option accordingly. Read the XSE guide for further details. After adjusting the settings you might want to try this script:

    Spoiler:
    #dynamic 0x8004AA

    #org @start
    message @alert 6
    message @battle 6
    trainerbattle 0x9 0x0 0x01D @won @won
    message @after 6
    applymovement 37 @leave
    waitmovement 0x0
    release
    end

    #org @leave
    #raw 0x0B
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x54
    #raw 0xFE

    #org @alert
    = You!

    #org @battle
    = You're \v\h01 right?\p...\pBattle me!

    #org @won
    = ...

    #org @after
    = Damn it...\lSo the rumors were true.\pWe'll soon battle again.\lBe ready!

    #org @nevermind
    release
    end


    Quote:
    Originally Posted by ExitWound View Post
    Apparently, my XSE has down syndrome. When I add in the waitmovement 0x0, this is what happens: [...]
    You should understand that you can't simply add commands and then recompile the decompiled script. You need to make it dynamic.


    Quote:
    Originally Posted by Khan6195 View Post
    I have read the guide, and F1 doesn't work for me... But anyways, I figured it out... I even hit F1 in the Help menu. Did absolutely nothing for me.
    F1 should bring the Command Help window. Make sure to have the newest XSE anyway.
    __________________
      #1453    
    Old June 19th, 2009 (9:24 AM).
    ExitWound's Avatar
    ExitWound ExitWound is offline
    Boggle
       
      Join Date: Aug 2007
      Age: 25
      Posts: 79
      Quote:
      Originally Posted by HackMew View Post
      You should understand that you can't simply add commands and then recompile the decompiled script. You need to make it dynamic.
      I'm just going to put the script at a different offset because it's just not working for me. It keeps going back to the way it was.
        #1454    
      Old June 19th, 2009 (12:01 PM).
      Toon Link's Avatar
      Toon Link Toon Link is offline
      POKEMON TRAINER
         
        Join Date: May 2009
        Posts: 25
        How do I turn this script for fire red into a script which the person walks away and disappears after you beat them? #dynamic 0x800000

        Spoiler:
        #org @start
        trainerbattle 0x0 0x2DC 0x0 @before @after
        msgbox @beaten 0x6
        release
        end

        #org @before
        = I'm a new trainer!

        #org @after
        = Wow!\nYou're good!

        #org @beaten
        = I want a Pichu!


        Thanks
          #1455    
        Old June 19th, 2009 (12:20 PM).
        HackChu's Avatar
        HackChu HackChu is offline
        I need a haircut...
        • Silver Tier
         
        Join Date: Jan 2007
        Location: Bankrupt Amerika
        Age: 24
        Gender: Male
        Nature: Modest
        Posts: 673
        Dude you need to add applymovements to the battle script.And also use checkflags and setflags.
        __________________
        Join us!

        My 'learning how to combine battle scripts' thread:
        http://www.pokecommunity.com/showthread.php?t=183001

        SoulSilver FC:1162 1864 5409
        Name: Ethan

        Black FC: 2666 1354 4379
        Name: Ashton

        White 2 FC: 1120 8065 3049
        Name: Nate

        3DS Friend Code: 1349-4646-2412
        Name: tysonrss
          #1456    
        Old June 19th, 2009 (1:04 PM).
        Toon Link's Avatar
        Toon Link Toon Link is offline
        POKEMON TRAINER
           
          Join Date: May 2009
          Posts: 25
          I don't know where to put them in the script though.
            #1457    
          Old June 19th, 2009 (1:15 PM).
          ExitWound's Avatar
          ExitWound ExitWound is offline
          Boggle
             
            Join Date: Aug 2007
            Age: 25
            Posts: 79
            Quote:
            Originally Posted by Toon Link View Post
            I don't know where to put them in the script though.
            It all depends on when you want him to walk and where you want him to walk.
              #1458    
            Old June 19th, 2009 (1:48 PM).
            Toon Link's Avatar
            Toon Link Toon Link is offline
            POKEMON TRAINER
               
              Join Date: May 2009
              Posts: 25
              a want them to walk into a building behind him so they take one step back and i want it to happen after the battle
                #1459    
              Old June 19th, 2009 (1:50 PM).
              HackChu's Avatar
              HackChu HackChu is offline
              I need a haircut...
              • Silver Tier
               
              Join Date: Jan 2007
              Location: Bankrupt Amerika
              Age: 24
              Gender: Male
              Nature: Modest
              Posts: 673
              Try this Toon Link

              Spoiler:
              #dynamic 0x(offset)Always use this in a script
              #org @start
              checkflag 0x200(always use a flag for these type of battles)
              applymovement 0x(people #) @move
              trainerbattle 0x1 0x2DC 0x0 @before @after (@later)always use this for this type of battle
              applymovement 0x(people #) @move2
              setflag 0x200
              release
              end
              #org @move
              #raw (movement)
              #raw 0xFE(always use this to end the movements)
              #org @before
              = I'm a new trainer!
              #org @after
              = Wow!\nYou're good!
              #org @later
              = I want a Pichu!
              #org @move2
              #raw (movement)
              #raw 0xFE
              __________________
              Join us!

              My 'learning how to combine battle scripts' thread:
              http://www.pokecommunity.com/showthread.php?t=183001

              SoulSilver FC:1162 1864 5409
              Name: Ethan

              Black FC: 2666 1354 4379
              Name: Ashton

              White 2 FC: 1120 8065 3049
              Name: Nate

              3DS Friend Code: 1349-4646-2412
              Name: tysonrss
                #1460    
              Old June 19th, 2009 (2:13 PM).
              Toon Link's Avatar
              Toon Link Toon Link is offline
              POKEMON TRAINER
                 
                Join Date: May 2009
                Posts: 25
                It says it's an unknown keword (movement) at line 12
                Spoiler:
                #dynamic 0x200
                #org @start
                checkflag 0x200
                applymovement 0x16 @move
                trainerbattle 0x1 0x001 0x0 @before @after @later
                applymovement 0x16 @move2
                setflag 0x200
                release
                end
                #org @move
                #define #raw (movement)
                #raw 0xFE
                #org @before
                = I'm a new trainer!
                #org @after
                = Wow!\nYou're good!
                #org @later
                = I want a Pichu!
                #org @move2
                #raw (movement)
                #raw 0xFE
                  #1461    
                Old June 19th, 2009 (2:36 PM). Edited June 19th, 2009 by Kurayamiblack.
                Kurayamiblack's Avatar
                Kurayamiblack Kurayamiblack is offline
                   
                  Join Date: Dec 2007
                  Gender:
                  Posts: 26
                  I have this script for Lugia and Ho-Oh, here's the script for Lugia
                  Spoiler:
                  #org 0x82692A2
                  '-----------------------------------
                  lock
                  faceplayer
                  checksound
                  pause 0x14
                  sound 0x52
                  setvar 0x8004 0x0
                  setvar 0x8005 0x3
                  setvar 0x8006 0x4
                  setvar 0x8007 0x2
                  special 0x138
                  pause 0x1E
                  sound 0x52
                  setvar 0x8004 0x0
                  setvar 0x8005 0x3
                  setvar 0x8006 0x4
                  setvar 0x8007 0x2
                  special 0x138
                  pause 0x1E
                  pause 0x32
                  checksound
                  cry 0xF9 0x2
                  waitcry
                  pause 0x14
                  special 0x117
                  setvar 0x8004 0xF9
                  setvar 0x8005 0x32
                  setvar 0x8006 0x0
                  special 0x1E2
                  setflag 0x8C1
                  special 0x13A
                  waitspecial
                  clearflag 0x8C1
                  special2 0x800D 0xB7
                  compare LASTRESULT 0x1
                  if 0x1 jump 0x8269336 ' Equal To
                  compare LASTRESULT 0x4
                  if 0x1 jump 0x8269344 ' Equal To
                  compare LASTRESULT 0x5
                  if 0x1 jump 0x8269344 ' Equal To
                  setvar 0x2904 0x1DD
                  setvar 0x8004 0xF9
                  jump 0x8273776
                  #org 0x8269336
                  '-----------------------------------
                  setflag 0x1DD
                  setvar 0x8004 0xF9
                  jump 0x8273776
                  #org 0x8273776
                  '-----------------------------------
                  #raw 0xDC
                  nop1 ' #raw 0x1
                  disappear 0x800F
                  #raw 0xDC
                  storepokemon 0x0 0x8004
                  msgbox 0x8273204 ' The \v\h02 flew away!
                  callstd MSG_NOCLOSE ' Non-closing msg
                  release
                  end
                  #org 0x8269344
                  '-----------------------------------
                  setvar 0x8004 0xF9
                  jump 0x8273776

                  #org 0x8273204
                  = The \v\h02 flew away!


                  I've looked in thee scripting tutorials and everything but I can't figure something out. How can I change the battle music for this wild-battle? Lugia and Ho-Oh have their own battle music so obviously it's possible to change the music of wild encounters, but how do I do it?

                  EDIT: Also, there's 1 more problem with the script. When Lugia is captured, the screen fades to black and he disappears but the screen doesn't fade back into normal, it stays black until you change screens, such as viewing your pokemon team or leaving the map. I'd appreciate if someone helped me out with that too, but the music question is my primary concern.
                    #1462    
                  Old June 19th, 2009 (3:43 PM).
                  Quickster's Avatar
                  Quickster Quickster is offline
                  Dream or Drop?
                     
                    Join Date: Oct 2007
                    Gender: Male
                    Nature: Quiet
                    Posts: 351
                    Has anyone made a script to nickname a pokemon that you just recieved but when you choose yes,it doesnt nickname the right pokemon,for instance,an egg sprite might appear?How do you fix this,ill post my script too.

                    Spoiler:
                    #dynamic 0x8038DC

                    #org @start
                    checkflag 0x1022
                    if 0x1 goto @done
                    special2 LASTRESULT 0xE6
                    copyvar 0x8000 LASTRESULT
                    compare 0x8000 0x0
                    if 0x1 goto @no
                    compare 0x8000 0x1
                    if 0x1 goto @no
                    compare 0x8000 0x2
                    if 0x1 goto @no
                    compare 0x8000 0x3
                    if 0x1 goto @yes
                    compare 0x8000 0x4
                    if 0x1 goto @yes
                    compare 0x8000 0x5
                    if 0x1 goto @yes
                    compare 0x8000 0x6
                    if 0x1 goto @yes
                    release
                    end

                    #org @no
                    msgbox @1 0x2
                    release
                    end

                    #org @yes
                    msgbox @2 0x5
                    compare LASTRESULT 0x1
                    if 0x1 goto @receive
                    msgbox @3 0x2
                    release
                    end

                    #org @receive
                    givepokemon 0x5 0x10 0x0 0x0 0x0 0x0
                    hidesprite 0x2
                    fanfare 0x13E
                    msgbox @4 0x4
                    waitfanfare
                    closeonkeypress
                    setflag 0x1022
                    msgbox @5 0x5
                    compare LASTRESULT 0x1
                    if 0x1 gosub @name
                    msgbox @6 0x2
                    release
                    end

                    #org @name
                    call 0x1A74EB
                    return

                    #org @done
                    msgbox @7 0x2
                    release
                    end

                    #org @1
                    = I take care if injured POKeMON.\pI nursed this BULBASAUR back to\nhealth.\pIt needs a good trainer to take\ncare of it now.

                    #org @2
                    = I take care of injured POKeMON.\pI nursed this BULBASAUR back to\nhealth.\pIt needs a good trainer to take\ncare of it now.\pI know! Would you take care of\nthis BULBASAUR?

                    #org @3
                    = Oh...\nThat's too bad...

                    #org @4
                    = [black_fr]\v\h01 recieved BULBASAUR.

                    #org @5
                    = [black_fr]Would you like to give a nickname\nto BULBASAUR?

                    #org @6
                    = Please take care of BULBASAUR!

                    #org @7
                    = Is BULBASAUR doing well?
                    __________________
                    I laugh looking at this.

                    But sometimes I want to come back to it...

                      #1463    
                    Old June 19th, 2009 (6:27 PM).
                    ExitWound's Avatar
                    ExitWound ExitWound is offline
                    Boggle
                       
                      Join Date: Aug 2007
                      Age: 25
                      Posts: 79
                      Quote:
                      Originally Posted by Toon Link View Post
                      It says it's an unknown keword (movement) at line 12
                      Spoiler:
                      #dynamic 0x200
                      #org @start
                      checkflag 0x200
                      applymovement 0x16 @move
                      trainerbattle 0x1 0x001 0x0 @before @after @later
                      applymovement 0x16 @move2
                      setflag 0x200
                      release
                      end
                      #org @move
                      #define #raw (movement)
                      #raw 0xFE
                      #org @before
                      = I'm a new trainer!
                      #org @after
                      = Wow!\nYou're good!
                      #org @later
                      = I want a Pichu!
                      #org @move2
                      #raw (movement)
                      #raw 0xFE
                      Well the first thing I see is that you use offset 0x200 at the top... Use like 0x800000 or something so you don't screw up your game. The checkflag and setflag, you should use 1000 or greater to once again, avoid screwing up the game.

                      For the (movement) thing, it isn't supposed to be there. He put that there so you could decide where the guy moves. It's done in hex. Here are the possible movements you should work with:

                      Up: #raw 0x09
                      Down: #raw 0x08
                      Left: #raw 0x0A
                      Right: #raw 0x0B

                      Be sure to keep #raw 0xFE after each set of your movements because that tells the game that those movements are done.
                        #1464    
                      Old June 19th, 2009 (8:17 PM).
                      Zaptinex's Avatar
                      Zaptinex Zaptinex is offline
                         
                        Join Date: May 2008
                        Location: USA
                        Gender:
                        Posts: 43
                        For some reason person #4 isn't doing his first command in this script. However, if i leave the map come back and try the script he follows it. Does anybody know why this is and if i can do something so i don't have to leave the map to make him do the movement command.

                        Heres the script:

                        Spoiler:
                        #dynamic 0x2DD39C

                        #org @take
                        lock
                        applymovement 0x3 @gone
                        waitmovement 0x0
                        msgbox @temp 0x6
                        applymovement 0xFF @right
                        applymovement 0x4 @left
                        applymovement 0x1 @turn
                        waitmovement 0x0
                        msgbox @on 0x6
                        givepokemon 0x11 0x5 0x0 0x0 0x0 0x0
                        trainerbattle 0x00 0x149 0x0 @before @after
                        fadescreen 0x1
                        applymovement 0x1 @gone
                        waitmovement 0x0
                        applymovement 0x4 @turn
                        waitmovement 0x0
                        fadescreen 0x0
                        msgbox @bye 0x6
                        applymovement 0x4 @going
                        applymovement 0x2 @come
                        waitmovement 0x0
                        release
                        end

                        #org @gone
                        #raw 0x60
                        #raw 0xFE

                        #org @turn
                        #raw 0x2F
                        #raw 0xFE

                        #org @on
                        = So be it \v\h01! Its on\n like DONKEY KONG!

                        #org @temp
                        = \v\h01 temporarily borrowed\n Prof. Pines Pokemon

                        #org @before
                        = Your going down \v\h01!

                        #org @after
                        = How can a noob like \v\h01\n beat me?

                        #org @bye
                        = Ill be leaving Dad!

                        #org @going
                        #raw 0x12
                        #raw 0x12
                        #raw 0x12
                        #raw 0x12
                        #raw 0x12
                        #raw 0x12
                        #raw 0x11
                        #raw 0x11
                        #raw 0x11
                        #raw 0x11
                        #raw 0x11
                        #raw 0x11
                        #raw 0xFE

                        #org @come
                        #raw 0x12
                        #raw 0x12
                        #raw 0x12
                        #raw 0x12
                        #raw 0x12
                        #raw 0x12
                        #raw 0xFE

                        #org @right
                        #raw 0x03
                        #raw 0xFE

                        #org @left
                        #raw 0x12
                        #raw 0x12
                        #raw 0xFE
                          #1465    
                        Old June 19th, 2009 (11:14 PM).
                        ExitWound's Avatar
                        ExitWound ExitWound is offline
                        Boggle
                           
                          Join Date: Aug 2007
                          Age: 25
                          Posts: 79
                          I'm still having problems with my script... It stops running after the battle like it was doing before.

                          Spoiler:
                          #dynamic 0x802D48

                          #org @start
                          message @alert 6
                          applymovement 0x25 @approach
                          waitmovement 0x0
                          message @battle 6
                          trainerbattle 0x9 0x01D 0x0 @before @won
                          message @after 6
                          applymovement 0x25 @leave
                          waitmovement 0x0
                          release
                          end

                          #org @approach
                          #raw 0x08
                          #raw 0x08
                          #raw 0x08
                          #raw 0x08
                          #raw 0x08
                          #raw 0xFE

                          #org @leave
                          #raw 0x0B
                          #raw 0x08
                          #raw 0x08
                          #raw 0x08
                          #raw 0x08
                          #raw 0x08
                          #raw 0x08
                          #raw 0x54
                          #raw 0xFE

                          #org @alert
                          = You!

                          #org @battle
                          = You're \v\h01 right?\p...

                          #org @before
                          = Battle me!

                          #org @won
                          = ...

                          #org @after
                          = Damn it...\lSo the rumors were true.\pWe'll soon battle again.\lBe ready!

                          #org @nevermind
                          release
                          end
                            #1466    
                          Old June 20th, 2009 (4:28 AM).
                          Toon Link's Avatar
                          Toon Link Toon Link is offline
                          POKEMON TRAINER
                             
                            Join Date: May 2009
                            Posts: 25
                            The only problem is it moves 0x08 to line 12 instead of line 11.
                              #1467    
                            Old June 20th, 2009 (8:47 AM). Edited June 20th, 2009 by Spherical Ice.
                            Spherical Ice's Avatar
                            Spherical Ice Spherical Ice is online now
                            • Crystal Tier
                             
                            Join Date: Nov 2007
                            Location: Bristol, UK
                            Age: 19
                            Posts: 5,226
                            Script Type: Trainerbattle, Applymovement, Giveitem
                            Script:
                            Spoiler:
                            '---------------
                            #org 0x8041A8
                            lock
                            checkflag 0x835
                            if 0x1 goto 0x880468D
                            msgbox 0x880426B MSG_NORMAL '"[green_fr]???: Hey! You! Wait up!"
                            applymovement 0xFE 0x880464B
                            waitmovement 0x0
                            showsprite 0x1
                            applymovement 0x1 0x880464E
                            waitmovement 0x0
                            trainerbattle 0x0 0x1 0x0 0x8804293 0x88043A8
                            applymovement 0x1 0x8804659
                            waitmovement 0x0
                            msgbox 0x88043C9 MSG_NORMAL '"[green_fr]CLOVIS: You're good...\n..."
                            applymovement 0x1 0x880465C
                            waitmovement 0x0
                            hidesprite 0x1
                            showsprite 0x0
                            applymovement 0x0 0x8804669
                            waitmovement 0x0
                            checkgender
                            if 0x0 goto 0x8804404
                            if 0x1 goto 0x88044DD
                            applymovement 0xFE 0x8804676
                            waitmovement 0x0
                            msgbox 0x88045B6 MSG_NORMAL '"[blue_fr][rival]: Goodbye!"
                            applymovement 0x0 0x880467D
                            waitmovement 0x0
                            hidesprite 0x0
                            msgbox 0x88045C8 MSG_NORMAL '"[black_fr][player] opened the pack..."
                            giveitem 0x4 0x5 MSG_OBTAIN
                            giveitem 0xD 0xA MSG_OBTAIN
                            setflag 0x82F
                            setflag 0x829
                            msgbox 0x88045E6 MSG_NORMAL '"[black_fr][player] received a pair..."
                            setflag 0x835
                            release
                            end

                            '---------------
                            #org 0x80468D
                            release
                            end

                            '---------------
                            #org 0x804404
                            '---------------
                            #org 0x8044DD

                            '---------
                            ' Strings
                            '---------
                            #org 0x80426B
                            = [green_fr]???: Hey! You! Wait up!

                            #org 0x804293
                            = [green_fr]CLOVIS: Hi. My name is Clovis. I saw\nyou come\nout from the Copihue Woodlands\pearlier.\pYou're from Camp Copihue, aren't\nyou?\pMy grandad taught the Scout Master\neverything that he knows.\pWell, lemme see how well the Scout\nMaster's taught you in the\part of Pokémon Battling!

                            #org 0x8043A8
                            = Wow... He's taught you well...

                            #org 0x8043C9
                            = [green_fr]CLOVIS: You're good...\nVery good indeed...

                            #org 0x8045B6
                            = [blue_fr][rival]: Goodbye!

                            #org 0x8045C8
                            = [black_fr][player] opened the package...

                            #org 0x8045E6
                            = [black_fr][player] received a pair\nof Running Shoes!\p[player] received a Pokémon\nEncyclopedia - the renowned Pokédex!


                            '-----------
                            ' Movements
                            '-----------
                            #org 0x80464B
                            #raw 0x62 'Exclamation Mark (!)
                            #raw 0xFE 'End of Movements

                            #org 0x80464E
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xFE 'End of Movements

                            #org 0x804659
                            #raw 0x1 'Face Up
                            #raw 0x62 'Exclamation Mark (!)
                            #raw 0xFE 'End of Movements

                            #org 0x80465C
                            #raw 0x1 'Face Up
                            #raw 0x9 'Step Up (Very Slow)
                            #raw 0x0 'Face Down
                            #raw 0x1E 'Step Up (Fast)
                            #raw 0x1E 'Step Up (Fast)
                            #raw 0x1E 'Step Up (Fast)
                            #raw 0x1E 'Step Up (Fast)
                            #raw 0x1E 'Step Up (Fast)
                            #raw 0x1E 'Step Up (Fast)
                            #raw 0x1E 'Step Up (Fast)
                            #raw 0x1E 'Step Up (Fast)
                            #raw 0xFE 'End of Movements

                            #org 0x804669
                            #raw 0xA 'Step Left (Very Slow)
                            #raw 0x0 'Face Down
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xC 'Step Down (Slow)
                            #raw 0xFE 'End of Movements

                            #org 0x804676
                            #raw 0x0 'Face Down
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x3 'Face Right
                            #raw 0x13 'Step Right (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x80467D
                            #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 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x2 'Face Left
                            #raw 0x13 'Step Right (Normal)
                            #raw 0x13 'Step Right (Normal)
                            #raw 0x0 'Face Down
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0xFE 'End of Movements

                            Program: XSE
                            ROM: FireRed

                            What's meant to happen:
                            Walk on script tile.
                            Player's locked. Check if the flag is set. If it is, end the script.
                            Text.
                            Player has exclamation mark above head. Faces Up.
                            Person No. 0 approaches player.
                            Text.
                            Person No. 0 battles player.
                            If player wins, text a is shown, if they lose, text b is shown
                            Person No. 0 walks off screen.
                            Person No. 1 approaches player.
                            Person No. 1 talks.
                            Gives 5 Pokéballs, 10 Potions, Pokedex and Running Shoes.
                            Person No. 1 talks again.
                            Player moves.
                            Player No. 1 walks off screen.
                            Set the flag.
                            Release player.
                            End script.

                            What Actually Happens:
                            Walk on script tile.
                            Player's locked. Check if the flag is set. If it is, end the script.
                            Text.
                            Person No. 0 approaches player.
                            Text.
                            Person No. 0 battles player.
                            I begin playing as Person No. 0, not the player.
                            Glitched tiles appear, OWs mess up.

                            Please Help!
                            __________________

                            A Pokemon that is discriminated!
                            Support squirtle and make it everyone's favourite.
                              #1468    
                            Old June 20th, 2009 (8:54 AM).
                            HackChu's Avatar
                            HackChu HackChu is offline
                            I need a haircut...
                            • Silver Tier
                             
                            Join Date: Jan 2007
                            Location: Bankrupt Amerika
                            Age: 24
                            Gender: Male
                            Nature: Modest
                            Posts: 673
                            Try trainerbattle 0x1 next time with the other stuff filled out.
                            __________________
                            Join us!

                            My 'learning how to combine battle scripts' thread:
                            http://www.pokecommunity.com/showthread.php?t=183001

                            SoulSilver FC:1162 1864 5409
                            Name: Ethan

                            Black FC: 2666 1354 4379
                            Name: Ashton

                            White 2 FC: 1120 8065 3049
                            Name: Nate

                            3DS Friend Code: 1349-4646-2412
                            Name: tysonrss
                              #1469    
                            Old June 20th, 2009 (6:43 PM).
                            liuyanghejerry's Avatar
                            liuyanghejerry liuyanghejerry is offline
                               
                              Join Date: Jan 2008
                              Location: China,Xi'an
                              Nature: Calm
                              Posts: 219
                              Quote:
                              Originally Posted by Spherical Ice View Post
                              Script Type: Trainerbattle, Applymovement, Giveitem
                              Script:
                              Spoiler:
                              '---------------
                              #org 0x8041A8
                              lock
                              checkflag 0x835
                              if 0x1 goto 0x880468D
                              msgbox 0x880426B MSG_NORMAL '"[green_fr]???: Hey! You! Wait up!"
                              applymovement 0xFE 0x880464B
                              waitmovement 0x0
                              showsprite 0x1
                              applymovement 0x1 0x880464E
                              waitmovement 0x0
                              trainerbattle 0x0 0x1 0x0 0x8804293 0x88043A8
                              applymovement 0x1 0x8804659
                              waitmovement 0x0
                              msgbox 0x88043C9 MSG_NORMAL '"[green_fr]CLOVIS: You're good...\n..."
                              applymovement 0x1 0x880465C
                              waitmovement 0x0
                              hidesprite 0x1
                              showsprite 0x0
                              applymovement 0x0 0x8804669
                              waitmovement 0x0
                              checkgender
                              if 0x0 goto 0x8804404
                              if 0x1 goto 0x88044DD
                              applymovement 0xFE 0x8804676
                              waitmovement 0x0
                              msgbox 0x88045B6 MSG_NORMAL '"[blue_fr][rival]: Goodbye!"
                              applymovement 0x0 0x880467D
                              waitmovement 0x0
                              hidesprite 0x0
                              msgbox 0x88045C8 MSG_NORMAL '"[black_fr][player] opened the pack..."
                              giveitem 0x4 0x5 MSG_OBTAIN
                              giveitem 0xD 0xA MSG_OBTAIN
                              setflag 0x82F
                              setflag 0x829
                              msgbox 0x88045E6 MSG_NORMAL '"[black_fr][player] received a pair..."
                              setflag 0x835
                              release
                              end

                              '---------------
                              #org 0x80468D
                              release
                              end

                              '---------------
                              #org 0x804404
                              '---------------
                              #org 0x8044DD

                              '---------
                              ' Strings
                              '---------
                              #org 0x80426B
                              = [green_fr]???: Hey! You! Wait up!

                              #org 0x804293
                              = [green_fr]CLOVIS: Hi. My name is Clovis. I saw\nyou come\nout from the Copihue Woodlands\pearlier.\pYou're from Camp Copihue, aren't\nyou?\pMy grandad taught the Scout Master\neverything that he knows.\pWell, lemme see how well the Scout\nMaster's taught you in the\part of Pokémon Battling!

                              #org 0x8043A8
                              = Wow... He's taught you well...

                              #org 0x8043C9
                              = [green_fr]CLOVIS: You're good...\nVery good indeed...

                              #org 0x8045B6
                              = [blue_fr][rival]: Goodbye!

                              #org 0x8045C8
                              = [black_fr][player] opened the package...

                              #org 0x8045E6
                              = [black_fr][player] received a pair\nof Running Shoes!\p[player] received a Pokémon\nEncyclopedia - the renowned Pokédex!


                              '-----------
                              ' Movements
                              '-----------
                              #org 0x80464B
                              #raw 0x62 'Exclamation Mark (!)
                              #raw 0xFE 'End of Movements

                              #org 0x80464E
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xFE 'End of Movements

                              #org 0x804659
                              #raw 0x1 'Face Up
                              #raw 0x62 'Exclamation Mark (!)
                              #raw 0xFE 'End of Movements

                              #org 0x80465C
                              #raw 0x1 'Face Up
                              #raw 0x9 'Step Up (Very Slow)
                              #raw 0x0 'Face Down
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0xFE 'End of Movements

                              #org 0x804669
                              #raw 0xA 'Step Left (Very Slow)
                              #raw 0x0 'Face Down
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xFE 'End of Movements

                              #org 0x804676
                              #raw 0x0 'Face Down
                              #raw 0x10 'Step Down (Normal)
                              #raw 0x10 'Step Down (Normal)
                              #raw 0x3 'Face Right
                              #raw 0x13 'Step Right (Normal)
                              #raw 0xFE 'End of Movements

                              #org 0x80467D
                              #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 0x10 'Step Down (Normal)
                              #raw 0x10 'Step Down (Normal)
                              #raw 0x2 'Face Left
                              #raw 0x13 'Step Right (Normal)
                              #raw 0x13 'Step Right (Normal)
                              #raw 0x0 'Face Down
                              #raw 0x10 'Step Down (Normal)
                              #raw 0x10 'Step Down (Normal)
                              #raw 0x10 'Step Down (Normal)
                              #raw 0xFE 'End of Movements

                              Program: XSE
                              ROM: FireRed

                              What's meant to happen:
                              Walk on script tile.
                              Player's locked. Check if the flag is set. If it is, end the script.
                              Text.
                              Player has exclamation mark above head. Faces Up.
                              Person No. 0 approaches player.
                              Text.
                              Person No. 0 battles player.
                              If player wins, text a is shown, if they lose, text b is shown
                              Person No. 0 walks off screen.
                              Person No. 1 approaches player.
                              Person No. 1 talks.
                              Gives 5 Pokéballs, 10 Potions, Pokedex and Running Shoes.
                              Person No. 1 talks again.
                              Player moves.
                              Player No. 1 walks off screen.
                              Set the flag.
                              Release player.
                              End script.

                              What Actually Happens:
                              Walk on script tile.
                              Player's locked. Check if the flag is set. If it is, end the script.
                              Text.
                              Person No. 0 approaches player.
                              Text.
                              Person No. 0 battles player.
                              I begin playing as Person No. 0, not the player.
                              Glitched tiles appear, OWs mess up.

                              Please Help!
                              What in my memory is that there shouldn't be a "lock" when you want an OW move.
                              Delete "lock" and try again.
                              __________________
                              Zel,thethethethe,LU-HO,Darthatron,HackMew,ZodiacDaGreat,Juan,score_under,JPAN,Tamah-chan,I really appreciate your kindness and your help!:D
                                #1470    
                              Old June 21st, 2009 (4:16 AM).
                              Diegoisawesome's Avatar
                              Diegoisawesome Diegoisawesome is offline
                              Oh god the bees
                              • Silver Tier
                               
                              Join Date: Dec 2007
                              Location: :noitacoL
                              Age: 20
                              Gender: Male
                              Nature: Naive
                              Posts: 1,039
                              Quote:
                              Originally Posted by Spherical Ice View Post
                              Script Type: Trainerbattle, Applymovement, Giveitem
                              Script:
                              Spoiler:
                              '---------------
                              #org 0x8041A8
                              lock
                              checkflag 0x835
                              if 0x1 goto 0x880468D
                              msgbox 0x880426B MSG_NORMAL '"[green_fr]???: Hey! You! Wait up!"
                              applymovement 0xFE 0x880464B
                              waitmovement 0x0
                              showsprite 0x1
                              applymovement 0x1 0x880464E
                              waitmovement 0x0
                              trainerbattle 0x0 0x1 0x0 0x8804293 0x88043A8
                              applymovement 0x1 0x8804659
                              waitmovement 0x0
                              msgbox 0x88043C9 MSG_NORMAL '"[green_fr]CLOVIS: You're good...\n..."
                              applymovement 0x1 0x880465C
                              waitmovement 0x0
                              hidesprite 0x1
                              showsprite 0x0
                              applymovement 0x0 0x8804669
                              waitmovement 0x0
                              checkgender
                              if 0x0 goto 0x8804404
                              if 0x1 goto 0x88044DD
                              applymovement 0xFE 0x8804676
                              waitmovement 0x0
                              msgbox 0x88045B6 MSG_NORMAL '"[blue_fr][rival]: Goodbye!"
                              applymovement 0x0 0x880467D
                              waitmovement 0x0
                              hidesprite 0x0
                              msgbox 0x88045C8 MSG_NORMAL '"[black_fr][player] opened the pack..."
                              giveitem 0x4 0x5 MSG_OBTAIN
                              giveitem 0xD 0xA MSG_OBTAIN
                              setflag 0x82F
                              setflag 0x829
                              msgbox 0x88045E6 MSG_NORMAL '"[black_fr][player] received a pair..."
                              setflag 0x835
                              release
                              end

                              '---------------
                              #org 0x80468D
                              release
                              end

                              '---------------
                              #org 0x804404
                              '---------------
                              #org 0x8044DD

                              '---------
                              ' Strings
                              '---------
                              #org 0x80426B
                              = [green_fr]???: Hey! You! Wait up!

                              #org 0x804293
                              = [green_fr]CLOVIS: Hi. My name is Clovis. I saw\nyou come\nout from the Copihue Woodlands\pearlier.\pYou're from Camp Copihue, aren't\nyou?\pMy grandad taught the Scout Master\neverything that he knows.\pWell, lemme see how well the Scout\nMaster's taught you in the\part of Pokémon Battling!

                              #org 0x8043A8
                              = Wow... He's taught you well...

                              #org 0x8043C9
                              = [green_fr]CLOVIS: You're good...\nVery good indeed...

                              #org 0x8045B6
                              = [blue_fr][rival]: Goodbye!

                              #org 0x8045C8
                              = [black_fr][player] opened the package...

                              #org 0x8045E6
                              = [black_fr][player] received a pair\nof Running Shoes!\p[player] received a Pokémon\nEncyclopedia - the renowned Pokédex!


                              '-----------
                              ' Movements
                              '-----------
                              #org 0x80464B
                              #raw 0x62 'Exclamation Mark (!)
                              #raw 0xFE 'End of Movements

                              #org 0x80464E
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xFE 'End of Movements

                              #org 0x804659
                              #raw 0x1 'Face Up
                              #raw 0x62 'Exclamation Mark (!)
                              #raw 0xFE 'End of Movements

                              #org 0x80465C
                              #raw 0x1 'Face Up
                              #raw 0x9 'Step Up (Very Slow)
                              #raw 0x0 'Face Down
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0x1E 'Step Up (Fast)
                              #raw 0xFE 'End of Movements

                              #org 0x804669
                              #raw 0xA 'Step Left (Very Slow)
                              #raw 0x0 'Face Down
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xC 'Step Down (Slow)
                              #raw 0xFE 'End of Movements

                              #org 0x804676
                              #raw 0x0 'Face Down
                              #raw 0x10 'Step Down (Normal)
                              #raw 0x10 'Step Down (Normal)
                              #raw 0x3 'Face Right
                              #raw 0x13 'Step Right (Normal)
                              #raw 0xFE 'End of Movements

                              #org 0x80467D
                              #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 0x10 'Step Down (Normal)
                              #raw 0x10 'Step Down (Normal)
                              #raw 0x2 'Face Left
                              #raw 0x13 'Step Right (Normal)
                              #raw 0x13 'Step Right (Normal)
                              #raw 0x0 'Face Down
                              #raw 0x10 'Step Down (Normal)
                              #raw 0x10 'Step Down (Normal)
                              #raw 0x10 'Step Down (Normal)
                              #raw 0xFE 'End of Movements

                              Program: XSE
                              ROM: FireRed

                              What's meant to happen:
                              Walk on script tile.
                              Player's locked. Check if the flag is set. If it is, end the script.
                              Text.
                              Player has exclamation mark above head. Faces Up.
                              Person No. 0 approaches player.
                              Text.
                              Person No. 0 battles player.
                              If player wins, text a is shown, if they lose, text b is shown
                              Person No. 0 walks off screen.
                              Person No. 1 approaches player.
                              Person No. 1 talks.
                              Gives 5 Pokéballs, 10 Potions, Pokedex and Running Shoes.
                              Person No. 1 talks again.
                              Player moves.
                              Player No. 1 walks off screen.
                              Set the flag.
                              Release player.
                              End script.

                              What Actually Happens:
                              Walk on script tile.
                              Player's locked. Check if the flag is set. If it is, end the script.
                              Text.
                              Person No. 0 approaches player.
                              Text.
                              Person No. 0 battles player.
                              I begin playing as Person No. 0, not the player.
                              Glitched tiles appear, OWs mess up.

                              Please Help!
                              Either change person #0's Movement type to No movement in A-Map, or set the Movement byte under it to 11.
                              __________________


                              My other resources:
                              My Website
                              diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
                              diegoisawesome's Miscellaneous Finds
                              The Ruins of Alph Puzzles
                              Diego's Miscellaneous Patches
                              GBA Intro Manager
                              The Secret Sauce: Triple-Layer Tiles
                                #1471    
                              Old June 21st, 2009 (5:23 AM).
                              Pokepal17's Avatar
                              Pokepal17 Pokepal17 is offline
                              More cowbell~
                              • Silver Tier
                               
                              Join Date: Oct 2008
                              Location: Steeltown
                              Age: 22
                              Gender: Male
                              Nature: Modest
                              Posts: 1,517
                              Quote:
                              Originally Posted by ExitWound View Post
                              I'm still having problems with my script... It stops running after the battle like it was doing before.

                              Spoiler:
                              #dynamic 0x802D48

                              #org @start
                              message @alert 6
                              applymovement 0x19 @approach
                              waitmovement 0x0
                              message @battle 6
                              trainerbattle 0x9 0x01D 0x0 @before @won
                              message @after 6
                              applymovement 0x19 @leave
                              waitmovement 0x0
                              release
                              end

                              #org @approach
                              #raw 0x08
                              #raw 0x08
                              #raw 0x08
                              #raw 0x08
                              #raw 0x08
                              #raw 0xFE

                              #org @leave
                              #raw 0x0B
                              #raw 0x08
                              #raw 0x08
                              #raw 0x08
                              #raw 0x08
                              #raw 0x08
                              #raw 0x08
                              #raw 0x54
                              #raw 0xFE

                              #org @alert
                              = You!

                              #org @battle
                              = You're \v\h01 right?\p...

                              #org @before
                              = Battle me!

                              #org @won
                              = ...

                              #org @after
                              = Damn it...\lSo the rumors were true.\pWe'll soon battle again.\lBe ready!

                              #org @nevermind
                              release
                              end
                              I think you got mixed up between hex and decimal. 0x??? means it's hex. So 25 in hex is 19. Changes in script.
                              __________________
                              Pokémon Stardrop
                                #1472    
                              Old June 21st, 2009 (5:24 AM).
                              Spherical Ice's Avatar
                              Spherical Ice Spherical Ice is online now
                              • Crystal Tier
                               
                              Join Date: Nov 2007
                              Location: Bristol, UK
                              Age: 19
                              Posts: 5,226
                              Thanks, everyone! It works smooth-ish now.
                              __________________

                              A Pokemon that is discriminated!
                              Support squirtle and make it everyone's favourite.
                                #1473    
                              Old June 21st, 2009 (6:00 AM).
                              BlitŻ's Avatar
                              BlitŻ BlitŻ is offline
                              guahh my dog is so cute
                              • Crystal Tier
                               
                              Join Date: Feb 2009
                              Location: Bay Area, Califronia.
                              Age: 22
                              Gender: Male
                              Nature: Jolly
                              Posts: 472
                              Hack of Fire red
                              I'm using XSE 1.1.1
                              and here's my script


                              Spoiler:
                              #org @start
                              checkflag 0x1001
                              if 0x1 goto @end
                              setflag 0x1001
                              random 0x02
                              compare 0x800D 0x0
                              if 0x1 goto @nidoranboy
                              compare 0x800D 0x1
                              if 0x1 goto @nidorangirl

                              #org @nidoranboy
                              hidesprite 0x02
                              setflag 0x1003
                              waitmovement 0x0
                              applymovement 0x02 @move
                              waitmovement 0x0
                              msgbox @1 0x6
                              applymovement 0xFF @move3
                              applymovement 0x01 @move4
                              waitmovement 0x0
                              msgbox @2 0x6
                              playsong 0x128 0x0
                              applymovement 0x01 @move5
                              waitmovement 0x0
                              msgbox @3 0x6
                              applymovement 0xFF @move6
                              waitmovement 0x0
                              msgbox @12 0x6
                              movesprite 0x03 0x06 0x21
                              applymovement 0x03 @move7
                              waitmovement 0x0
                              hidesprite 0x01
                              pause 0x30
                              fanfare 0x13E
                              applymovement 0x04 @move8
                              setflag 0x1003
                              msgbox @12 0x6
                              fadesong 0x123
                              removeitem 0x4 0x1
                              givepokemon 0x20 0x5 0x0 0x0 0x0 0x0
                              fanfare 0x13E
                              msgbox @5 0x4
                              waitfanfare
                              closeonkeypress
                              setflag 0x828
                              msgbox @6 0x5
                              compare LASTRESULT 0x1
                              if 0x1 gosub @name
                              hidesprite 0x03
                              setflag 0x1004
                              msgbox @7 0x6
                              release
                              end

                              #org @nidorangirl
                              hidesprite 0x01
                              setflag 0x1002
                              waitmovement 0x0
                              applymovement 0x02 @move
                              waitmovement 0x0
                              msgbox @15 0x6
                              applymovement 0xFF @move3
                              applymovement 0x02 @move4
                              waitmovement 0x0
                              msgbox @8 0x6
                              playsong 0x128 0x0
                              applymovement 0x02 @move5
                              waitmovement 0x0
                              msgbox @9 0x6
                              applymovement 0xFF @move6
                              waitmovement 0x0
                              msgbox @12 0x6
                              movesprite 0x03 0x06 0x21
                              applymovement 0x03 @move7
                              waitmovement 0x0
                              hidesprite 0x02
                              setflag 0x1003
                              pause 0x30
                              fanfare 0x13E
                              applymovement 0xFF @move8
                              msgbox @13 0x6
                              fadesong 0x123
                              removeitem 0x4 0x1
                              givepokemon 0x1D 0x5 0x0 0x0 0x0 0x0
                              fanfare 0x13E
                              msgbox @14 0x4
                              waitfanfare
                              closeonkeypress
                              setflag 0x828
                              msgbox @11 0x5
                              compare LASTRESULT 0x1
                              if 0x1 gosub @name
                              msgbox @8 0x6
                              release
                              end

                              #org @move
                              #raw 0x13
                              #raw 0x10
                              #raw 0x13
                              #raw 0x10
                              #raw 0x10
                              #raw 0x14
                              #raw 0x10
                              #raw 0x10
                              #raw 0x2F
                              #raw 0xFE

                              #org @move1
                              #raw 0x62
                              #raw 0xFE

                              #org @move3
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0x20
                              #raw 0x1E
                              #raw 0x2E
                              #raw 0xFE

                              #org @move4
                              #raw 0x2D
                              #raw 0x62
                              #raw 0x1E
                              #raw 0x2D
                              #raw 0xFE

                              #org @move5
                              #raw 0x10
                              #raw 0x4E
                              #raw 0x4F
                              #raw 0x11
                              #raw 0x2D
                              #raw 0xFE

                              #org @move6
                              #raw 0x22
                              #raw 0xFE

                              #org @move7
                              #raw 0x4F
                              #raw 0xFE

                              #org @move8
                              #raw 0x11
                              #raw 0xFE

                              #org @1
                              = \v\h01: Oh, nice! A NIDORAN\hB5!\nLet's check this out!!

                              #org @2
                              = \v\h01: Aww, you're scared. Don't\nworry, I won't hurt you.

                              #org @3
                              = \v\h01: OWWW! It attacked me!\nUgh, I'm going to have to catch\lit!

                              #org @12
                              = \v\h01: GO! POKEBALL!

                              #org @4
                              = \v\h01: Yes! I caught the\nNIDORAN\hB5!!

                              #org @15
                              = \v\h01: Oh, nice! A NIDORAN\hB6!\nLet's check this out!!

                              #org @8
                              = \v\h01: Aww, you're scared. Don't\nworry I won't hurt you.

                              #org @9
                              = \v\h01: OWWW! It attacked me!\nUgh, I'm going to have to catch it!


                              #org @13
                              = \v\h01: Yes! I caught the NIDORAN\hB6!

                              #org @5
                              = You recieved the Poisin Pin\nPokemon [darknavyblue_fr]Nidoran\hB5[black_fr]!

                              #org @6
                              = Do you want to nickname the\n[darknavyblue_fr]Nidoran\hB5[black_fr]?

                              #org @7
                              = Now that I have my pokemon, I\nshould go tell DAD. He'll be so\lproud!

                              #org @14
                              = You recieved the Poisin Pin\nPokemon [darknavyblue_fr]Nidoran\hB6[black_fr]!

                              #org @11
                              = Do you want to nickname the\n[darknavyblue_fr]Nidoran\hB6[black_fr]?

                              #org @end
                              release
                              end

                              #org @name
                              call 0x1A74EB
                              return


                              The problems are bolded.

                              Everything else works fine, except for those two things. When you step on the trigger, a nidoran is supposed to come down, but it doesen't. And later on your supposed to thhow a pokeball at it, and which again it dosen't move to where you player is.

                              Any help is appreciated
                              __________________
                                #1474    
                              Old June 21st, 2009 (7:14 AM).
                              HackMew's Avatar
                              HackMew HackMew is offline
                              Mewtwo Strikes Back
                              • Crystal Tier
                               
                              Join Date: Jun 2006
                              Posts: 1,314
                              Quote:
                              Originally Posted by jebees View Post
                              Hack of Fire red
                              I'm using XSE 1.1.1
                              and here's my script


                              Spoiler:
                              #org @start
                              checkflag 0x1001
                              if 0x1 goto @end
                              setflag 0x1001
                              random 0x02
                              compare 0x800D 0x0
                              if 0x1 goto @nidoranboy
                              compare 0x800D 0x1
                              if 0x1 goto @nidorangirl

                              #org @nidoranboy
                              hidesprite 0x02
                              setflag 0x1003
                              waitmovement 0x0
                              applymovement 0x02 @move
                              waitmovement 0x0
                              msgbox @1 0x6
                              applymovement 0xFF @move3
                              applymovement 0x01 @move4
                              waitmovement 0x0
                              msgbox @2 0x6
                              playsong 0x128 0x0
                              applymovement 0x01 @move5
                              waitmovement 0x0
                              msgbox @3 0x6
                              applymovement 0xFF @move6
                              waitmovement 0x0
                              msgbox @12 0x6
                              movesprite 0x03 0x06 0x21
                              applymovement 0x03 @move7
                              waitmovement 0x0
                              hidesprite 0x01
                              pause 0x30
                              fanfare 0x13E
                              applymovement 0x04 @move8
                              setflag 0x1003
                              msgbox @12 0x6
                              fadesong 0x123
                              removeitem 0x4 0x1
                              givepokemon 0x20 0x5 0x0 0x0 0x0 0x0
                              fanfare 0x13E
                              msgbox @5 0x4
                              waitfanfare
                              closeonkeypress
                              setflag 0x828
                              msgbox @6 0x5
                              compare LASTRESULT 0x1
                              if 0x1 gosub @name
                              hidesprite 0x03
                              setflag 0x1004
                              msgbox @7 0x6
                              release
                              end

                              #org @nidorangirl
                              hidesprite 0x01
                              setflag 0x1002
                              waitmovement 0x0
                              applymovement 0x02 @move
                              waitmovement 0x0
                              msgbox @15 0x6
                              applymovement 0xFF @move3
                              applymovement 0x02 @move4
                              waitmovement 0x0
                              msgbox @8 0x6
                              playsong 0x128 0x0
                              applymovement 0x02 @move5
                              waitmovement 0x0
                              msgbox @9 0x6
                              applymovement 0xFF @move6
                              waitmovement 0x0
                              msgbox @12 0x6
                              movesprite 0x03 0x06 0x21
                              applymovement 0x03 @move7
                              waitmovement 0x0
                              hidesprite 0x02
                              setflag 0x1003
                              pause 0x30
                              fanfare 0x13E
                              applymovement 0xFF @move8
                              msgbox @13 0x6
                              fadesong 0x123
                              removeitem 0x4 0x1
                              givepokemon 0x1D 0x5 0x0 0x0 0x0 0x0
                              fanfare 0x13E
                              msgbox @14 0x4
                              waitfanfare
                              closeonkeypress
                              setflag 0x828
                              msgbox @11 0x5
                              compare LASTRESULT 0x1
                              if 0x1 gosub @name
                              msgbox @8 0x6
                              release
                              end

                              #org @move
                              #raw 0x13
                              #raw 0x10
                              #raw 0x13
                              #raw 0x10
                              #raw 0x10
                              #raw 0x14
                              #raw 0x10
                              #raw 0x10
                              #raw 0x2F
                              #raw 0xFE

                              #org @move1
                              #raw 0x62
                              #raw 0xFE

                              #org @move3
                              #raw 0x1E
                              #raw 0x1E
                              #raw 0x20
                              #raw 0x1E
                              #raw 0x2E
                              #raw 0xFE

                              #org @move4
                              #raw 0x2D
                              #raw 0x62
                              #raw 0x1E
                              #raw 0x2D
                              #raw 0xFE

                              #org @move5
                              #raw 0x10
                              #raw 0x4E
                              #raw 0x4F
                              #raw 0x11
                              #raw 0x2D
                              #raw 0xFE

                              #org @move6
                              #raw 0x22
                              #raw 0xFE

                              #org @move7
                              #raw 0x4F
                              #raw 0xFE

                              #org @move8
                              #raw 0x11
                              #raw 0xFE

                              #org @1
                              = \v\h01: Oh, nice! A NIDORAN\hB5!\nLet's check this out!!

                              #org @2
                              = \v\h01: Aww, you're scared. Don't\nworry, I won't hurt you.

                              #org @3
                              = \v\h01: OWWW! It attacked me!\nUgh, I'm going to have to catch\lit!

                              #org @12
                              = \v\h01: GO! POKEBALL!

                              #org @4
                              = \v\h01: Yes! I caught the\nNIDORAN\hB5!!

                              #org @15
                              = \v\h01: Oh, nice! A NIDORAN\hB6!\nLet's check this out!!

                              #org @8
                              = \v\h01: Aww, you're scared. Don't\nworry I won't hurt you.

                              #org @9
                              = \v\h01: OWWW! It attacked me!\nUgh, I'm going to have to catch it!


                              #org @13
                              = \v\h01: Yes! I caught the NIDORAN\hB6!

                              #org @5
                              = You recieved the Poisin Pin\nPokemon [darknavyblue_fr]Nidoran\hB5[black_fr]!

                              #org @6
                              = Do you want to nickname the\n[darknavyblue_fr]Nidoran\hB5[black_fr]?

                              #org @7
                              = Now that I have my pokemon, I\nshould go tell DAD. He'll be so\lproud!

                              #org @14
                              = You recieved the Poisin Pin\nPokemon [darknavyblue_fr]Nidoran\hB6[black_fr]!

                              #org @11
                              = Do you want to nickname the\n[darknavyblue_fr]Nidoran\hB6[black_fr]?

                              #org @end
                              release
                              end

                              #org @name
                              call 0x1A74EB
                              return


                              The problems are bolded.

                              Everything else works fine, except for those two things. When you step on the trigger, a nidoran is supposed to come down, but it doesen't. And later on your supposed to thhow a pokeball at it, and which again it dosen't move to where you player is.

                              Any help is appreciated
                              The applymovement and movesprite commands won't work if what you're moving is too far from the player. Also, make sure the index number is the correct one.
                              __________________
                                #1475    
                              Old June 21st, 2009 (8:52 AM).
                              Kyouya's Avatar
                              Kyouya Kyouya is offline
                              "baddest of the bad"
                                 
                                Join Date: Jan 2009
                                Location: Drazil
                                Nature: Rash
                                Posts: 338
                                Hack of Ruby
                                XSE 1.1.1

                                i dont know whats going one it wont even show a text box when i press a

                                Spoiler:
                                #Dynamic 0x734287

                                #org @start
                                lock
                                faceplayer
                                checkflag 0x8D3
                                if 0x0 goto @give
                                if 0x1 goto @sry
                                release
                                end

                                #org @give
                                givepokemon 0x84 0x10 0x16 0x0 0x0 0x0
                                fanfare 0x13E
                                waitfanfare
                                setflag 0x800
                                setflag 0x801
                                setflag 0x802
                                setflag 0x8D3
                                = Flara:This is the eevee my espeon just hatched \p it should help through the castle for now
                                release
                                end

                                #org @sry
                                = Flara:I can't give you anymore.
                                end
                                __________________
                                Thing I've learned
                                I couldn't leave Pc if I tried
                                If nippon ichi isn't making soul nomad 2 I will This I swear

                                Favorite games
                                1.Soul Nomad
                                2.Shining force exa
                                3.most dbz fighting games
                                4.naruto ultimate ninja 2 (shino chidori ftw)
                                5.God eater/Disgaea/Mass effect
                                Thing I've Noticed
                                That I'm coming up with Random stuff to make the scroll bar activate
                                I'm an angry person
                                Random quotes

                                "Who's the baddest of the bad, maddest of the mad, killer of kings, and destroyer of worlds"-gig
                                "Everyone needs to die."-revya
                                Alt account
                                Kyo The pro


                                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 4:34 PM.