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

Closed Thread
 
Thread Tools
  #76    
Old September 20th, 2008 (3:17 AM).
-DarK- -DarK- is offline
Hold Your Colour
     
    Join Date: Jun 2007
    Location: Belgium
    Age: 24
    Gender: Male
    Nature: Brave
    Posts: 185
    I'm having trouble with the giveitem script:

    Code:
    #Dynamic 0x9A6740
    
    #org @start
    checkflag 0x201
    if b_true goto @gone
    lock
    faceplayer
    giveitem 0x3 0x5 0x0
    setflag 0x201
    release
    end
    
    #org @gone
    hidesprite 0x8
    end
    What's wrong?
    __________________

    Relevant Advertising!

      #77    
    Old October 7th, 2008 (9:34 PM).
    Zaptinex's Avatar
    Zaptinex Zaptinex is offline
       
      Join Date: May 2008
      Location: USA
      Gender:
      Posts: 43
      Ive learned everything in this tutorail along with combinig things like movemnt, flags, give pokemon, and such. How do i move to more advanced scripting with different commands and examples? Do you suggest any specific tutorials?
        #78    
      Old October 9th, 2008 (4:33 AM).
      pool92 pool92 is offline
         
        Join Date: Jul 2007
        Nature: Adamant
        Posts: 8
        Good tutorial ;) Compliments!
          #79    
        Old October 9th, 2008 (2:01 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
        Zaptinex, If I haven't learned it yet, it won't be on the tutorial. Sorry for any inconvenience.

        pool92, Thanks. I worked pretty hard putting it together.
          #80    
        Old October 9th, 2008 (2:07 PM).
        Chimchar 9's Avatar
        Chimchar 9 Chimchar 9 is offline
        (:
        • Silver Tier
         
        Join Date: Jan 2008
        Location: England, London
        Age: 23
        Gender: Male
        Nature: Calm
        Posts: 1,618
        when i put in the pickachu hex thing it turns out its a vulpix .
        do you know why ?
        it might be wrong
        __________________
        Pokemon Green Diamond
        Status: cancelled
          #81    
        Old October 9th, 2008 (2:09 PM).
        Shadows's Avatar
        Shadows Shadows is offline
           
          Join Date: Jul 2008
          Location: Chicago, IL
          Age: 21
          Nature: Calm
          Posts: 857
          Quote:
          Originally Posted by Lucario 9 View Post
          when i put in the pickachu hex thing it turns out its a vulpix .
          do you know why ?
          it might be wrong
          Pikachu's hex no. is 19
          Try that instead.

          Also, how's this hack doing?
          __________________
            #82    
          Old October 9th, 2008 (5:37 PM).
          Satoshi Sugimori's Avatar
          Satoshi Sugimori Satoshi Sugimori is offline
          Hermit
             
            Join Date: Dec 2006
            Location: Tokyo, Japan
            Age: 24
            Gender: Male
            Nature: Timid
            Posts: 862
            Quote:
            Originally Posted by T View Post
            Pikachu's hex no. is 19
            Try that instead.

            Also, how's this hack doing?
            Pikachu's number is 25
            __________________
              #83    
            Old October 11th, 2008 (3:23 AM).
            Pokepal17's Avatar
            Pokepal17 Pokepal17 is offline
            More cowbell~
            • Silver Tier
             
            Join Date: Oct 2008
            Location: Steeltown
            Age: 22
            Gender: Male
            Nature: Modest
            Posts: 1,511
            DarkSalamence
            Change hidesprite 0x8 to hidesprite 0x201
            __________________
            Pokémon Stardrop
              #84    
            Old October 11th, 2008 (9:25 AM).
            Spherical Ice's Avatar
            Spherical Ice Spherical Ice is offline
            • Moderator
            • Silver Tier
             
            Join Date: Nov 2007
            Location: Bristol, UK
            Age: 19
            Posts: 5,202
            With Yes/No commands, could you change the options?

            (E.g. Someone asks what your favourite type is. Options:
            Fire
            Water
            Grass

            Could it work?)

            Sorry for being a n00b ('cause I am one, with hacking...)
            __________________

            A Pokemon that is discriminated!
            Support squirtle and make it everyone's favourite.
              #85    
            Old October 11th, 2008 (5:52 PM).
            hot_kage's Avatar
            hot_kage hot_kage is offline
            I am like a rose cute and calm
               
              Join Date: Oct 2008
              Location: Long Beach , California
              Age: 24
              Gender:
              Nature: Naughty
              Posts: 35
              Quote:
              Originally Posted by Seth-kun View Post
              Welcome!
              This is my XSE tutorial.
              It will cover most all the commands.
              Don't take this without my permission.
              Credit to Darthatron for the overview and basic tut. on XSE.
              Credit to -Hackmew- for making XSE.
              Credit to everybody that supports XSE!



              Umm...I Have A problem Everytime i try to compile my script it gives me this
              "Error 13 'Type mismatch' in file
              C: \PokeHacks\Snowdrift\Scripts\PROF.rbc on line 1 missing #define or perimeter.

              Line: dynamic 0xoffset"


              any help plz :\
                #86    
              Old October 11th, 2008 (7:59 PM).
              Darthatron's Avatar
              Darthatron Darthatron is offline
              巨大なトロール。
              • Silver Tier
               
              Join Date: Jan 2006
              Location: Melbourne, Australia
              Age: 25
              Gender: Male
              Nature: Modest
              Posts: 1,152
              Quote:
              Originally Posted by hot_kage View Post
              Umm...I Have A problem Everytime i try to compile my script it gives me this
              "Error 13 'Type mismatch' in file
              C: \PokeHacks\Snowdrift\Scripts\PROF.rbc on line 1 missing #define or perimeter.

              Line: dynamic 0xoffset"


              any help plz :\
              You're meant to use an offset, not the text "offset". -.-

              Did you actually ready the guide? Or did you just copy/paste?
              __________________
              あなた は しきしゃ です
              わたし は ばか です
                #87    
              Old October 12th, 2008 (5:23 AM).
              hot_kage's Avatar
              hot_kage hot_kage is offline
              I am like a rose cute and calm
                 
                Join Date: Oct 2008
                Location: Long Beach , California
                Age: 24
                Gender:
                Nature: Naughty
                Posts: 35
                Quote:
                Originally Posted by Darthatron View Post
                You're meant to use an offset, not the text "offset". -.-
                Did you actually ready the guide? Or did you just copy/paste?
                yeah i did but i made a compiling error but i fixed it
                  #88    
                Old October 14th, 2008 (8:05 AM). Edited October 14th, 2008 by angelas.
                angelas's Avatar
                angelas angelas is offline
                   
                  Join Date: Jun 2008
                  Posts: 66
                  Hey! I just gotten into scripting but still am unsure of a few things.

                  I wanted to start out with something simple though, just a basic movement/text script so I won't leave town without the first badge.

                  Here it is: Decreasing size so it won't take up space. (am unsure on how to do spoiler..)

                  #Dynamic 0x194
                  #org @BadgeOne
                  checkflag 0x820
                  if 0x0 goto @needbadge1
                  if 0x1 goto @havebadge1
                  end
                  #org @needbadge1
                  lock
                  msgbox @nobadge
                  boxset 0x6
                  applymovement 0xEventNumber @goback
                  waitmovement 0x0
                  release
                  end
                  #org @nobadge
                  = Wait, I don't have a badge/nwithout that I can't go!
                  #org @goback
                  #raw 0x03
                  #raw 0x07
                  #raw 0x07
                  #raw 0x00
                  #raw 0x04
                  #raw 0x04
                  #raw 0x04
                  #raw 0x04
                  #raw 0xFE
                  #org @havebadge1
                  release
                  end

                  The part that confused me is the event number

                  "applymovement 0xEventNumber @goback"

                  Put as 0xFF in the tutorial. How exactly am I supposed to know what event I'm using, or how to find which I'm using? I might have later questions but I'll try to compile them all into one post next time. I just wanted to know this to start off. Also, am I making any other mistakes?

                  Edit: This is just a mess-around script btw. The offset isn't real, but the rest of it is. (Besides the Event Number which confused me)

                  -h20
                    #89    
                  Old November 7th, 2008 (4:54 AM).
                  sab's Avatar
                  sab sab is offline
                  Now too much of a life.
                     
                    Join Date: Jul 2008
                    Location: Midgar
                    Age: 21
                    Gender: Male
                    Nature: Timid
                    Posts: 995
                    I have a script that is supposed to give you a celebi at level 80. I know it has no flag...But the problem is that it dosn't make a text box appear.Here is the script:

                    '-----------------------
                    #org 0xFFFF30
                    lock
                    msgbox 0x871AA90 '"Here is a celebi.\nI have grown old..."
                    faceplayer
                    givepokemon 0xFB 0x50 0x0 0x0 0x0 0x0
                    setflag 0x828
                    release
                    end

                    '---------
                    ' Strings
                    '---------
                    #org 0x71AA90
                    = Here is a celebi.\nI have grown old and\ndon't need it any more.
                    __________________
                      #90    
                    Old November 7th, 2008 (5:08 AM).
                    Satoshi Sugimori's Avatar
                    Satoshi Sugimori Satoshi Sugimori is offline
                    Hermit
                       
                      Join Date: Dec 2006
                      Location: Tokyo, Japan
                      Age: 24
                      Gender: Male
                      Nature: Timid
                      Posts: 862
                      Quote:
                      Originally Posted by sab View Post
                      I have a script that is supposed to give you a celebi at level 80. I know it has no flag...But the problem is that it dosn't make a text box appear.Here is the script:

                      '-----------------------
                      #org 0xFFFF30
                      lock
                      msgbox 0x871AA90 '"Here is a celebi.\nI have grown old..."
                      faceplayer
                      givepokemon 0xFB 0x50 0x0 0x0 0x0 0x0
                      setflag 0x828
                      release
                      end

                      '---------
                      ' Strings
                      '---------
                      #org 0x71AA90
                      = Here is a celebi.\nI have grown old and\ndon't need it any more.
                      Try this:
                      #dynamic 0x[offset]

                      #org @start
                      lock
                      faceplayer
                      message @1
                      boxset 6
                      givepokemon 0xFB 0x50 0x0 0x0 0x0 0x0
                      message @2
                      boxset 6

                      release
                      end

                      #org @1
                      = Here is a celebi.\nI have grown old and\ndon't need it any more.

                      #org @2
                      = \v\h01 received Celebi!


                      Dunno if you want the italic in to? cuz givepokemon command doesn't automaticly says player received bla bla..
                      __________________
                        #91    
                      Old November 8th, 2008 (12:24 PM).
                      sab's Avatar
                      sab sab is offline
                      Now too much of a life.
                         
                        Join Date: Jul 2008
                        Location: Midgar
                        Age: 21
                        Gender: Male
                        Nature: Timid
                        Posts: 995
                        Thanks, It works great!!!!
                        __________________
                          #92    
                        Old November 10th, 2008 (6:10 PM). Edited November 10th, 2008 by Bluewarwolf.
                        Bluewarwolf's Avatar
                        Bluewarwolf Bluewarwolf is offline
                        Teh n00b haxorz
                           
                          Join Date: Nov 2008
                          Gender:
                          Nature: Adamant
                          Posts: 25
                          Ok I have some n00b questions.......

                          Is it possible to just erase all the bytes from the game, and start new?
                          And how do you mix messages with giving Pokemon/items? Such as: "Here, take this Pokemon" and he gives you a Pokemon. I also don't understand how to actually end it..... when I tested your examples, I just kept getting the Pokemon over and over.

                          I tried mixing messages with giving, but when I compiled it, it only did the messages and didn't play music to get Pokemon, and didn't say "You got suchandsuch"


                          What's wrong with this script? I haven't been able to get it to work..... all the person does is just stand there, and nothing happens. Also, no other script works either One other thing..... is it normal that when you start the game after scripting, that the game is a little.... "laggy" I guess you'd say? Like, I can press Left and my character goes Left twice or all the way, even if I let go. Just an example. Anyway, here's the script:


                          #dynamic 0x71B69C

                          #org @start
                          lock
                          faceplayer
                          message @1
                          boxset 0x6
                          givepokemon 0x6 0x5 0x0 0x0 0x0 0x0
                          message @2
                          boxset 0x6
                          release
                          end

                          #org @1
                          = Have a Charizard\n, on the house

                          #org @2
                          = You got Charizard!\nWhat a nice guy.
                          __________________


                            #93    
                          Old November 11th, 2008 (4:44 AM).
                          sab's Avatar
                          sab sab is offline
                          Now too much of a life.
                             
                            Join Date: Jul 2008
                            Location: Midgar
                            Age: 21
                            Gender: Male
                            Nature: Timid
                            Posts: 995
                            Quote:
                            Originally Posted by Bluewarwolf View Post
                            Ok I have some n00b questions.......

                            Is it possible to just erase all the bytes from the game, and start new?
                            And how do you mix messages with giving Pokemon/items? Such as: "Here, take this Pokemon" and he gives you a Pokemon. I also don't understand how to actually end it..... when I tested your examples, I just kept getting the Pokemon over and over.

                            I tried mixing messages with giving, but when I compiled it, it only did the messages and didn't play music to get Pokemon, and didn't say "You got suchandsuch"

                            What's wrong with this script? I haven't been able to get it to work..... all the person does is just stand there, and nothing happens. Also, no other script works either One other thing..... is it normal that when you start the game after scripting, that the game is a little.... "laggy" I guess you'd say? Like, I can press Left and my character goes Left twice or all the way, even if I let go. Just an example. Anyway, here's the script:


                            #dynamic 0x71B69C

                            #org @start
                            lock
                            faceplayer
                            message @1
                            boxset 0x6
                            givepokemon 0x6 0x5 0x0 0x0 0x0 0x0
                            message @2
                            boxset 0x6
                            release
                            end

                            #org @1
                            = Have a Charizard\n, on the house

                            #org @2
                            = You got Charizard!\nWhat a nice guy.
                            I'm new at this to but I've read enough to know that this has to do with a problem with the flags. (that is if it has any) To mixscripts (like giving a pokemon and then warping)you put the warp script right in front of the release end.
                            __________________
                              #94    
                            Old November 11th, 2008 (6:31 AM).
                            HackMew's Avatar
                            HackMew HackMew is offline
                            Mewtwo Strikes Back
                            • Crystal Tier
                             
                            Join Date: Jun 2006
                            Posts: 1,314
                            Quote:
                            Originally Posted by sab View Post
                            I'm new at this to but I've read enough to know that this has to do with a problem with the flags. (that is if it has any) To mixscripts (like giving a pokemon and then warping)you put the warp script right in front of the release end.
                            Sorry but that's wrong. Flags have nothing to do with that script, which would work fine on a clean ROM, anyway.
                            __________________
                              #95    
                            Old November 11th, 2008 (4:29 PM).
                            Darthatron's Avatar
                            Darthatron Darthatron is offline
                            巨大なトロール。
                            • Silver Tier
                             
                            Join Date: Jan 2006
                            Location: Melbourne, Australia
                            Age: 25
                            Gender: Male
                            Nature: Modest
                            Posts: 1,152
                            Quote:
                            Originally Posted by Bluewarwolf View Post
                            Ok I have some n00b questions.......

                            Is it possible to just erase all the bytes from the game, and start new?
                            And how do you mix messages with giving Pokemon/items? Such as: "Here, take this Pokemon" and he gives you a Pokemon. I also don't understand how to actually end it..... when I tested your examples, I just kept getting the Pokemon over and over.

                            I tried mixing messages with giving, but when I compiled it, it only did the messages and didn't play music to get Pokemon, and didn't say "You got suchandsuch"


                            What's wrong with this script? I haven't been able to get it to work..... all the person does is just stand there, and nothing happens. Also, no other script works either One other thing..... is it normal that when you start the game after scripting, that the game is a little.... "laggy" I guess you'd say? Like, I can press Left and my character goes Left twice or all the way, even if I let go. Just an example. Anyway, here's the script:


                            #dynamic 0x71B69C

                            #org @start
                            lock
                            faceplayer
                            message @1
                            boxset 0x6
                            givepokemon 0x6 0x5 0x0 0x0 0x0 0x0
                            message @2
                            boxset 0x6
                            release
                            end

                            #org @1
                            = Have a Charizard\n, on the house

                            #org @2
                            = You got Charizard!\nWhat a nice guy.
                            Are you setting to Script Offset in Advance Map?
                            __________________
                            あなた は しきしゃ です
                            わたし は ばか です
                              #96    
                            Old November 11th, 2008 (4:59 PM).
                            machomuu's Avatar
                            machomuu machomuu is online now
                            • Crystal Tier
                            • Crystal Tier
                             
                            Join Date: Apr 2008
                            Location: Americalanavania
                            Gender: Male
                            Nature: Relaxed
                            Posts: 10,247
                            Quote:
                            Originally Posted by Bluewarwolf View Post
                            Ok I have some n00b questions.......

                            Is it possible to just erase all the bytes from the game, and start new?
                            And how do you mix messages with giving Pokemon/items? Such as: "Here, take this Pokemon" and he gives you a Pokemon. I also don't understand how to actually end it..... when I tested your examples, I just kept getting the Pokemon over and over.

                            I tried mixing messages with giving, but when I compiled it, it only did the messages and didn't play music to get Pokemon, and didn't say "You got suchandsuch"

                            What's wrong with this script? I haven't been able to get it to work..... all the person does is just stand there, and nothing happens. Also, no other script works either One other thing..... is it normal that when you start the game after scripting, that the game is a little.... "laggy" I guess you'd say? Like, I can press Left and my character goes Left twice or all the way, even if I let go. Just an example. Anyway, here's the script:


                            #dynamic 0x71B69C

                            #org @start
                            lock
                            faceplayer
                            message @1
                            boxset 0x6
                            givepokemon 0x6 0x5 0x0 0x0 0x0 0x0
                            message @2
                            boxset 0x6
                            release
                            end

                            #org @1
                            = Have a Charizard\n, on the house

                            #org @2
                            = You got Charizard!\nWhat a nice guy.
                            Spoiler:

                            #dynamic 0x71B69C

                            #org @start
                            lock
                            faceplayer
                            message @1
                            boxset 0x6
                            givepokemon 0x6 0x5 0x0 0x0 0x0 0x0
                            message @2
                            release
                            end

                            #org @1
                            = Have a Charizard\n, on the house

                            #org @2
                            = You got Charizard!\nWhat a nice guy.


                            always only use one boxset :D.
                            __________________
                            Paired to and madly in love with a literal Symphony of legs.


                            I also watch anime sometimes. Just a little.
                              #97    
                            Old November 11th, 2008 (6:53 PM).
                            Darthatron's Avatar
                            Darthatron Darthatron is offline
                            巨大なトロール。
                            • Silver Tier
                             
                            Join Date: Jan 2006
                            Location: Melbourne, Australia
                            Age: 25
                            Gender: Male
                            Nature: Modest
                            Posts: 1,152
                            Quote:
                            Originally Posted by machomuu View Post
                            Spoiler:

                            #dynamic 0x71B69C

                            #org @start
                            lock
                            faceplayer
                            message @1
                            boxset 0x6
                            givepokemon 0x6 0x5 0x0 0x0 0x0 0x0
                            message @2
                            release
                            end

                            #org @1
                            = Have a Charizard\n, on the house

                            #org @2
                            = You got Charizard!\nWhat a nice guy.


                            always only use one boxset :D.
                            That is completely wrong. You need to have a boxset after every message.
                            __________________
                            あなた は しきしゃ です
                            わたし は ばか です
                              #98    
                            Old November 13th, 2008 (4:39 PM).
                            hot_kage's Avatar
                            hot_kage hot_kage is offline
                            I am like a rose cute and calm
                               
                              Join Date: Oct 2008
                              Location: Long Beach , California
                              Age: 24
                              Gender:
                              Nature: Naughty
                              Posts: 35
                              do u know how to make another person move? for the applymovement script.
                                #99    
                              Old November 14th, 2008 (1:37 AM).
                              HackMew's Avatar
                              HackMew HackMew is offline
                              Mewtwo Strikes Back
                              • Crystal Tier
                               
                              Join Date: Jun 2006
                              Posts: 1,314
                              Quote:
                              Originally Posted by hot_kage View Post
                              do u know how to make another person move? for the applymovement script.
                              Did you check the Command Help?
                              The syntax is like this:

                              Code:
                              applymovement [people no.] [pointer to movements]
                              waitmovement 0x0
                              __________________
                                #100    
                              Old November 14th, 2008 (6:24 PM).
                              hot_kage's Avatar
                              hot_kage hot_kage is offline
                              I am like a rose cute and calm
                                 
                                Join Date: Oct 2008
                                Location: Long Beach , California
                                Age: 24
                                Gender:
                                Nature: Naughty
                                Posts: 35
                                Quote:
                                Originally Posted by HackMew View Post
                                Did you check the Command Help?
                                The syntax is like this:

                                Code:
                                applymovement [people no.] [pointer to movements]
                                waitmovement 0x0
                                yeah i just noticed that
                                sorry im a fast reader and i miss things.

                                also if u don't mind i have another question.
                                is there a way to make the movement come before the text. and if so how?
                                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 4:07 AM.