Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.

Reply
 
Thread Tools
  #201    
Old July 1st, 2009 (8:50 AM).
Doctortux's Avatar
Doctortux Doctortux is offline
     
    Join Date: Jun 2009
    Location: PA
    Gender: Male
    Nature: Relaxed
    Posts: 78
    Wow, I cannot understand any of that. This isn't a tutorial for begginers is it? Anyways, it seems like you put a lot of effort into this so great job!
    __________________




    Click on the image above to join pokemon indigo, a great, free online pokemon game. My name on pokemon indigo is Doctortux, so once you are registered, we can be friends, trade, chat, and more. See you on pokemon indigo!
    Reply With Quote

    Relevant Advertising!

      #202    
    Old July 1st, 2009 (10:03 PM).
    bna_li's Avatar
    bna_li bna_li is offline
       
      Join Date: Oct 2003
      Location: At home
      Gender: Male
      Nature: Hasty
      Posts: 2,006
      Hi, I'm trying to get into this hacking thing. Great guide, but I'm an idiot. -______-

      I don't really get how flags work, I'm at the beginning of Ruby and I want to make those mover guys disappear. But I don't really get the flags thingies. How would I not make them disappear until I finish setting my clock? Right now they disappear if I accidentally go down.

      Edit: Eh. Where is the script help thread by the way?
      __________________
      Reply With Quote
        #203    
      Old July 4th, 2009 (2:19 PM).
      Malkner's Avatar
      Malkner Malkner is offline
      Falkner in witness protection.
         
        Join Date: Feb 2009
        Location: That is a very good question.
        Gender: Male
        Nature: Quirky
        Posts: 106
        diegoisawesome, I checked my Ruby game, and I'm pretty sure you mixed up some of those specials. You listed special 0x9C as Wally's catch, but according to the "H-help me!" script, that's actually the special for choosing your first Pokemon.

        There's a good chance I'm wrong, but somebody should look into that.
        Reply With Quote
          #204    
        Old July 5th, 2009 (1:38 AM).
        bna_li's Avatar
        bna_li bna_li is offline
           
          Join Date: Oct 2003
          Location: At home
          Gender: Male
          Nature: Hasty
          Posts: 2,006
          Can someone help me? I'm stuck and I'm only at the beginning..
          Reply With Quote
            #205    
          Old July 6th, 2009 (11:38 AM).
          ProClifo's Avatar
          ProClifo ProClifo is offline
          The Village Pirate Cat
             
            Join Date: Sep 2008
            Location: Norway
            Age: 20
            Gender: Male
            Nature: Lonely
            Posts: 90
            I have a prob too. I made Celebi wild Pokemon script in Viridian Forest, and thanks for the flag numbers, by the way. It dissapears normally when you kill it or run away from it. But when I catch it, it won't dissapear! Can someone help me and tell what to do? :/
            __________________
            Click to visit Jiggmin's Village
            Reply With Quote
              #206    
            Old July 12th, 2009 (3:46 AM).
            Haz's Avatar
            Haz Haz is offline
            Haz ya seen my hack?
               
              Join Date: Nov 2008
              Location: Australia- Aussie, Aussie, Aussie!, Oi, Oi, Oi!
              Gender: Female
              Nature: Docile
              Posts: 698
              Thanks for the tutorial, this really helped me on my hack!
              __________________
              DeviantART: Haz-Za

              Fanfiction.net: Ha-Za-A


              Credits to Galukxy for this awesome banner
              Reply With Quote
                #207    
              Old July 15th, 2009 (2:03 PM). Edited July 16th, 2009 by Rocka210.
              Rocka210's Avatar
              Rocka210 Rocka210 is offline
              The Code Never Bothered Me Anyway
                 
                Join Date: Jun 2009
                Age: 20
                Gender: Male
                Posts: 23
                I need help!


                #dynamic 0x8003D5
                #org @start
                checkflag 0x828
                if 0x0 goto @1
                if 0x1 goto @end
                end
                #org @1
                lock
                applymovement 0x01 @move
                waitmovement 0x0
                msgbox @Pine
                boxset 0x6
                applymovement 0x01 @move2
                waitmovement 0x0
                setflag 0x828
                release
                end
                #org @move
                #raw 0x03
                #raw 0x62
                #raw 0x13
                #raw 0x13
                #raw 0x11
                #raw 0xFE
                #org @move2
                #raw 0x10
                #raw 0x12
                #raw 0x12
                #org @end
                release
                end
                #org @Pine
                = Hey \v\h01!\nProf. Pine wanted to see you\nIt was something about getting your\nfirst pokemon.

                This script is supposed to make the person walk 2 steps right and 2 steps up then say the script
                and walk back to the beggining area

                What did I do wrong

                PS Please tell me the best XSE tutorial you've seen I'm not a great scripter
                __________________

                LET IT GO!!!!

                System.Console.WriteLine("The code never bothered me anyway.");

                Twitter | YouTube | Steam | PHO
                Reply With Quote
                  #208    
                Old July 15th, 2009 (10:33 PM).
                Excalibur's Avatar
                Excalibur Excalibur is offline
                Sorry for my english...
                   
                  Join Date: Nov 2008
                  Age: 25
                  Gender: Male
                  Nature: Lonely
                  Posts: 19
                  Rocka210,
                  1. replace ??? with person event number (in A-map)
                  2. Yes, it possible. In your script after setflag 0x828 write "setvar 0x???? 0x1" (replace ???? with your variable, like 0x5001 or other), and then go to script events in A-map and choose your script event. Then write your variable in the "Var. number" and save your map and compile your script.
                  Reply With Quote
                    #209    
                  Old July 21st, 2009 (10:30 AM). Edited July 21st, 2009 by Larvitar170.
                  Larvitar170's Avatar
                  Larvitar170 Larvitar170 is offline
                  Noobie hacker
                     
                    Join Date: Jul 2009
                    Location: Kentucky.
                    Gender: Male
                    Nature: Modest
                    Posts: 66
                    Okay. I am editing the post, since I change the idea I had. Is there anyway to mix apply movement and trainer battle? I tried, but it won't work at all. Here is the script I tried. I would appreciate any help if someone can spare the time.

                    '---------------
                    #dynamic 0x000064
                    #org 0x000064
                    applymovement 0x1 0x2D51C3
                    waitmovement 0x0
                    return

                    '---------------
                    #dynamic 0x000005
                    trainerbattle 0x0 0x001 0x0 $before $after
                    msgbox @lost 0x6
                    release
                    end

                    '---------------
                    #dynamic 0x00007F
                    applymovement 0x1 0x2D51C3
                    waitmovement 0x0
                    return

                    #org $before
                    = [Brandon] Hey, have you seen my partner?\nHe has brown hair and a Totodile.\pNevermind, let's just battle!

                    #org $after
                    = No...I never lose...\nMy Herecross was just worn out.

                    #org @lost
                    = Well...I'll win next time!\nNow where could Miles have gone...

                    '-----------
                    ' Movements
                    '-----------
                    #org 0x720CB4
                    #raw 0x10
                    #raw 0x10
                    #raw 0x10
                    #raw 0x10
                    #raw 0x10
                    #raw 0x10
                    #raw 0x10
                    #raw 0x13
                    #raw 0x13
                    #raw 0x13
                    #raw 0xFE

                    #org 0x720CB4
                    #raw 0x13
                    #raw 0x13
                    #raw 0x13
                    #raw 0x11
                    #raw 0x11
                    #raw 0x11
                    #raw 0x11
                    #raw 0x11
                    #raw 0x11
                    #raw 0x11
                    #raw 0x11
                    #raw 0xFE
                    __________________
                    Current project: Pokemon Mud Brown (Working Title, will be changed.)
                    No link because I haven't made a page for it yet.
                    Team: Myself as mapper, scripter, and spriter.Brandinokthx as spriter.

                    Reply With Quote
                      #210    
                    Old July 23rd, 2009 (1:05 PM).
                    Gold Man's Avatar
                    Gold Man Gold Man is offline
                       
                      Join Date: Mar 2009
                      Gender:
                      Posts: 54
                      Can you cerrent my script:
                      '-----------------------
                      #org 0x800A3D
                      lock
                      checkflag 0x828
                      if 0x1 goto 0x8800A96
                      checkgender
                      compare LASTRESULT 0x0
                      if 0x1 goto 0x8800A60
                      compare LASTRESULT 0x1
                      if 0x1 goto 0x8800A7B
                      end
                      '-----------------------
                      #org 0x800A96
                      hidesprite 0x1
                      end
                      '-----------------------
                      #org 0x800A60
                      givepokemon 0x88 0x5 0x0 0x0 0x0 0x0
                      msgbox 0x8800A9B '"[player]: This must be oak's\n poke..."
                      setflag 0x828
                      release
                      end
                      '-----------------------
                      #org 0x800A7B
                      givepokemon 0x87 0x5 0x0 0x0 0x0 0x0
                      msgbox 0x8800A9B '"[player]: This must be oak's\n poke..."
                      setflag 0x828
                      release
                      end

                      '---------
                      ' Strings
                      '---------
                      #org 0x800A9B
                      = [player]: This must be oak's\n pokemon I better take it to him.

                      What's I want to happen is you find a pokeball and get pokemon deppening on your gender and then it says:[player]: This must be oak's pokemon I better take it to him. after that the pokeball disappears and you keep going but the pokeball disappears untill you walk 1 step then it reappears can you help me?
                      Reply With Quote
                        #211    
                      Old July 23rd, 2009 (1:39 PM).
                      Diegoisawesome's Avatar
                      Diegoisawesome Diegoisawesome is offline
                      Oh god the bees
                      • Silver Tier
                       
                      Join Date: Dec 2007
                      Location: :noitacoL
                      Age: 20
                      Gender: Male
                      Nature: Naive
                      Posts: 1,032
                      Quote:
                      Originally Posted by Gold Man View Post
                      Can you cerrent my script:
                      '-----------------------
                      #org 0x800A3D
                      lock
                      checkflag 0x828
                      if 0x1 goto 0x8800A96
                      checkgender
                      compare LASTRESULT 0x0
                      if 0x1 goto 0x8800A60
                      compare LASTRESULT 0x1
                      if 0x1 goto 0x8800A7B
                      end
                      '-----------------------
                      #org 0x800A96
                      hidesprite 0x1
                      end
                      '-----------------------
                      #org 0x800A60
                      givepokemon 0x88 0x5 0x0 0x0 0x0 0x0
                      msgbox 0x8800A9B '"[player]: This must be oak's\n poke..."
                      setflag 0x828
                      release
                      end
                      '-----------------------
                      #org 0x800A7B
                      givepokemon 0x87 0x5 0x0 0x0 0x0 0x0
                      msgbox 0x8800A9B '"[player]: This must be oak's\n poke..."
                      setflag 0x828
                      release
                      end

                      '---------
                      ' Strings
                      '---------
                      #org 0x800A9B
                      = [player]: This must be oak's\n pokemon I better take it to him.

                      What's I want to happen is you find a pokeball and get pokemon deppening on your gender and then it says:[player]: This must be oak's pokemon I better take it to him. after that the pokeball disappears and you keep going but the pokeball disappears untill you walk 1 step then it reappears can you help me?
                      Give the Poké Ball a People ID of 0828. That should fix your problem.
                      __________________


                      My other resources:
                      My Website
                      diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
                      diegoisawesome's Miscellaneous Finds
                      The Ruins of Alph Puzzles
                      Diego's Miscellaneous Patches
                      GBA Intro Manager
                      The Secret Sauce: Triple-Layer Tiles
                      Reply With Quote
                        #212    
                      Old July 23rd, 2009 (2:20 PM). Edited July 23rd, 2009 by Gold Man.
                      Gold Man's Avatar
                      Gold Man Gold Man is offline
                         
                        Join Date: Mar 2009
                        Gender:
                        Posts: 54
                        Ya but I forgot to say that the talking part dosen't come up what do I do about that?
                        Reply With Quote
                          #213    
                        Old July 23rd, 2009 (3:05 PM).
                        Diegoisawesome's Avatar
                        Diegoisawesome Diegoisawesome is offline
                        Oh god the bees
                        • Silver Tier
                         
                        Join Date: Dec 2007
                        Location: :noitacoL
                        Age: 20
                        Gender: Male
                        Nature: Naive
                        Posts: 1,032
                        Quote:
                        Originally Posted by Gold Man View Post
                        Ya but I forgot to say that the talking part dosen't come up what do I do about that?
                        Since, apparently, you're using the old version of XSE, either update to the new one and put 0x2 after your msgbox command or put boxset 0x2 under the msgbox command if you don't want to update it for whatever reason.
                        __________________


                        My other resources:
                        My Website
                        diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
                        diegoisawesome's Miscellaneous Finds
                        The Ruins of Alph Puzzles
                        Diego's Miscellaneous Patches
                        GBA Intro Manager
                        The Secret Sauce: Triple-Layer Tiles
                        Reply With Quote
                          #214    
                        Old July 23rd, 2009 (3:43 PM).
                        Gold Man's Avatar
                        Gold Man Gold Man is offline
                           
                          Join Date: Mar 2009
                          Gender:
                          Posts: 54
                          Well when I put boxset 6 when I closed it and open it, it change my script into the one that dosn't work and it did that all by it self. And what do you mean by put 0x2 after your msgbox command?

                          Sorry about that my scripts never work
                          Reply With Quote
                            #215    
                          Old July 23rd, 2009 (4:17 PM).
                          Diegoisawesome's Avatar
                          Diegoisawesome Diegoisawesome is offline
                          Oh god the bees
                          • Silver Tier
                           
                          Join Date: Dec 2007
                          Location: :noitacoL
                          Age: 20
                          Gender: Male
                          Nature: Naive
                          Posts: 1,032
                          Quote:
                          Originally Posted by Gold Man View Post
                          Well when I put boxset 6 when I closed it and open it, it change my script into the one that dosn't work and it did that all by it self. And what do you mean by put 0x2 after your msgbox command?

                          Sorry about that my scripts never work
                          Did you recompile with dynamic offsets or static? If static, then you overwrote some stuff from one part of your script with another. Try repointing the first part to a different offset.
                          __________________


                          My other resources:
                          My Website
                          diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
                          diegoisawesome's Miscellaneous Finds
                          The Ruins of Alph Puzzles
                          Diego's Miscellaneous Patches
                          GBA Intro Manager
                          The Secret Sauce: Triple-Layer Tiles
                          Reply With Quote
                            #216    
                          Old July 23rd, 2009 (7:27 PM).
                          lugia386 lugia386 is offline
                             
                            Join Date: Jul 2009
                            Gender: Male
                            Posts: 2
                            very usefull... how ever, how come no one ever ****ing tells you how to add new events, i cant for the LIFE of me, figure out how, apparantly it must be "easy" if no one will say how, but why? I dont know how, it is vital information for absolute beginners like my self.
                            Reply With Quote
                              #217    
                            Old July 23rd, 2009 (8:17 PM).
                            .Seth's Avatar
                            .Seth .Seth is offline
                            .explorer.
                            • Crystal Tier
                             
                            Join Date: Jun 2008
                            Location: A capacitor in a power supply board.
                            Gender: Male
                            Nature: Quiet
                            Posts: 1,645
                            Quote:
                            Originally Posted by lugia386 View Post
                            very usefull... how ever, how come no one ever ****ing tells you how to add new events, i cant for the LIFE of me, figure out how, apparantly it must be "easy" if no one will say how, but why? I dont know how, it is vital information for absolute beginners like my self.
                            Watch that language. :o

                            In A-Map, you go to a map, click the "Events" tab, then at the bottom of the right sidebar, you change the number of the events and hit Apply, or OK, whatever it may be.

                            Then you click the event tile after position it, and add it's offset etc.
                            Reply With Quote
                              #218    
                            Old July 23rd, 2009 (9:41 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 非常に高いレベル View Post
                              Watch that language. :o

                              In A-Map, you go to a map, click the "Events" tab, then at the bottom of the right sidebar, you change the number of the events and hit Apply, or OK, whatever it may be.

                              Then you click the event tile after position it, and add it's offset etc.
                              Is there an easier to understand explanation?\Sarcasm
                              Anyway, here's a tip to some people. Whenever you create a script and test it in-game, and it is destroyed, it means it either hit other parts of the game's data, or overwrote a previous script. Solution: Simple, save the script before compiling, and if it is bad in-game, use a different offset.

                              Of course, that is for the newbs\noobs.

                              Spoiler:
                              Technically, I am a noob. But lately, I have really gotten a grasp on MANY things. Pretty much\Almost everything but creating sprites.
                              Reply With Quote
                                #219    
                              Old July 24th, 2009 (2:31 AM).
                              flamezy boi flamezy boi is offline
                                 
                                Join Date: Jul 2009
                                Gender: Male
                                Posts: 12
                                Quote:
                                Originally Posted by Dragonmaster91 View Post
                                Is there an easier to understand explanation?\Sarcasm
                                Anyway, here's a tip to some people. Whenever you create a script and test it in-game, and it is destroyed, it means it either hit other parts of the game's data, or overwrote a previous script. Solution: Simple, save the script before compiling, and if it is bad in-game, use a different offset.

                                Of course, that is for the newbs\noobs.

                                Spoiler:
                                Technically, I am a noob. But lately, I have really gotten a grasp on MANY things. Pretty much\Almost everything but creating sprites.
                                SOME 1 ANY 1 PLEASE!!!!! HELP i have been trying all day...

                                #dynamic 0x800018

                                #org @start
                                lock
                                faceplayer
                                msgbox @1 0x6
                                release
                                end

                                #org @1
                                = Hi.
                                ^i wuld try that and many other ways but when i go on the emulator the sprite
                                doesnt respond at all....
                                Reply With Quote
                                  #220    
                                Old July 24th, 2009 (2:46 AM).
                                Cynder The Bloody Angel's Avatar
                                Cynder The Bloody Angel Cynder The Bloody Angel is offline
                                   
                                  Join Date: Apr 2009
                                  Posts: 193
                                  ... WOOOOOOOW THAT is a tutorial ! man thanks a lot !
                                  Reply With Quote
                                    #221    
                                  Old July 24th, 2009 (10:10 AM).
                                  lugia386 lugia386 is offline
                                     
                                    Join Date: Jul 2009
                                    Gender: Male
                                    Posts: 2
                                    i thought this tutorial could help but i guess its just me who fails...
                                    i tried to do what it said, and the stuff doesnt work...
                                    i try looking for what i needed to change, and it wasn't here....
                                    i'm about ready to give up on hacking, becuase i can't get the help i need...
                                    if some one can help me out live, over msn, or something, because i need some actual personal training on this stuff, cause i am ALWAYS running into problems that arent explained here, or as far as i know, anywhere...
                                    my email is [email protected]
                                    if and one wants to help me, please, please email me! I would be eternaly greatful!
                                    Reply With Quote
                                      #222    
                                    Old July 24th, 2009 (10:53 AM).
                                    .Seth's Avatar
                                    .Seth .Seth is offline
                                    .explorer.
                                    • Crystal Tier
                                     
                                    Join Date: Jun 2008
                                    Location: A capacitor in a power supply board.
                                    Gender: Male
                                    Nature: Quiet
                                    Posts: 1,645
                                    Quote:
                                    Originally Posted by Dragonmaster91 View Post
                                    Is there an easier to understand explanation?\Sarcasm
                                    Anyway, here's a tip to some people. Whenever you create a script and test it in-game, and it is destroyed, it means it either hit other parts of the game's data, or overwrote a previous script. Solution: Simple, save the script before compiling, and if it is bad in-game, use a different offset.

                                    Of course, that is for the newbs\noobs.

                                    Spoiler:
                                    Technically, I am a noob. But lately, I have really gotten a grasp on MANY things. Pretty much\Almost everything but creating sprites.
                                    It really can't get any simpler than that.
                                    I mean, seriously.

                                    Quote:
                                    Originally Posted by flamezy boi View Post
                                    SOME 1 ANY 1 PLEASE!!!!! HELP i have been trying all day...

                                    #dynamic 0x800018

                                    #org @start
                                    lock
                                    faceplayer
                                    msgbox @1 0x6
                                    release
                                    end

                                    #org @1
                                    = Hi.
                                    ^i wuld try that and many other ways but when i go on the emulator the sprite
                                    doesnt respond at all....
                                    You have to put in the offset in A-map, if you didn't. Also, here is the corrected script:

                                    Code:
                                    #dynamic 0x 800000
                                    
                                    #org @start
                                    msgbox @1 0x2
                                    end
                                    
                                    #org @1
                                    = Hi.
                                    Simple, eh?
                                    0x2 has lock and faceplayer built-in, so it's more stable.

                                    Quote:
                                    Originally Posted by lugia386 View Post
                                    i thought this tutorial could help but i guess its just me who fails...
                                    i tried to do what it said, and the stuff doesnt work...
                                    i try looking for what i needed to change, and it wasn't here....
                                    i'm about ready to give up on hacking, becuase i can't get the help i need...
                                    if some one can help me out live, over msn, or something, because i need some actual personal training on this stuff, cause i am ALWAYS running into problems that arent explained here, or as far as i know, anywhere...
                                    my email is [email protected]
                                    if and one wants to help me, please, please email me! I would be eternaly greatful!
                                    Well, there's a tutoring section over in the main ROM Hacking section. Try signing up for Simple Scripting there.

                                    I'm sure you can find a tutor.
                                    Though, if you can't, just try editing a script. Like making it say something else.
                                    Then move on to actually creating a script, if that way works for you.
                                    Reply With Quote
                                      #223    
                                    Old July 25th, 2009 (11:56 AM). Edited July 26th, 2009 by Gold Man.
                                    Gold Man's Avatar
                                    Gold Man Gold Man is offline
                                       
                                      Join Date: Mar 2009
                                      Gender:
                                      Posts: 54
                                      Umm I found an update of xse but it toke away the
                                      '---------------
                                      #org 0x800A9B
                                      = [player]: This must be oak's\n pokemon I better take it to him.

                                      Part can you help me?

                                      Never mind I figriad it out.
                                      Ps: the talking sill dosn't come up and the update of xse change my script to this:
                                      '---------------
                                      #org 0x800A3D
                                      lock
                                      checkflag 0x828
                                      if 0x1 goto 0x8800A96
                                      checkgender
                                      compare LASTRESULT 0x0
                                      if 0x1 goto 0x8800A60
                                      compare LASTRESULT 0x1
                                      if 0x1 goto 0x8800A7B
                                      end
                                      '---------------
                                      #org 0x800A96
                                      hidesprite 0x1
                                      end
                                      '---------------
                                      #org 0x800A60
                                      givepokemon 0x88 0x5 0x0 0x0 0x0 0x0
                                      loadpointer 0x0 0x8800A9B '"[player]: This must be oak's\n pok..."
                                      setflag 0x828
                                      release
                                      end
                                      '---------------
                                      #org 0x800A7B
                                      givepokemon 0x87 0x5 0x0 0x0 0x0 0x0
                                      loadpointer 0x0 0x8800A9B '"[player]: This must be oak's\n pok..."
                                      setflag 0x828
                                      release
                                      end

                                      '---------
                                      ' Strings
                                      '---------
                                      #org 0x800A9B
                                      = [player]: This must be oak's\n pokemon I better take it to him.
                                      Reply With Quote
                                        #224    
                                      Old July 26th, 2009 (6:33 AM).
                                      quickfire quickfire is offline
                                         
                                        Join Date: Jul 2009
                                        Gender: Male
                                        Posts: 7
                                        How does XSE work? Everytime I try to type in a script and try to compile, it always tells me unknown word at such-and-such line. Thats with EVERY thing I try.
                                        Reply With Quote
                                          #225    
                                        Old July 26th, 2009 (7:28 AM). Edited July 26th, 2009 by Dragonmaster91.
                                        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 非常に高いレベル View Post
                                          It really can't get any simpler than that.
                                          I mean, seriously.
                                          Hence the /sarcasm line there.

                                          Quote:
                                          Originally Posted by quickfire View Post
                                          How does XSE work? Everytime I try to type in a script and try to compile, it always tells me unknown word at such-and-such line. Thats with EVERY thing I try.
                                          Maybe you should fix the thing on that line.

                                          Here is a script, a level script:

                                          Code:
                                          #org 0x3CA314
                                          showsprite 0x3
                                          showsprite 0x6
                                          setvar 0x7000 0x1
                                          msgbox 0x83CA37D MSG_YESNO
                                          compare LASTRESULT 0x1
                                          if 0x1 goto 0x83CA33B
                                          setflag 0x207
                                          loadpointer 0x0 0x83CA3A3
                                          applymovement MOVE_PLAYER 0x83CA496
                                          waitmovement 0xFF
                                          trainerbattle 0x0 0x2 0x0 0x83CA3D5 0x83CA3F9
                                          setflag 0x208
                                          msgbox 0x83CA421 MSG_NORMAL
                                          applymovement 0x3 0x83CA499
                                          hidesprite 0x3
                                          msgbox 0x83CA45C MSG_NORMAL
                                          applymovement 0x6 0x83CA4A1
                                          hidesprite 0x6
                                          release
                                          end
                                          
                                          #org 0x3CA33B
                                          applymovement MOVE_PLAYER 0x83CA496
                                          waitmovement 0xFF
                                          trainerbattle 0x0 0x2 0x0 0x83CA3D5 0x83CA3F9
                                          setflag 0x208
                                          msgbox 0x83CA421 MSG_NORMAL
                                          applymovement 0x3 0x83CA499
                                          hidesprite 0x3
                                          msgbox 0x83CA45C MSG_NORMAL
                                          applymovement 0x6 0x83CA4A1
                                          hidesprite 0x6
                                          release
                                          end
                                          
                                          #org 0x3CA37D
                                          = Prof. Oak: Are you ready to battle?
                                          
                                          #org 0x3CA3A3
                                          = Prof. Oak: Ok, well step up when\nyou are ready.
                                          
                                          #org 0x3CA3D5
                                          = [rival]: So you think you can\nbeat me?
                                          
                                          #org 0x3CA3F9
                                          = [rival]: How can a loser like you\nbeat me?
                                          
                                          #org 0x3CA421
                                          = Professor Oak: I will be in the\ncave if anyone needs me.
                                          
                                          #org 0x3CA45C
                                          = [rival]: Gramps, wait!\pI want to give you back this\npokemon!
                                          
                                          #org 0x3CA496
                                          #raw 0x11
                                          #raw 0xFE
                                          
                                          #org 0x3CA499
                                          #raw 0x11
                                          #raw 0x11
                                          #raw 0x11
                                          #raw 0x12
                                          #raw 0x12
                                          #raw 0x12
                                          #raw 0xFE
                                          
                                          #org 0x3CA4A1
                                          #raw 0x11
                                          #raw 0x11
                                          #raw 0x12
                                          #raw 0x12
                                          #raw 0x12
                                          #raw 0x12
                                          #raw 0x12
                                          #raw 0x12
                                          #raw 0xFE
                                          When I beat him, I just get asked the question again. If I say yes that time, it will continue, then ask me the question AGAIN. If I say no, it does the step up thing, and then repeats. I actually need help again. Can anyone figure it out?

                                          Edit: Figured it out. Set a variable at the end of the script to 0x2. Say you use setvar 0x7000 0x1 in the previous script. In order for it to work only AFTER you set the var, go to the part where you enter the variable normally, and in value, put in 0001. In order for the script to only happen once, and not repeat forever and ever, you have to use setvar 0x7000 0x2. That's right, 0x2. Giving it a different value, makes the script not happen because the script only works if the value is set to...


                                          0x1!

                                          Guess that's kind of an important part of the tut. Diego, you should add this to the level script tutorial.
                                          Reply With Quote
                                          Reply
                                          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 6:51 PM.