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
  #526    
Old February 27th, 2009 (2:11 PM).
Shadows's Avatar
Shadows Shadows is offline
     
    Join Date: Jul 2008
    Location: Chicago, IL
    Age: 21
    Nature: Calm
    Posts: 857
    Make sure you search for free space in an offset first.
    There is a free space finder in advanced map, and there is also one in HackMew's Toolbox.
    __________________

    Relevant Advertising!

      #527    
    Old February 27th, 2009 (5:31 PM).
    Robert Conley's Avatar
    Robert Conley Robert Conley is offline
    GPXPlus.net/user/Robert+Conley
       
      Join Date: Oct 2008
      Location: The Anti Spiral Homeworld
      Gender: Male
      Nature: Docile
      Posts: 330
      So I am trying to use the shiny hack maker to insert a shiny pokemon. When I looked at the example scripts I got confused. It shows this:

      WildBattle:
      #org 0xOffset
      callasm 0xASMPointer
      wildbattle 0xPokemon 0xLevel 0xItem
      end


      My question is what is the line callasm 0xASMpointer for and what do I put there?
      __________________
        #528    
      Old February 27th, 2009 (6:44 PM).
      FLOOTENKERP's Avatar
      FLOOTENKERP FLOOTENKERP is offline
      The Glitch From Johto
         
        Join Date: Nov 2008
        Location: Florida
        Nature: Bold
        Posts: 26
        dude thanx blackpanfa your a life saver. if my hack goes anywhere (which it probably wont) ill give you credit. thanx again.
        __________________



        All of them are in level 100 and Ev'd to the max. Beware my non-lengendary team!
          #529    
        Old February 28th, 2009 (12:50 AM).
        HackMew's Avatar
        HackMew HackMew is offline
        Mewtwo Strikes Back
        • Crystal Tier
         
        Join Date: Jun 2006
        Posts: 1,314
        Quote:
        Originally Posted by ckret2 View Post
        Thanks for the help. I tried that, it didn't work, I looked at similar scripts in Viridian and Pallet, and discovered that the unknown setting needs to be 0003, not 0030. I tried that out and now it works perfectly.
        Looking at similar scripts is always a good idea, indeed.


        Quote:
        Originally Posted by Bigboy View Post
        Hack of: Pokemon Emerald
        Scripter: Pokescript

        Once I talk to the npc he should disappear after the fade screen. Problem is...it stays black instead of returning to the game.

        Spoiler:
        #org $start
        lock
        faceplayer
        applymovement 0x01 $move
        message $Who
        boxset 6
        fadescreen 0x1
        #raw 0x56 0x0f 0x80
        setflag 0x211
        fadescreen 0x0
        release
        end

        #org $who
        $who 1 =Who are you?\p\c\h01\h05I'm...\p\c\h01\h02No I don't care\n so long as you get out of here.

        #org $move
        #raw 0x56 0xfe
        I'm wondering why you're using the showspritepos command, with too less parameters anyway...

        If you want here's the fixed - and working - script, I've used XSE:

        Spoiler:
        #dynamic 0x800000

        #org @start
        lock
        faceplayer
        applymovement 0x01 @move
        message @Who 6
        fadescreen 0x1
        hidesprite LASTTALKED
        setflag 0x1001
        fadescreen 0x0
        release
        end

        #org @who
        = Who are you?\p\c\h01\h05I'm...\p\c\h01\h02No I don't care\n so long as you get out of here.

        #org @move
        #raw 0x56 0xfe



        Quote:
        Originally Posted by PokemonBroski View Post
        The script works but whenever I step on it a 2nd time the script plays again
        so how do I make it to where the script can only be activated once

        Game:
        Firered
        Type: script
        Editor: XSE
        Script: Applymovement
        Spoiler:
        #Dynamic 0x71A2F2

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

        #org @potion
        lock
        setflag 0x500
        applymovement 0x6 @1
        applymovement 0xFF @4
        waitmovement 0xFF
        waitmovement 0x6
        msgbox @take
        boxset 0x6
        giveitem 0xD 0x12 0x0
        msgbox @lab
        boxset 0x6
        applymovement 0x6 @2
        applymovement 0xFF @3
        waitmovement 0x0
        msgbox @thanks
        boxset 0x6
        clearflag 0x500
        release
        end

        #org @take
        = Hey,\nyou can have these\ppotions that Prof.Oak gave me

        #org @lab
        = Let's go to the lab so\nyou can get your pokemon

        #org @thanks
        = Thanks for coming\nNow go get your pokemon

        #org @1
        #raw 0x11
        #raw 0x11
        #raw 0x11
        #raw 0x11
        #raw 0x11
        #raw 0x12
        #raw 0x12
        #raw 0x12
        #raw 0x12
        #raw 0x12
        #raw 0x01 0xFE

        #org @2
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x01 0xFE

        #org @3
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x01 0xFE

        #org @4
        #raw 0x00
        #raw 0x63 0xFE

        #org @end
        release
        end

        You're checking the wrong way flag 0x828. Which isn't set anywhere in the script. So the script is repeated over and over again. Also, do not forget to update your copy of XSE, which is outdated. Here's the fixed script:

        Spoiler:
        #Dynamic 0x71A2F2

        #org @start
        checkflag 0x500
        if 0x1 goto @end
        lock
        setflag 0x500
        applymovement 0x6 @1
        applymovement 0xFF @4
        waitmovement 0xFF
        waitmovement 0x6
        msgbox @take 0x6
        giveitem 0xD 0x12 0x0
        msgbox @lab 0x6
        applymovement 0x6 @2
        applymovement 0xFF @3
        waitmovement 0x0
        msgbox @thanks 0x6
        release
        end

        #org @end
        release
        end

        #org @take
        = Hey,\nyou can have these\ppotions that Prof.Oak gave me

        #org @lab
        = Let's go to the lab so\nyou can get your pokemon

        #org @thanks
        = Thanks for coming\nNow go get your pokemon

        #org @1
        #raw 0x11
        #raw 0x11
        #raw 0x11
        #raw 0x11
        #raw 0x11
        #raw 0x12
        #raw 0x12
        #raw 0x12
        #raw 0x12
        #raw 0x12
        #raw 0x01 0xFE

        #org @2
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x01 0xFE

        #org @3
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x13
        #raw 0x01 0xFE

        #org @4
        #raw 0x00
        #raw 0x63 0xFE



        Quote:
        Originally Posted by FLOOTENKERP View Post
        i really really need help with XSE. I haven't learned a thing. I really want to script but I dont understand any of the compiling and format and stuff. Can anyone help me with that? I 2would really appreciate it.
        Next time try reading the guide that comes with the newest XSE. It explains anything you need to compile a script. Don't forget there's the Command Help too, just press F1.


        Quote:
        Originally Posted by Shadows View Post
        Make sure you search for free space in an offset first.
        There is a free space finder in advanced map, and there is also one in HackMew's Toolbox.
        Please update your copy of XSE, okay?


        Quote:
        Originally Posted by hildetorr View Post
        So I am trying to use the shiny hack maker to insert a shiny pokemon. When I looked at the example scripts I got confused. It shows this:

        WildBattle:
        #org 0xOffset
        callasm 0xASMPointer
        wildbattle 0xPokemon 0xLevel 0xItem
        end


        My question is what is the line callasm 0xASMpointer for and what do I put there?
        The offset where the shiny hack routine was inserted + 1.
        __________________
          #530    
        Old February 28th, 2009 (6:31 AM).
        FLOOTENKERP's Avatar
        FLOOTENKERP FLOOTENKERP is offline
        The Glitch From Johto
           
          Join Date: Nov 2008
          Location: Florida
          Nature: Bold
          Posts: 26
          kk. thanks hackmew! im sorta getting used to scripting but still working the kinks out.
          __________________



          All of them are in level 100 and Ev'd to the max. Beware my non-lengendary team!
            #531    
          Old February 28th, 2009 (11:51 AM).
          Robert Conley's Avatar
          Robert Conley Robert Conley is offline
          GPXPlus.net/user/Robert+Conley
             
            Join Date: Oct 2008
            Location: The Anti Spiral Homeworld
            Gender: Male
            Nature: Docile
            Posts: 330
            Quote:
            Quote:
            Originally Posted by hildetorr
            So I am trying to use the shiny hack maker to insert a shiny pokemon. When I looked at the example scripts I got confused. It shows this:

            WildBattle:
            #org 0xOffset
            callasm 0xASMPointer
            wildbattle 0xPokemon 0xLevel 0xItem
            end


            My question is what is the line callasm 0xASMpointer for and what do I put there?

            Quote:
            Originally Posted by HackMew View Post
            The offset where the shiny hack routine was inserted + 1.
            what do you mean by the offset+1? I get the offset part but what does the +1 mean? answer please!
            __________________
              #532    
            Old February 28th, 2009 (1:21 PM).
            Lanzar's Avatar
            Lanzar Lanzar is offline
            ~Zelda fan #1~
               
              Join Date: Feb 2009
              Location: Sweden
              Gender: Male
              Nature: Mild
              Posts: 28
              I fixed my problem with the offset thing...
              Okay, another question, how do I make a script like this: if you win against a trainer, he will walk 1 step to the right and 3 down?
              __________________

              I support~

                #533    
              Old February 28th, 2009 (2:39 PM).
              ~Poke~'s Avatar
              ~Poke~ ~Poke~ is offline
              Hasn't played 5th gen yet.
                 
                Join Date: Aug 2007
                Location: On the moon
                Gender: Male
                Nature: Modest
                Posts: 331
                Quote:
                Originally Posted by hildetorr View Post
                what do you mean by the offset+1? I get the offset part but what does the +1 mean? answer please!
                Well, you get the offset, then you add 1
                Example: offset = B8F6D8 (no idea whether there is one like this or not)
                B8F6D8 + 1 = B8F6D9
                __________________
                I refuse to enter a battle of the wits with you,
                it's against my morals to attack an unarmed person.

                  #534    
                Old February 28th, 2009 (3:15 PM). Edited February 28th, 2009 by Robert Conley.
                Robert Conley's Avatar
                Robert Conley Robert Conley is offline
                GPXPlus.net/user/Robert+Conley
                   
                  Join Date: Oct 2008
                  Location: The Anti Spiral Homeworld
                  Gender: Male
                  Nature: Docile
                  Posts: 330
                  Quote:
                  Originally Posted by ~Poke~ View Post
                  Well, you get the offset, then you add 1
                  Example: offset = B8F6D8 (no idea whether there is one like this or not)
                  B8F6D8 + 1 = B8F6D9
                  If the last number is 9 do I just go back to 0? If I use the shiny hack more than once in a single rom hack do I Keep using the original offset+1 or do I add another 1 for every new shiny hack?

                  ive tried following what you guys have said and the script compiles fine but when I try to talk to the pokemon to initiate the wild battle the emulator freezes.
                  __________________
                    #535    
                  Old March 1st, 2009 (3:27 AM).
                  Jack Olero Jack Olero is offline
                     
                    Join Date: Mar 2009
                    Gender:
                    Posts: 1
                    I'm trying to make a script where when the player passes over a tile, he says something to himself then moves. However, when I walk over that tile ingame, it just freezes.

                    Spoiler:

                    '---------------
                    #org 0x2E9803
                    lock
                    checkflag 0x200
                    if 0x1 call 0x2E982E
                    applymovement MOVE_PLAYER 0x2E9831
                    msgbox 0x2E9822 MSG_NORMAL '"Blah blah blah..."
                    setflag 0x200
                    release
                    end

                    '---------------
                    #org 0x2E982E
                    release
                    end


                    '---------
                    ' Strings
                    '---------
                    #org 0x2E9822
                    = Blah blah blah...


                    '-----------
                    ' Movements
                    '-----------
                    #org 0x2E9831
                    #raw 0x7 'Step Right (Slow)
                    #raw 0xFE 'End of Movements


                    Uh.. help?
                      #536    
                    Old March 1st, 2009 (9:07 AM).
                    Megiddo-san's Avatar
                    Megiddo-san Megiddo-san is offline
                    Barium - Summer '12 Return?
                       
                      Join Date: Dec 2007
                      Location: Where you least expect it
                      Age: 25
                      Gender: Male
                      Nature: Relaxed
                      Posts: 1,329
                      Send a message via Windows Live Messenger to Megiddo-san
                      '---------------
                      #org 0x2E9803
                      lock
                      checkflag 0x200
                      if 0x1 call 0x2E982E
                      applymovement MOVE_PLAYER 0x2E9831
                      waitmovement 0
                      msgbox 0x2E9822 MSG_NORMAL '"Blah blah blah..."
                      setflag 0x200
                      release
                      end

                      '---------------
                      #org 0x2E982E
                      release
                      end


                      '---------
                      ' Strings
                      '---------
                      #org 0x2E9822
                      = Blah blah blah...


                      '-----------
                      ' Movements
                      '-----------
                      #org 0x2E9831
                      #raw 0x7 'Step Right (Slow)
                      #raw 0xFE 'End of Movements
                      __________________

                      Hashire! Asu e tsudzuku shinka no micha wa
                        #537    
                      Old March 1st, 2009 (10:33 AM).
                      Tropical Sunlight's Avatar
                      Tropical Sunlight Tropical Sunlight is offline
                      The Faltine
                         
                        Join Date: Mar 2008
                        Location: Slovenia
                        Age: 21
                        Gender: Male
                        Posts: 3,572
                        Send a message via Windows Live Messenger to Tropical Sunlight
                        Game: FireRed
                        Type: Trigger
                        Editor: XSE
                        Script:
                        Spoiler:
                        A-Map:
                        The actual script:
                        Unknown: 0003
                        Var number: 4050
                        Var value: 0000
                        Unknown: 00-00
                        Script offset: $8000E0
                        Kyogre:
                        Person event no: 13
                        Person ID: 0013
                        Yellow:
                        Person event no: 12
                        Person ID: 0012
                        XSE:
                        Quote:
                        '---------------
                        #org 0x8000E0
                        checkflag 0x200
                        if 0x0 goto 0x88000EC
                        release
                        end
                        '---------------
                        #org 0x8000EC
                        lock
                        applymovement MOVE_PLAYER 0x8800158
                        waitmovement 0x0
                        applymovement 0x12 0x880015C
                        waitmovement 0x0
                        msgbox 0x8800169 MSG_NORMAL '"[red_fr]YELLOW: Hey [player], your..."
                        setweather 0xD
                        doweather
                        msgbox 0x88001A3 MSG_NORMAL '"[red_fr]YELLOW: Aww[.] it had to s..."
                        applymovement 0x13 0x880015F
                        waitmovement 0x0
                        msgbox 0x88001D2 MSG_NORMAL '"[red_fr]YELLOW: Wh-What's that?!"
                        msgbox 0x88001F0 MSG_NORMAL '"[player]: I'll check my Pokedex[.]"
                        showpokepic 0x194 0x14 0x16
                        cry 0x194 0x0
                        msgbox 0x880020D MSG_NORMAL '"Name: KYOGRE\nSEA BASIN POKeMON\lT..."
                        msgbox 0x880024B MSG_NORMAL '"[red_fr]YELLOW: Let's run!"
                        hidepokepic
                        setflag 0x200
                        warp 0x4 0x1 0x1 0x2 0x5
                        hidesprite 0x12
                        setbyte2 0x2 0xFE
                        '---------
                        ' Strings
                        '---------
                        #org 0x800169
                        = [red_fr]YELLOW: Hey [player], your here at\nlast!\p[black_fr][player]: Am I late?
                        #org 0x8001A3
                        = [red_fr]YELLOW: Aww[.] it had to start\nraining now.
                        #org 0x8001D2
                        = [red_fr]YELLOW: Wh-What's that?!
                        #org 0x8001F0
                        = [player]: I'll check my Pokedex[.]
                        #org 0x80020D
                        = Name: KYOGRE\nSEA BASIN POKeMON\lType 1:[blue_fr] WATER\l[black_fr]Type 2: -
                        #org 0x80024B
                        = [red_fr]YELLOW: Let's run!
                        '-----------
                        ' Movements
                        '-----------
                        #org 0x800158
                        #raw 0x10 'Step Down (Normal)
                        #raw 0x2 'Face Left
                        #raw 0xFE 'End of Movements
                        #org 0x80015C
                        #raw 0x3 'Face Right
                        #raw 0xFE 'End of Movements
                        #org 0x80015F
                        #raw 0x13 'Step Right (Normal)
                        #raw 0x13 'Step Right (Normal)
                        #raw 0x13 'Step Right (Normal)
                        #raw 0x13 'Step Right (Normal)
                        #raw 0x13 'Step Right (Normal)
                        #raw 0x13 'Step Right (Normal)
                        #raw 0x13 'Step Right (Normal)
                        #raw 0x13 'Step Right (Normal)
                        #raw 0xFE 'End of Movements

                        Screenshots and/or Videos: http://www.youtube.com/watch?v=SUkEDlxmkpY

                        The problem is, there's no pokepic and Yellow doesn't turn.
                        __________________
                          #538    
                        Old March 1st, 2009 (7:05 PM).
                        Dobjo's Avatar
                        Dobjo Dobjo is offline
                        Trying to understand scripting
                           
                          Join Date: Feb 2009
                          Age: 24
                          Gender:
                          Nature: Mild
                          Posts: 6
                          Game: Fire Red
                          Type: Question
                          Program:XSE
                          Script:
                          Spoiler:
                          #dynamic 0x800A25
                          #org @start
                          lock
                          faceplayer
                          msgbox @areyoudumb 0x5
                          if 0x1 goto @yes
                          if 0x0 goto @no
                          release
                          end

                          #org @areyoudumb
                          = Yes or no?

                          #org @yes
                          = Me too!!

                          #org @no
                          = Yes you are, shut up.


                          Problem: Whenever I talk to the person it just goes to, "'So yes or no?'" And then the options for,"Yes", and,"No" show up.

                          Help would be greatly appreciated
                          __________________
                          ____________________________________________________
                          Current projects:
                          Pokemon Royal Blue:
                          Sprites= Done!
                          Scripting= Still learning >.<
                          Mapping= Still need to learn some more stuff.
                            #539    
                          Old March 2nd, 2009 (12:39 AM). Edited March 20th, 2009 by flyin_hawaiian.
                          flyin_hawaiian's Avatar
                          flyin_hawaiian flyin_hawaiian is offline
                          the one nobody knows...yet!
                             
                            Join Date: Mar 2009
                            Gender:
                            Nature: Jolly
                            Posts: 17
                            Game: RUBY
                            Type: Trigger
                            Program: XSE
                            Problem: When I walk onto the tile where I placed the script, the character can't move.
                            Spoiler:

                            #dynamic 0x6B28E7

                            #org @start
                            checkflag 0x800
                            if 0x1 goto @end
                            showsprite 0x7
                            applymovement 0x7 @move
                            waitmovement
                            msgbox @oh 0x6
                            givepokemon 0x17C 0x5 0xB7
                            fanfare 0x13E
                            waitfanfare
                            setflag 0x800
                            msgbox @yay 0x6
                            applymovement 0x7 @move1
                            waitmovement
                            release
                            end

                            #org @end
                            release
                            end

                            #org @oh
                            = Oh!\nYou must be [PLAYER]!\n I heard that you were\nwanting to start\na Pokemon Journey.\nI guess that I'll help\nyou out.

                            #org @yay
                            = [PLAYER] received a Zangoose!\pI found that one\nbeing attacked by some\nSeviper\nI think that you two will\nget along.\pOH!\nby the way,\nI am Professor Birch.\n if you need any help\naround the region,\nI'll be happy to.\nCome by my lab\nlater also, I have\nsomething for you.

                            #org @move
                            #raw 0x2E 0x2E 0xFE

                            #org @move1
                            #raw 0x2D 0x2D 0xFE

                            Explanation: It is supposed to be for getting a starter.

                            EDIT: I fixed it. Originally I just hadn't put the unknown and var numbers in. Afterward I fixed the movements.
                              #540    
                            Old March 2nd, 2009 (9:46 AM).
                            Shadows's Avatar
                            Shadows Shadows is offline
                               
                              Join Date: Jul 2008
                              Location: Chicago, IL
                              Age: 21
                              Nature: Calm
                              Posts: 857
                              On the tile, the player the just passes through it and nothing happens.
                              Spoiler:
                              '---------------
                              #org 0x73ED9C
                              checkflag 0x1221
                              if 0x0 goto 0x873EDAE
                              if 0x1 goto 0x873EDF7
                              release
                              end

                              '---------------
                              #org 0x73EDAE
                              checkflag 0x1222
                              if 0x1 goto 0x873EDF7
                              playsong 0x13B 0x0
                              showsprite 0x8
                              applymovement 0x8 0x873EDDA
                              trainerbattle 0x1 0xB 0x0 0x873EDFA 0x873EE04 0x873EDDF
                              release
                              end

                              '---------------
                              #org 0x73EDF7
                              release
                              end

                              '---------------
                              #org 0x73EDDF
                              msgbox 0x873EE14 MSG_NORMAL '"???:I am [darknavyblue_fr]PURPLE.[..."
                              fadescreen 0x1
                              hidesprite 0x8
                              setflag 0x1222
                              fadescreen 0x0
                              fadesong 0x13B
                              release
                              end


                              '---------
                              ' Strings
                              '---------
                              #org 0x73EDFA
                              = ???:...

                              #org 0x73EE04
                              = ???:I lost?!?

                              #org 0x73EE14
                              = ???:I am [darknavyblue_fr]PURPLE.[black_fr]We will soon meet\nagain.


                              '-----------
                              ' Movements
                              '-----------
                              #org 0x73EDDA
                              #raw 0x8 'Step Down (Very Slow)
                              #raw 0x8 'Step Down (Very Slow)
                              #raw 0xFE 'End of Movements
                              __________________
                                #541    
                              Old March 2nd, 2009 (12:41 PM).
                              Lanzar's Avatar
                              Lanzar Lanzar is offline
                              ~Zelda fan #1~
                                 
                                Join Date: Feb 2009
                                Location: Sweden
                                Gender: Male
                                Nature: Mild
                                Posts: 28
                                How do I make a script like this: You talk to a guy, and he wants to battle and if you win, he will walk 2 steps to the right and 4 down? Please help me!
                                __________________

                                I support~

                                  #542    
                                Old March 3rd, 2009 (8:23 AM).
                                Tropical Sunlight's Avatar
                                Tropical Sunlight Tropical Sunlight is offline
                                The Faltine
                                   
                                  Join Date: Mar 2008
                                  Location: Slovenia
                                  Age: 21
                                  Gender: Male
                                  Posts: 3,572
                                  Send a message via Windows Live Messenger to Tropical Sunlight
                                  Quote:
                                  Originally Posted by ~Watermelon View Post
                                  Game: FireRed
                                  Type: Trigger
                                  Editor: XSE
                                  Script:
                                  Spoiler:
                                  A-Map:
                                  The actual script:
                                  Unknown: 0003
                                  Var number: 4050
                                  Var value: 0000
                                  Unknown: 00-00
                                  Script offset: $8000E0
                                  Kyogre:
                                  Person event no: 13
                                  Person ID: 0013
                                  Yellow:
                                  Person event no: 12
                                  Person ID: 0012
                                  XSE:
                                  Quote:
                                  '---------------
                                  #org 0x8000E0
                                  checkflag 0x200
                                  if 0x0 goto 0x88000EC
                                  release
                                  end
                                  '---------------
                                  #org 0x8000EC
                                  lock
                                  applymovement MOVE_PLAYER 0x8800158
                                  waitmovement 0x0
                                  applymovement 0x12 0x880015C
                                  waitmovement 0x0
                                  msgbox 0x8800169 MSG_NORMAL '"[red_fr]YELLOW: Hey [player], your..."
                                  setweather 0xD
                                  doweather
                                  msgbox 0x88001A3 MSG_NORMAL '"[red_fr]YELLOW: Aww[.] it had to s..."
                                  applymovement 0x13 0x880015F
                                  waitmovement 0x0
                                  msgbox 0x88001D2 MSG_NORMAL '"[red_fr]YELLOW: Wh-What's that?!"
                                  msgbox 0x88001F0 MSG_NORMAL '"[player]: I'll check my Pokedex[.]"
                                  showpokepic 0x194 0x14 0x16
                                  cry 0x194 0x0
                                  msgbox 0x880020D MSG_NORMAL '"Name: KYOGRE\nSEA BASIN POKeMON\lT..."
                                  msgbox 0x880024B MSG_NORMAL '"[red_fr]YELLOW: Let's run!"
                                  hidepokepic
                                  setflag 0x200
                                  warp 0x4 0x1 0x1 0x2 0x5
                                  hidesprite 0x12
                                  setbyte2 0x2 0xFE
                                  '---------
                                  ' Strings
                                  '---------
                                  #org 0x800169
                                  = [red_fr]YELLOW: Hey [player], your here at\nlast!\p[black_fr][player]: Am I late?
                                  #org 0x8001A3
                                  = [red_fr]YELLOW: Aww[.] it had to start\nraining now.
                                  #org 0x8001D2
                                  = [red_fr]YELLOW: Wh-What's that?!
                                  #org 0x8001F0
                                  = [player]: I'll check my Pokedex[.]
                                  #org 0x80020D
                                  = Name: KYOGRE\nSEA BASIN POKeMON\lType 1:[blue_fr] WATER\l[black_fr]Type 2: -
                                  #org 0x80024B
                                  = [red_fr]YELLOW: Let's run!
                                  '-----------
                                  ' Movements
                                  '-----------
                                  #org 0x800158
                                  #raw 0x10 'Step Down (Normal)
                                  #raw 0x2 'Face Left
                                  #raw 0xFE 'End of Movements
                                  #org 0x80015C
                                  #raw 0x3 'Face Right
                                  #raw 0xFE 'End of Movements
                                  #org 0x80015F
                                  #raw 0x13 'Step Right (Normal)
                                  #raw 0x13 'Step Right (Normal)
                                  #raw 0x13 'Step Right (Normal)
                                  #raw 0x13 'Step Right (Normal)
                                  #raw 0x13 'Step Right (Normal)
                                  #raw 0x13 'Step Right (Normal)
                                  #raw 0x13 'Step Right (Normal)
                                  #raw 0x13 'Step Right (Normal)
                                  #raw 0xFE 'End of Movements

                                  Screenshots and/or Videos: http://www.youtube.com/watch?v=SUkEDlxmkpY

                                  The problem is, there's no pokepic and Yellow doesn't turn.
                                  Please? I really need this fixed. Or maybe it's un-fixable? :\
                                  __________________
                                    #543    
                                  Old March 3rd, 2009 (11:42 AM).
                                  Blackpanfa's Avatar
                                  Blackpanfa Blackpanfa is offline
                                  ROM Buster
                                     
                                    Join Date: Nov 2008
                                    Location: England [+]
                                    Nature: Quirky
                                    Posts: 26
                                    Gahhh. I've been trying to make it so that this walking event happens only ONCE. i'm using XSE. here is my code:
                                    Code:
                                    #Dynamic 0x80005D
                                    #org @start
                                    lock
                                    checkflag 0x200
                                    if 0x1 goto @end
                                    checkflag 0x828
                                    if 0x0 goto @move
                                    if 0x1 goto @end
                                    setflag 0x200
                                    release
                                    end
                                    
                                    #org @move
                                    applymovement 0xFF @back
                                    waitmovement 0x0
                                    release
                                    end
                                    
                                    #org @back
                                    #raw 0x62 0x00 0x0C 0x0C 0x0C 0xFE
                                    
                                    #org @end
                                    clearflag 0x900
                                    release
                                    end
                                    Thanks.
                                    __________________


                                    I support:

                                    Spoiler:







                                      #544    
                                    Old March 3rd, 2009 (12:04 PM). Edited March 4th, 2009 by TSK.
                                    TSK's Avatar
                                    TSK TSK is offline
                                    Swimming in shinies
                                       
                                      Join Date: Jun 2007
                                      Nature: Timid
                                      Posts: 161
                                      Quote:
                                      Gahhh. I've been trying to make it so that this walking event happens only ONCE. i'm using XSE. here is my code:
                                      Code:

                                      ...

                                      Thanks.
                                      Spoiler:
                                      Code:
                                      #Dynamic 0x80005D
                                      #org @start
                                      lock
                                      checkflag 0x200
                                      if 0x1 goto @end
                                      checkflag 0x828
                                      if 0x0 call @move
                                      else goto @end
                                      
                                      release
                                      end
                                      
                                      #org @move
                                      applymovement 0xFF @back
                                      waitmovement 0x0
                                      setflag 0x200
                                      
                                      end
                                      
                                      #org @back
                                      #raw 0x62 0x00 0x0C 0x0C 0x0C 0xFE
                                      
                                      #org @end
                                      clearflag 0x900
                                      release
                                      end
                                      end


                                      Changes in bold, using two checkflags seems kind of redundant...
                                      Perhaps:
                                      Spoiler:
                                      Code:
                                      #Dynamic 0x80005D
                                      #org @start
                                      lock
                                      checkflag 0x200
                                      if 0x0 call @move
                                      else goto @end
                                      release
                                      end
                                      
                                      #org @move
                                      applymovement 0xFF @back
                                      waitmovement 0x0
                                      setflag 0x200
                                      
                                      end
                                      
                                      #org @back
                                      #raw 0x62 0x00 0x0C 0x0C 0x0C 0xFE
                                      
                                      #org @end
                                      clearflag 0x900
                                      release
                                      end


                                      Quote:
                                      Originally Posted by ~Watermelon View Post
                                      Game: FireRed
                                      Type: Trigger
                                      Editor: XSE
                                      Script:
                                      Content hidden:
                                      Click here to view.
                                      A-Map:
                                      The actual script:
                                      Spoiler:
                                      Unknown: 0003
                                      Var number: 4050
                                      Var value: 0000
                                      Unknown: 00-00
                                      Script offset: $8000E0
                                      Kyogre:
                                      Person event no: 13
                                      Person ID: 0013
                                      Yellow:
                                      Person event no: 12
                                      Person ID: 0012
                                      XSE:
                                      Quote:
                                      '---------------
                                      #org 0x8000E0
                                      checkflag 0x200
                                      if 0x0 goto 0x88000EC
                                      release
                                      end
                                      '---------------
                                      #org 0x8000EC
                                      lock
                                      applymovement MOVE_PLAYER 0x8800158
                                      waitmovement 0x0
                                      applymovement 0x12 0x880015C
                                      waitmovement 0x0
                                      msgbox 0x8800169 MSG_NORMAL '"[red_fr]YELLOW: Hey [player], your..."
                                      setweather 0xD
                                      doweather
                                      msgbox 0x88001A3 MSG_NORMAL '"[red_fr]YELLOW: Aww[.] it had to s..."
                                      applymovement 0x13 0x880015F
                                      waitmovement 0x0
                                      msgbox 0x88001D2 MSG_NORMAL '"[red_fr]YELLOW: Wh-What's that?!"
                                      msgbox 0x88001F0 MSG_NORMAL '"[player]: I'll check my Pokedex[.]"

                                      showpokepic 0x194 0x0A 0x03

                                      cry 0x194 0x0
                                      msgbox 0x880020D MSG_NORMAL '"Name: KYOGRE\nSEA BASIN POKeMON\lT..."
                                      msgbox 0x880024B MSG_NORMAL '"[red_fr]YELLOW: Let's run!"
                                      hidepokepic
                                      setflag 0x200
                                      warp 0x4 0x1 0x1 0x2 0x5
                                      hidesprite 0x12
                                      setbyte2 0x2 0xFE
                                      '---------
                                      ' Strings
                                      '---------
                                      #org 0x800169
                                      = [red_fr]YELLOW: Hey [player], your here at\nlast!\p[black_fr][player]: Am I late?
                                      #org 0x8001A3
                                      = [red_fr]YELLOW: Aww[.] it had to start\nraining now.
                                      #org 0x8001D2
                                      = [red_fr]YELLOW: Wh-What's that?!
                                      #org 0x8001F0
                                      = [player]: I'll check my Pokedex[.]
                                      #org 0x80020D
                                      = Name: KYOGRE\nSEA BASIN POKeMON\lType 1:[blue_fr] WATER\l[black_fr]Type 2: -
                                      #org 0x80024B
                                      = [red_fr]YELLOW: Let's run!
                                      '-----------
                                      ' Movements
                                      '-----------
                                      #org 0x800158
                                      #raw 0x10 'Step Down (Normal)
                                      #raw 0x2 'Face Left
                                      #raw 0xFE 'End of Movements
                                      #org 0x80015C
                                      #raw 0x3 'Face Right
                                      #raw 0xFE 'End of Movements
                                      #org 0x80015F
                                      #raw 0x13 'Step Right (Normal)
                                      #raw 0x13 'Step Right (Normal)
                                      #raw 0x13 'Step Right (Normal)
                                      #raw 0x13 'Step Right (Normal)
                                      #raw 0x13 'Step Right (Normal)
                                      #raw 0x13 'Step Right (Normal)
                                      #raw 0x13 'Step Right (Normal)
                                      #raw 0x13 'Step Right (Normal)
                                      #raw 0xFE 'End of Movements


                                      Screenshots and/or Videos: http://www.youtube.com/watch?v=SUkEDlxmkpY

                                      The problem is, there's no pokepic and Yellow doesn't turn.
                                      Please? I really need this fixed. Or maybe it's un-fixable?
                                      Changes in spoiler, Kyogre pic shows up now (tested), your coordinates were of. Where did you want Yellow to turn? I didn't get that.
                                      __________________
                                      SilverCurrent is on indefinite hiatus.
                                        #545    
                                      Old March 3rd, 2009 (2:08 PM).
                                      cooley's Avatar
                                      cooley cooley is offline
                                      ///Keepin' it simple
                                      • Silver Tier
                                       
                                      Join Date: Feb 2007
                                      Location: United States
                                      Age: 22
                                      Gender: Male
                                      Nature: Impish
                                      Posts: 1,147
                                      Send a message via Windows Live Messenger to cooley
                                      Quote:
                                      Originally Posted by Shadows View Post
                                      On the tile, the player the just passes through it and nothing happens.
                                      Spoiler:
                                      '---------------
                                      #org 0x73ED9C
                                      checkflag 0x1221
                                      if 0x0 goto 0x873EDAE
                                      if 0x1 goto 0x873EDF7
                                      release
                                      end

                                      '---------------
                                      #org 0x73EDAE
                                      checkflag 0x1222
                                      if 0x1 goto 0x873EDF7
                                      playsong 0x13B 0x0
                                      showsprite 0x8
                                      applymovement 0x8 0x873EDDA
                                      trainerbattle 0x1 0xB 0x0 0x873EDFA 0x873EE04 0x873EDDF
                                      release
                                      end

                                      '---------------
                                      #org 0x73EDF7
                                      release
                                      end

                                      '---------------
                                      #org 0x73EDDF
                                      msgbox 0x873EE14 MSG_NORMAL '"???:I am [darknavyblue_fr]PURPLE.[..."
                                      fadescreen 0x1
                                      hidesprite 0x8
                                      setflag 0x1222
                                      fadescreen 0x0
                                      fadesong 0x13B
                                      release
                                      end


                                      '---------
                                      ' Strings
                                      '---------
                                      #org 0x73EDFA
                                      = ???:...

                                      #org 0x73EE04
                                      = ???:I lost?!?

                                      #org 0x73EE14
                                      = ???:I am [darknavyblue_fr]PURPLE.[black_fr]We will soon meet\nagain.


                                      '-----------
                                      ' Movements
                                      '-----------
                                      #org 0x73EDDA
                                      #raw 0x8 'Step Down (Very Slow)
                                      #raw 0x8 'Step Down (Very Slow)
                                      #raw 0xFE 'End of Movements
                                      1st, You might want to check if you set the Trigger values correctly in A-map. If they are set correctly, then you may want to check if the flags are available to use.

                                      If none of the changes I've suggested work, please reply
                                      __________________

                                        #546    
                                      Old March 4th, 2009 (9:31 AM).
                                      Blackpanfa's Avatar
                                      Blackpanfa Blackpanfa is offline
                                      ROM Buster
                                         
                                        Join Date: Nov 2008
                                        Location: England [+]
                                        Nature: Quirky
                                        Posts: 26
                                        Thanks TSK! You're a lifesaver.
                                        __________________


                                        I support:

                                        Spoiler:







                                          #547    
                                        Old March 4th, 2009 (1:48 PM).
                                        cooley's Avatar
                                        cooley cooley is offline
                                        ///Keepin' it simple
                                        • Silver Tier
                                         
                                        Join Date: Feb 2007
                                        Location: United States
                                        Age: 22
                                        Gender: Male
                                        Nature: Impish
                                        Posts: 1,147
                                        Send a message via Windows Live Messenger to cooley
                                        Quote:
                                        Originally Posted by Dragonmaster91 View Post
                                        I have only tried to make two scripts before, and they always end up like this:


                                        Here is my script:
                                        #ORG $start
                                        Lock
                                        Faceplayer
                                        message $loser
                                        $loser 1 = ...\nGo away loser.
                                        boxset 6
                                        release
                                        end
                                        _________________________
                                        #OFFSET: 0, 0
                                        Invalid Command : Lock
                                        Invalid Command : Faceplayer
                                        Invalid Command : message

                                        #INLINE: 0, 1
                                        9: Encoding text: ...\nGo away loser.
                                        Invalid Command : boxset
                                        Invalid Command : release
                                        Invalid Command : end
                                        |
                                        \- Processed 0 Lines


                                        Now it is giving him trainer music

                                        If you can guess, it goes to your rival.
                                        That means that the script wasn't compiled..Only the text was, resulting in an epic failure..

                                        Why not try XSE?
                                        __________________

                                          #548    
                                        Old March 4th, 2009 (1:52 PM).
                                        Dragonmaster91's Avatar
                                        Dragonmaster91 Dragonmaster91 is offline
                                        It's just common sense!
                                           
                                          Join Date: Apr 2008
                                          Gender: Male
                                          Nature: Adamant
                                          Posts: 220
                                          Quote:
                                          Originally Posted by cooley View Post
                                          That means that the script wasn't compiled..Only the text was, resulting in an epic failure..

                                          Why not try XSE?
                                          I went to, but I guess there just are not enough tutorials. I am not someone who like to continually test scripts...

                                          Than again, I only looked on the fist and second page of the documents... going to look again.

                                          Edit: Found a good tutorial. I am switching to XSE as of now.

                                          Edit 2: What was wrong with the script?
                                            #549    
                                          Old March 4th, 2009 (9:59 PM).
                                          ckret2's Avatar
                                          ckret2 ckret2 is offline
                                          usually pronounced "secret 2"
                                             
                                            Join Date: Dec 2008
                                            Location: You Are Here
                                            Age: 26
                                            Gender:
                                            Nature: Rash
                                            Posts: 518
                                            Send a message via AIM to ckret2
                                            GAME: FireRed
                                            TYPE: person event ("giveitem" problem)
                                            EDITOR: XSE

                                            I'm trying to make a giveitem script, and something in it is messing up. I put the section that's messing up in bold, since the rest of the script works just fine. I followed diegoisawesome's XSE tutorial, and it said that when you use "giveitem" a message box saying "PLAYER received ITEM!" will automatically pop up and you'll hear a fanfare, so you don't even need to script that part. However, when I use the script below, that never pops up. Instead, the "takeit" script just plays twice, before moving on to the "prettyexpensive" script, and it never says "[PLAYER] received ITEM!" at all. If I try to take out the 0x6 on the "msgbox @takeit" line, XSE says it's missing a parameter. If I have to, I can just add "[PLAYER] received SILPH SCOPE!" to the end of "takeit" and stick in a fanfare, but my main concern is stopping "takeit" from playing twice.

                                            SCRIPT
                                            Spoiler:
                                            #dynamic 0x31DD47
                                            #org @start
                                            lock
                                            faceplayer
                                            checkflag 0x200
                                            if 0x1 goto @ughbone
                                            msgbox @doyouwant 0x5
                                            compare 0x800D 0x1
                                            if 0x1 goto @wannasilph
                                            msgbox @finethen 0x6
                                            release
                                            end

                                            #org @doyouwant
                                            = [red_fr]Ugh[.] I just got back from a\nmission in POKéMON TOWER,\land I hurt all over[.]\pHuh? So, BONNIE's sending you?\nGood luck! You'll need it.\lLuck, and a SILPH SCOPE.\lDo you want mine?

                                            #org @finethen
                                            = [red_fr]Fine then.\nSee if I care if a wild GHOST\lsucks your soul out your ears.

                                            #org @ughbone
                                            msgbox @hurtallover 0x6
                                            release
                                            end

                                            #org @wannasilph
                                            msgbox @takeit
                                            giveitem 0x359 0x1 0x6
                                            msgbox @prettyexpensive 0x6
                                            setflag 0x200
                                            release
                                            end

                                            #org @takeit
                                            = [red_fr]Here, take it! If I don't have a SILPH SCOPE, I can't be sent on that mission again!\p

                                            #org @prettyexpensive
                                            = [black_fr][PLAYER] received SILPH SCOPE!\nLooks pretty expensive[.]\p[red_fr]Don't look so greedy. BONNIE says\nwe've only got two SILPH SCOPES.\lThe BOSS would be furious if you\lsold one, so don't even think\labout it.


                                            #org @hurtallover
                                            = [red_fr]Ugh, I feel like I broke every bone in my body[.]\pThat's what happens when you mess with CUBONE and MAROWAK.\pI'm so glad I never have to go back to POKéMON TOWER again!
                                            __________________

                                            This one is my hack.


                                            This one is the hack I part-time map for.

                                            I got an Illumise?
                                            Pretty awesome.
                                            Glad I grabbed an egg I didn't recognize.
                                              #550    
                                            Old March 5th, 2009 (12:22 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,511
                                            Quote:
                                            Originally Posted by ckret2 View Post
                                            GAME: FireRed
                                            TYPE: person event ("giveitem" problem)
                                            EDITOR: XSE

                                            I'm trying to make a giveitem script, and something in it is messing up. I put the section that's messing up in bold, since the rest of the script works just fine. I followed diegoisawesome's XSE tutorial, and it said that when you use "giveitem" a message box saying "PLAYER received ITEM!" will automatically pop up and you'll hear a fanfare, so you don't even need to script that part. However, when I use the script below, that never pops up. Instead, the "takeit" script just plays twice, before moving on to the "prettyexpensive" script, and it never says "[PLAYER] received ITEM!" at all. If I try to take out the 0x6 on the "msgbox @takeit" line, XSE says it's missing a parameter. If I have to, I can just add "[PLAYER] received SILPH SCOPE!" to the end of "takeit" and stick in a fanfare, but my main concern is stopping "takeit" from playing twice.

                                            SCRIPT
                                            Spoiler:
                                            #dynamic 0x31DD47
                                            #org @start
                                            lock
                                            faceplayer
                                            checkflag 0x200
                                            if 0x1 goto @ughbone
                                            msgbox @doyouwant 0x5
                                            compare 0x800D 0x1
                                            if 0x1 goto @wannasilph
                                            msgbox @finethen 0x6
                                            release
                                            end

                                            #org @doyouwant
                                            = [red_fr]Ugh[.] I just got back from a\nmission in POKéMON TOWER,\land I hurt all over[.]\pHuh? So, BONNIE's sending you?\nGood luck! You'll need it.\lLuck, and a SILPH SCOPE.\lDo you want mine?

                                            #org @finethen
                                            = [red_fr]Fine then.\nSee if I care if a wild GHOST\lsucks your soul out your ears.

                                            #org @ughbone
                                            msgbox @hurtallover 0x6
                                            release
                                            end

                                            #org @wannasilph
                                            msgbox @takeit
                                            giveitem 0x359 0x1 0x6
                                            msgbox @prettyexpensive 0x6
                                            setflag 0x200
                                            release
                                            end

                                            #org @takeit
                                            = [red_fr]Here, take it! If I don't have a SILPH SCOPE, I can't be sent on that mission again!\p

                                            #org @prettyexpensive
                                            = [black_fr][PLAYER] received SILPH SCOPE!\nLooks pretty expensive[.]\p[red_fr]Don't look so greedy. BONNIE says\nwe've only got two SILPH SCOPES.\lThe BOSS would be furious if you\lsold one, so don't even think\labout it.

                                            #org @hurtallover
                                            = [red_fr]Ugh, I feel like I broke every bone in my body[.]\pThat's what happens when you mess with CUBONE and MAROWAK.\pI'm so glad I never have to go back to POKéMON TOWER again!
                                            It should be givitem 0x359 0x1 0x0

                                            Use 0x0 if it's a person giving the item.
                                            Use 0x1 of the player fins the item.
                                            These are the only 2 message types that can be used with the giveitem command.
                                            __________________
                                            Pokémon Stardrop
                                            Closed Thread
                                            Quick Reply

                                            Sponsored Links
                                            Thread Tools

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

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

                                            Forum Jump


                                            All times are GMT -8. The time now is 5:23 PM.