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
  #5951    
Old August 2nd, 2011 (10:44 PM).
Missingyep Missingyep is offline
     
    Join Date: Jul 2010
    Posts: 275
    Quote:
    Originally Posted by HACKERXIDE View Post
    Instead when I walk on the script tile the game freezes.
    Something seems off about the offsets in your writebytetooffset calls. Why are you writing data directly to those locations?

    (Just loaded a FireRed ROM in VBA... According to its memory viewer, nothing exists past 9FF87BF. In fact, if my math is right, 0xC2FFFE11 would only exist in a 3GB ROM!)

    Relevant Advertising!

      #5952    
    Old August 2nd, 2011 (10:50 PM).
    HACKERXIDE's Avatar
    HACKERXIDE HACKERXIDE is offline
       
      Join Date: Mar 2010
      Location: Pallet Town
      Gender: Male
      Nature: Calm
      Posts: 20
      Quote:
      Originally Posted by DavidJCobb View Post
      Something seems off about the offsets in your writebytetooffset calls. Why are you writing data directly to those locations?

      (Just loaded a FireRed ROM in VBA... According to its memory viewer, nothing exists past 9FF87BF. In fact, if my math is right, 0xC2FFFE11 would only exist in a 3GB ROM!)
      Well actually thats not where i originally wrote the data to, once i compiled my script it seems to automatically put that...
      __________________
        #5953    
      Old August 2nd, 2011 (11:14 PM).
      iYesith's Avatar
      iYesith iYesith is offline
      Moderate Scripter(Expert Soon)
         
        Join Date: Mar 2010
        Location: Evergrande City
        Age: 21
        Gender: Male
        Nature: Calm
        Posts: 9
        #org $script
        lock
        faceplayer
        message $intro
        $intro 1 = Hello \v\h01, My name is Yesith. I am\nThe best trainer of the whole universe,\pAlso known as.....\na POKEMON MASTER!\pI have been sent from the planet "iY"\nto battle you and see if you are ready\pto be my successor....\nso let us see if you are ready....
        boxset 6
        checkflag 0x80E
        if 0x01 goto $battle
        message $not
        $not 1 = Sorry...\nBut you are still not ready.\pReturn to me once you have earned all\nof the badges that are of gyms.
        boxset 6
        release
        end

        #org $battle
        applymovement 0 $pop
        $pop 1 ; #binary 0x56 0xFE
        pause 0x40
        Message $ready
        $ready 1 = I see....\nYou are ready to face me in battle as\pyou have earned all of the badges that\nare of gyms.....\pBut it is your decision.....\nAre you ready to battle me?
        boxset 5
        compare 0x800D 0x0001
        if 0x01 goto $sure
        message $worthless
        $worthless 1 = You are worthless!!\nYou do not deserve to be a pokemon\pmaster!\nI shall leave now...\pAnd never again shall you recieve\nthe oppurtunity.....\pto take my place.....\nPEACE OUT!!
        boxset 6
        fadescreen 1
        removesprite 0
        setflag 0x1211
        pause 0x10
        fadescreen 0
        release
        end

        #org $sure
        message $hundred
        $hundred 1 = Are you sure you want to battle me?\nCoz all my Pokemon are level 100\pand I have six of them......\nSo tell me...........\pAre you ready??
        boxset 5
        compare 0x800D 0x0001
        if 0x01 goto $ultimate
        message $worthless2
        $worthless2 1 = You are worthless!!\nYou do not deserve to be a pokemon\pmaster!\nI shall leave now...\pAnd never again shall you recieve\nthe oppurtunity.....\pto take my place.....\nPEACE OUT!!
        boxset 6
        fadescreen 1
        removesprite 0
        setflag 0x1211
        pause 0x10
        fadescreen 0
        release
        end

        #org $ultimate
        trainerbattle 0x01 0x00 $see $win $further
        $see 1 = I see....so you think you are ready?\nBut I shall be the judge of that!\pLet the battle of the century...Begin!!
        $win 1 = You are remarkable!
        message $after
        $after 1 = I'm leaving now....\nGoing back to my own planet
        boxset 6
        release
        end

        #org $further
        message $pass
        $pass 1 = I see now...\nyou are the chosen one!!!!!\pHereby, you....\nare the new........\pPOKEMON MASTER!!!!!
        boxset 6
        pause 0x40
        message $over
        $over 1 = ...................................\pThank god that's over......\nI had it with this formal talk crap!!\pWhy the hell did they even make me\ntalk like this?!!???\pErm.......Anyway, for this epic\nvictory.......you deserve a reward.\pImma give you this Jirachi a'ight??\nYou cool with that??\pCoz that's all I got right now....\nHere ya go!
        boxset 6
        givepokemon 409 100 0x6D
        fanfare 0x13E
        waitfanfare
        message $gotj
        $gotj 1 = You Recieved a Jirachi!\pIf there is no space in your party,\nit will be sent to your storage system
        boxset 6
        message $leaving
        $leaving 1 = I have to go back to planet "iY" now,\nGood luck!!
        boxset 6
        fadescreen 1
        removesprite 0
        setflag 0x1211
        pause 0x10
        fadescreen 0
        release
        end


        There is nothing wrong with the script, but the thing is, i want to do more:

        1. Make it so that it's in a different map (after you beat the league, a cave appears and there's a warp tile in the cave which will take you to outer space where you meet him.)
        2. Make it so that we are teleported back to right in front of the cave after the battle but the cave will be gone (but if we lost the battle the cave will still be here.)
        3. Make a little bleep sound when the exclamation appears.
        4. get the option to nickname the jirachi we recieved (i tried but it let's us name the 1st pokemon in our party).
        5. Display "the pokemon will be sent to storage" only if there is no space in the party.
        6. Make it so that during the battle, the trainer uses his pokemon in an order instead of random.

        If it helps......here's the you \tube link to the video of this script:
        /watch?v=n2VUxkR6dWo


        I'd really appreciate any help....thanks in advance!
        __________________
        You only live twice. Once when you are born and once when you look death in the face. -- iY







        Click here to feed me a Rare Candy!
          #5954    
        Old August 3rd, 2011 (2:58 AM).
        Surigamaru Surigamaru is offline
         
           
          Join Date: Oct 2010
          Gender: Male
          Nature: Calm
          Posts: 85
          Quote:
          Originally Posted by HACKERXIDE View Post
          Well actually thats not where i originally wrote the data to, once i compiled my script it seems to automatically put that...
          Can you post your original script; before compiling? It would be better to figure out the problem from the source.
            #5955    
          Old August 3rd, 2011 (3:40 AM).
          tkallab's Avatar
          tkallab tkallab is offline
          Should have been in Dissidia
             
            Join Date: Jan 2008
            Location: I'm on a horse
            Age: 22
            Gender: Male
            Nature: Quiet
            Posts: 1,029
            I have a simple problem here. At least, I hope it's simple, otherwise I'm stuck with this glitch.
            I've made a script where the player steps on a tile, then walks up, and a msgbox opens, and that's the script. Don't get me wrong, it works perfectly, but there's a small issue.
            You see, the tile the player steps on is a warp. So a little arrow shows up when he steps on it. And then the arrow continues to be there until the script is over.
            So, is there a way to remove that arrow while the script is still running?
              #5956    
            Old August 3rd, 2011 (3:57 AM).
            Lyzo's Avatar
            Lyzo Lyzo is offline
            On vacation
               
              Join Date: Mar 2007
              Location: The Netherlands
              Age: 23
              Gender: Male
              Nature: Bold
              Posts: 252
              Quote:
              Originally Posted by HACKERXIDE View Post
              My Info
              Spoiler:
              ROM:Fire Red
              ROM TYPE: BPR
              ROM LANGUAGE: E
              ROM VERSION: 1.0


              My Problem

              Im trying to make a applymovement/battle script! Just like the ones when Gary battles you. The problem is that my script is not making the person i call upon to move to me and engage in battle! Instead when I walk on the script tile the game freezes. Below is my script.

              Spoiler:
              '-----------------------
              #org 0x726643
              checkflag 0x2012
              showsprite 0x2
              applymovement 0x2 0x872666F
              waitmovement 0x0
              msgbox 0x872667F '"Hey wait up!"
              callstd 0x6
              trainerbattle 0x1 0x15F 0x0 0x872668D 0x87266A0 0x87266B2
              #raw 02
              #raw pointer 0x111111FF
              writebytetooffset 0x11 0xE0E0311
              setbyte 0xE
              writebytetooffset 0x11 0xC2FFFE11

              '-----------------------
              #org 0x7266B2
              msgbox 0x87266CB '"Well I have to go, bye."

              '-----------
              ' Movements
              '-----------
              #org 0x72666F
              #raw 11 'Step Up (Normal)
              #raw 11 'Step Up (Normal)
              #raw 11 'Step Up (Normal)
              #raw 11 'Step Up (Normal)
              #raw 11 'Step Up (Normal)
              #raw 11 'Step Up (Normal)
              #raw 3 'Face Right
              #raw E 'Step Left (Slow)
              #raw E 'Step Left (Slow)
              #raw E 'Step Left (Slow)
              #raw E 'Step Left (Slow)
              #raw 11 'Step Up (Normal)
              #raw 11 'Step Up (Normal)
              #raw 11 'Step Up (Normal)
              #raw FE 'End of Movements


              '---------
              ' Strings
              '---------
              #org 0x72667F
              = Hey wait up!

              #org 0x72668D
              = I want to battle!

              #org 0x7266A0
              = Wow nice battle.

              #org 0x7266CB
              = Well I have to go, bye.
              Exactly, it would be useful if you could post your uncompiled script. But, seeing as the script freezes right when you step on it, it might be a much simpler issue. Always when using an applymovement script tile, you should make sure to have the following settings on the tile:

              This is a picture from diegoisawesome's script tutorial.

              If you have that, then please post your original script!
              __________________


              ^^ Thank you The Blueprint !!!
                #5957    
              Old August 3rd, 2011 (5:51 AM).
              metapod23's Avatar
              metapod23 metapod23 is offline
              Hardened Trainer
                 
                Join Date: Mar 2009
                Gender: Male
                Nature: Timid
                Posts: 673
                Quote:
                Originally Posted by HACKERXIDE View Post
                My Info
                Spoiler:
                ROM:Fire Red
                ROM TYPE: BPR
                ROM LANGUAGE: E
                ROM VERSION: 1.0


                My Problem

                Im trying to make a applymovement/battle script! Just like the ones when Gary battles you. The problem is that my script is not making the person i call upon to move to me and engage in battle! Instead when I walk on the script tile the game freezes. Below is my script.

                Spoiler:
                '-----------------------
                #org 0x726643
                checkflag 0x2012
                showsprite 0x2
                applymovement 0x2 0x872666F
                waitmovement 0x0
                msgbox 0x872667F '"Hey wait up!"
                callstd 0x6
                trainerbattle 0x1 0x15F 0x0 0x872668D 0x87266A0 0x87266B2
                #raw 02
                #raw pointer 0x111111FF
                writebytetooffset 0x11 0xE0E0311
                setbyte 0xE
                writebytetooffset 0x11 0xC2FFFE11

                '-----------------------
                #org 0x7266B2
                msgbox 0x87266CB '"Well I have to go, bye."

                '-----------
                ' Movements
                '-----------
                #org 0x72666F
                #raw 11 'Step Up (Normal)
                #raw 11 'Step Up (Normal)
                #raw 11 'Step Up (Normal)
                #raw 11 'Step Up (Normal)
                #raw 11 'Step Up (Normal)
                #raw 11 'Step Up (Normal)
                #raw 3 'Face Right
                #raw E 'Step Left (Slow)
                #raw E 'Step Left (Slow)
                #raw E 'Step Left (Slow)
                #raw E 'Step Left (Slow)
                #raw 11 'Step Up (Normal)
                #raw 11 'Step Up (Normal)
                #raw 11 'Step Up (Normal)
                #raw FE 'End of Movements


                '---------
                ' Strings
                '---------
                #org 0x72667F
                = Hey wait up!

                #org 0x72668D
                = I want to battle!

                #org 0x7266A0
                = Wow nice battle.

                #org 0x7266CB
                = Well I have to go, bye.
                The reason you're getting writebytetooffset commands at the end of your script is because there is already data at that offset either for another script or something else in the game, and XSE ends up merging the two together.

                Basically, it's time to use a new offset, because the script you're writing is too long and there's not enough free space to write it to the current offset. Just use #dynamic and write the first script to a new offset and you should be fine.

                Just remember that if you edit a script to make it longer, you might not have the free space needed for the new script. I usually use #remove to erase the old script, then compile the script again with #dynamic and that seems to work well.
                __________________
                  #5958    
                Old August 3rd, 2011 (6:13 AM).
                Fortunado Fortunado is offline
                Prof. Hemlock is busy now...
                   
                  Join Date: Jul 2011
                  Age: 22
                  Gender: Male
                  Nature: Lax
                  Posts: 30
                  ROM INFO: BPRE Fire Red 1.0 (U)

                  How can I set a step-count limit like the one in the Safari Zone?
                    #5959    
                  Old August 3rd, 2011 (12:48 PM).
                  Learath2's Avatar
                  Learath2 Learath2 is offline
                  Scripter
                     
                    Join Date: Aug 2009
                    Location: Turkey
                    Gender: Male
                    Nature: Calm
                    Posts: 114
                    Quote:
                    Originally Posted by Fortunado View Post
                    ROM INFO: BPRE Fire Red 1.0 (U)

                    How can I set a step-count limit like the one in the Safari Zone?
                    Its not just a script you need JPAN's hacked engine wich can be found in Research&Development forum it has a really good readme with explainations.
                    __________________

                    Learath2








                    Signature
                      #5960    
                    Old August 3rd, 2011 (12:58 PM).
                    Lyzo's Avatar
                    Lyzo Lyzo is offline
                    On vacation
                       
                      Join Date: Mar 2007
                      Location: The Netherlands
                      Age: 23
                      Gender: Male
                      Nature: Bold
                      Posts: 252
                      Quote:
                      Originally Posted by Learath2 View Post
                      Its not just a script you need JPAN's hacked engine wich can be found in Research&Development forum it has a really good readme with explainations.
                      Actually... you can do it without JPAN's hacked engine, by using 'special 0xCD'. However, using JPAN's engine makes it much easier, because you can set the amount of steps, check the amount of steps and have more than one step counter... But it isn't required :P
                      __________________


                      ^^ Thank you The Blueprint !!!
                        #5961    
                      Old August 3rd, 2011 (2:22 PM).
                      HACKERXIDE's Avatar
                      HACKERXIDE HACKERXIDE is offline
                         
                        Join Date: Mar 2010
                        Location: Pallet Town
                        Gender: Male
                        Nature: Calm
                        Posts: 20
                        Ok, i set the variables for my script block, and below is my script but instead of getting what i want to happen(an applymovement battle script) the game now resets, any1 able to help me.

                        Spoiler:
                        #dynamic 0x71CF2E

                        #org @Main
                        Lockall
                        showsprite 0x9
                        applymovement 0xFF @move1
                        applymovement 0x9 @move2
                        trainerbattle 0x1 0x001 0x0 @before @after @later
                        hidesprite 0x9
                        setvar 0x4050 0x1
                        releaseall
                        end

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

                        #org @move2
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0x7
                        #raw 0x20
                        #raw 0x20
                        #raw 0x20
                        #raw 0x20
                        #raw 0x5
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0xFE

                        #org @before
                        Lock
                        Faceplayer
                        Message @string1
                        boxset 0x6
                        release
                        end

                        #org @after
                        Lock
                        Faceplayer
                        Message @string2
                        boxset 0x6
                        release
                        end

                        #org @later
                        Lock
                        Faceplayer
                        Message @string3
                        boxset 0x6
                        release
                        end


                        #org @string1
                        = This is a test...Prepare!!!

                        #org @string2
                        = huh it worked and you beat me.

                        #org @string3
                        = Well g2g change the wording...
                        __________________
                          #5962    
                        Old August 3rd, 2011 (2:28 PM).
                        Spherical Ice's Avatar
                        Spherical Ice Spherical Ice is online now
                         
                        Join Date: Nov 2007
                        Location: Bristol, UK
                        Age: 20
                        Posts: 5,220
                        Spoiler:
                        #dynamic 0x800000 // USe this at the beginning of every script. When you compile in XSE, copy the offset given next to the @start part, and paste that.

                        #org @Main
                        lockall
                        showsprite 0x9
                        applymovement 0xFF @move1
                        applymovement 0x9 @move2
                        waitmovement 0x0 // You always need waitmovement 0x0
                        hidesprite 0x9
                        setvar 0x4050 0x1
                        trainerbattle 0x0 0x001 0x0 @string1 @string2
                        msgbox @string3 0x2
                        releaseall
                        end
                        // This script will basically display string1 before the battle and string2 at the defeat screen. If the script is interacted with again, string3 will be displayed.

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

                        #org @move2
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0x7
                        #raw 0x20
                        #raw 0x20
                        #raw 0x20
                        #raw 0x20
                        #raw 0x5
                        #raw 0x1E
                        #raw 0x1E
                        #raw 0xFE

                        #org @string1
                        = This is a test...Prepare!!![/B]

                        #org @string2
                        = huh it worked and you beat me.

                        #org @string3
                        = Well g2g change the wording...
                        __________________

                        A Pokemon that is discriminated!
                        Support squirtle and make it everyone's favourite.
                          #5963    
                        Old August 3rd, 2011 (3:56 PM).
                        HACKERXIDE's Avatar
                        HACKERXIDE HACKERXIDE is offline
                           
                          Join Date: Mar 2010
                          Location: Pallet Town
                          Gender: Male
                          Nature: Calm
                          Posts: 20
                          Quote:
                          Originally Posted by Spherical Ice View Post
                          Spoiler:
                          #dynamic 0x800000 // USe this at the beginning of every script. When you compile in XSE, copy the offset given next to the @start part, and paste that.

                          #org @Main
                          lockall
                          showsprite 0x9
                          applymovement 0xFF @move1
                          applymovement 0x9 @move2
                          waitmovement 0x0 // You always need waitmovement 0x0
                          hidesprite 0x9
                          setvar 0x4050 0x1
                          trainerbattle 0x0 0x001 0x0 @string1 @string2
                          msgbox @string3 0x2
                          releaseall
                          end
                          // This script will basically display string1 before the battle and string2 at the defeat screen. If the script is interacted with again, string3 will be displayed.

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

                          #org @move2
                          #raw 0x1E
                          #raw 0x1E
                          #raw 0x1E
                          #raw 0x1E
                          #raw 0x1E
                          #raw 0x1E
                          #raw 0x7
                          #raw 0x20
                          #raw 0x20
                          #raw 0x20
                          #raw 0x20
                          #raw 0x5
                          #raw 0x1E
                          #raw 0x1E
                          #raw 0xFE

                          #org @string1
                          = This is a test...Prepare!!![/B]

                          #org @string2
                          = huh it worked and you beat me.

                          #org @string3
                          = Well g2g change the wording...
                          Ok i fixed the script, but It seems to have the same effect. The game keeps reseting, the only weird thing is that i don't even make it to the script block before it resets.

                          I think it could have something to do with the setvar? anyone have any suggestions?
                          __________________
                            #5964    
                          Old August 3rd, 2011 (4:14 PM).
                          Lyzo's Avatar
                          Lyzo Lyzo is offline
                          On vacation
                             
                            Join Date: Mar 2007
                            Location: The Netherlands
                            Age: 23
                            Gender: Male
                            Nature: Bold
                            Posts: 252
                            Quote:
                            Originally Posted by HACKERXIDE View Post
                            Ok i fixed the script, but It seems to have the same effect. The game keeps reseting, the only weird thing is that i don't even make it to the script block before it resets.

                            I think it could have something to do with the setvar? anyone have any suggestions?
                            Wait. You don't make it to the script event tile? Check if one of your person event tiles has their behaviour set to hidden. There's multiple, and some of them cause the game to reset, when you get near.
                            __________________


                            ^^ Thank you The Blueprint !!!
                              #5965    
                            Old August 3rd, 2011 (4:28 PM).
                            HACKERXIDE's Avatar
                            HACKERXIDE HACKERXIDE is offline
                               
                              Join Date: Mar 2010
                              Location: Pallet Town
                              Gender: Male
                              Nature: Calm
                              Posts: 20
                              Quote:
                              Originally Posted by Lyzo View Post
                              Wait. You don't make it to the script event tile? Check if one of your person event tiles has their behaviour set to hidden. There's multiple, and some of them cause the game to reset, when you get near.

                              Oh jeeze well lol yea i thought maybe the person event was supposed to be set to hidden, like Professor Oak in pallet town, hmm let me fix the person event and i will get back to you on that.
                              __________________
                                #5966    
                              Old August 3rd, 2011 (4:55 PM).
                              Lyzo's Avatar
                              Lyzo Lyzo is offline
                              On vacation
                                 
                                Join Date: Mar 2007
                                Location: The Netherlands
                                Age: 23
                                Gender: Male
                                Nature: Bold
                                Posts: 252
                                Quote:
                                Originally Posted by HACKERXIDE View Post
                                Oh jeeze well lol yea i thought maybe the person event was supposed to be set to hidden, like Professor Oak in pallet town, hmm let me fix the person event and i will get back to you on that.
                                There's three different Hidden's, not all of them reset the game, I thought. Try them ;)
                                __________________


                                ^^ Thank you The Blueprint !!!
                                  #5967    
                                Old August 3rd, 2011 (5:01 PM).
                                metapod23's Avatar
                                metapod23 metapod23 is offline
                                Hardened Trainer
                                   
                                  Join Date: Mar 2009
                                  Gender: Male
                                  Nature: Timid
                                  Posts: 673
                                  Quote:
                                  Originally Posted by HACKERXIDE View Post
                                  Oh jeeze well lol yea i thought maybe the person event was supposed to be set to hidden, like Professor Oak in pallet town, hmm let me fix the person event and i will get back to you on that.
                                  Prof. Oak's sprite isn't set to hidden, it uses a special flag to hide it. I think it uses 2C, and that's what I use for all the sprites I want to be hidden on the map when you first enter - setting the behavior to hidden will make it invisible, but still there and able to be bumped into by the player. Just set the sprite's Person ID to 2c.
                                  __________________
                                    #5968    
                                  Old August 3rd, 2011 (8:34 PM).
                                  HACKERXIDE's Avatar
                                  HACKERXIDE HACKERXIDE is offline
                                     
                                    Join Date: Mar 2010
                                    Location: Pallet Town
                                    Gender: Male
                                    Nature: Calm
                                    Posts: 20
                                    ok im gonna get this, so i will repost my script, but i will try to give more info this time, in the picture below you can see the script tile where I walk on and the person tile that is supposed to walk to my position on the script tile.


                                    I have the person event invisible, but not through Adv.Map.
                                    My problem now is that the game freezes when
                                    I step on the Script tile!
                                    I don't know why but below is the adv map settings for the script tile.



                                    My Script
                                    Spoiler:

                                    #Dynamic 0x456769

                                    #ORG @Main
                                    Lockall
                                    showsprite 0x3
                                    applymovement 0xFF @move
                                    applymovement 0x3 @move1
                                    waitmovement 0x0
                                    hidesprite 0x3
                                    trainerbattle 0x0 0x001 0x0 @before @defeat
                                    Message @test
                                    Boxset 0x6
                                    setvar 0x4099 0x0
                                    releaseall
                                    end

                                    #org @move
                                    #raw 0x62
                                    #raw 0x0
                                    #raw 0xFE

                                    #org @move2
                                    #raw 0x1F
                                    #raw 0x1F
                                    #raw 0x1F
                                    #raw 0x1F
                                    #raw 0x1F
                                    #raw 0x1F
                                    #raw 0x1F
                                    #raw 0x1F
                                    #raw 0x1F
                                    #raw 0x1F
                                    #raw 0x1F
                                    #raw 0x1
                                    #raw 0x1E
                                    #raw 0xFE

                                    #org @before
                                    = hey lets battle!

                                    #org @defeat
                                    = You taught me!

                                    #org @test
                                    = Well I have to go!

                                    Thanks for any future suggestions, once I learn this to the fullest I plan to put a tutorial up about it since i've searched far and wide and found not a single one! Thanks from Hackerxide.
                                    __________________
                                      #5969    
                                    Old August 3rd, 2011 (8:56 PM).
                                    metapod23's Avatar
                                    metapod23 metapod23 is offline
                                    Hardened Trainer
                                       
                                      Join Date: Mar 2009
                                      Gender: Male
                                      Nature: Timid
                                      Posts: 673
                                      Quote:
                                      Originally Posted by HACKERXIDE View Post
                                      ok im gonna get this, so i will repost my script, but i will try to give more info this time, in the picture below you can see the script tile where I walk on and the person tile that is supposed to walk to my position on the script tile.


                                      I have the person event invisible, but not through Adv.Map.
                                      My problem now is that the game freezes when
                                      I step on the Script tile!
                                      I don't know why but below is the adv map settings for the script tile.



                                      My Script
                                      Spoiler:

                                      #Dynamic 0x456769

                                      #ORG @Main
                                      Lockall
                                      showsprite 0x3
                                      applymovement 0xFF @move
                                      applymovement 0x3 @move1
                                      waitmovement 0x0
                                      hidesprite 0x3
                                      trainerbattle 0x0 0x001 0x0 @before @defeat
                                      Message @test
                                      Boxset 0x6
                                      setvar 0x4099 0x1
                                      releaseall
                                      end

                                      #org @move
                                      #raw 0x62
                                      #raw 0x0
                                      #raw 0xFE

                                      #org @move2
                                      #raw 0x1F
                                      #raw 0x1F
                                      #raw 0x1F
                                      #raw 0x1F
                                      #raw 0x1F
                                      #raw 0x1F
                                      #raw 0x1F
                                      #raw 0x1F
                                      #raw 0x1F
                                      #raw 0x1F
                                      #raw 0x1F
                                      #raw 0x1
                                      #raw 0x1E
                                      #raw 0xFE

                                      #org @before
                                      = hey lets battle!

                                      #org @defeat
                                      = You taught me!

                                      #org @test
                                      = Well I have to go!

                                      Thanks for any future suggestions, once I learn this to the fullest I plan to put a tutorial up about it since i've searched far and wide and found not a single one! Thanks from Hackerxide.
                                      Most important change in bold. You have to set variable 4099 to something other than 0, because you have set the script to activate when 4099's var value is 0. If you don't set variable 4099 to something other than 0, it will continue endlessly and glitch up.
                                      __________________
                                        #5970    
                                      Old August 4th, 2011 (2:08 AM).
                                      Hacks0rus's Avatar
                                      Hacks0rus Hacks0rus is offline
                                      Monster Raving Looney
                                         
                                        Join Date: Jul 2011
                                        Gender: Male
                                        Nature: Timid
                                        Posts: 24
                                        I was away from my computor for most of yesterday, but i just though i would say thanks for all your help and tips.
                                        turns out i had the wrong version of XSE installed like [T]ouko said :)
                                          #5971    
                                        Old August 4th, 2011 (4:18 AM).
                                        tkallab's Avatar
                                        tkallab tkallab is offline
                                        Should have been in Dissidia
                                           
                                          Join Date: Jan 2008
                                          Location: I'm on a horse
                                          Age: 22
                                          Gender: Male
                                          Nature: Quiet
                                          Posts: 1,029
                                          Quote:
                                          Originally Posted by tkallab View Post
                                          I have a simple problem here. At least, I hope it's simple, otherwise I'm stuck with this glitch.
                                          I've made a script where the player steps on a tile, then walks up, and a msgbox opens, and that's the script. Don't get me wrong, it works perfectly, but there's a small issue.
                                          You see, the tile the player steps on is a warp. So a little arrow shows up when he steps on it. And then the arrow continues to be there until the script is over.
                                          So, is there a way to remove that arrow while the script is still running?
                                          Might as well illustrate this with some screepshots I took for another forum.


                                          So, here I wanna go outside. Everything okay.


                                          When suddenly, someone decides to not let me out. Don't worry, this is still part of the script.


                                          Now an applymovement command moves me toward the lady. BUT. The arrow is still there.


                                          Even when I stop moving and start a new conversation, the arrow continues to exist.


                                          It's gone after the script ends, luckily.

                                          Is it possible to remove that arrow during the script?
                                            #5972    
                                          Old August 4th, 2011 (5:40 AM).
                                          [T]ouko's Avatar
                                          [T]ouko [T]ouko is offline
                                          Dedicated Scripter!
                                             
                                            Join Date: Jul 2011
                                            Gender: Female
                                            Posts: 46
                                            @Hacks0rus You're welcome :)

                                            @tkallab Since I don't see your script, I can only assume this: Maybe you used lockall in your script, if I'm correct, that freezes everything, and if something is in the middle of an animation, that doesn't matter, it get's frozen too. So my best guess would be to change lockall to lock. Also, could you post the script (maybe you did in a previous post, sorry can't find it)? Because I don't even know if you used lockall, maybe something else is wrong.
                                            __________________


                                            Credits to: .Mini
                                              #5973    
                                            Old August 4th, 2011 (5:45 AM).
                                            tkallab's Avatar
                                            tkallab tkallab is offline
                                            Should have been in Dissidia
                                               
                                              Join Date: Jan 2008
                                              Location: I'm on a horse
                                              Age: 22
                                              Gender: Male
                                              Nature: Quiet
                                              Posts: 1,029
                                              Code:
                                              #dynamic 0x800000
                                              
                                              #org @start
                                              checkflag 0x300
                                              if 0x1 goto @dontgo
                                              msgbox @comehere 0x6
                                              applymovement 0xFF @getoverhere
                                              waitmovement 0x0
                                              msgbox @fateful 0x6
                                              setflag 0x300
                                              end
                                              
                                              #org @fateful
                                              = [red_fr]Good morning, you must be \v\h01.\nI will have to register you so we\lknow you've arrived.\p[black_fr]...\p[red_fr]All done. You can go upstairs now\nto commence the challenge. Good\lluck!
                                              
                                              #org @comehere
                                              = [red_fr]Please come over to the counter.
                                              
                                              #org @getoverhere
                                              #raw 0x11
                                              #raw 0x11
                                              #raw 0x11
                                              #raw 0x12
                                              #raw 0x12
                                              #raw 0x11
                                              #raw 0xFE
                                              
                                              #org @dontgo
                                              msgbox @wrongway 0x6
                                              applymovement 0xff @up
                                              waitmovement 0x0
                                              end
                                              
                                              #org @wrongway
                                              = [red_fr]Wait, you're going the wrong way!\nPlease take the stairs to start\lthe challenge.
                                              
                                              #org @up
                                              #raw 0x11
                                              #raw 0xfe
                                              Here's the script. Didn't even use a lock command :/
                                                #5974    
                                              Old August 4th, 2011 (9:23 AM).
                                              Spherical Ice's Avatar
                                              Spherical Ice Spherical Ice is online now
                                               
                                              Join Date: Nov 2007
                                              Location: Bristol, UK
                                              Age: 20
                                              Posts: 5,220
                                              As far as I know, there is no way to remove that arrow as the script will automatically lock the player. So the only way to fix it is if you put three scripts around the warp and work from there. :/

                                              Now, I've got a minor question. If I wanted to set a tile where the player is stood, would the following work?
                                              getplayerpos 0x7A3A 0x7A3B
                                              setmaptile 0x7A3A 0x7A3B 0x1 0x0


                                              If not, how would I go about doing so? Is it even possible?
                                              __________________

                                              A Pokemon that is discriminated!
                                              Support squirtle and make it everyone's favourite.
                                                #5975    
                                              Old August 4th, 2011 (11:10 AM).
                                              tkallab's Avatar
                                              tkallab tkallab is offline
                                              Should have been in Dissidia
                                                 
                                                Join Date: Jan 2008
                                                Location: I'm on a horse
                                                Age: 22
                                                Gender: Male
                                                Nature: Quiet
                                                Posts: 1,029
                                                Why didn't I think of that -.- Thank you!
                                                As for your question, I doubt that'd work because the script would read it as the x and y position instead of the variables :/ This is coming from just a logical thinker and not from a hacking expert though, so I'd say try it out.
                                                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 3:27 PM.