The PokéCommunity Forums Fan Games ROM Hacking Tools, Tutorials & Resources
Tutorial Hack Tutorials: Scripting

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

Closed Thread
 
Thread Tools
  #101    
Old September 7th, 2007 (1:26 PM).
Luke128th's Avatar
Luke128th Luke128th is offline
These days shall pass...
     
    Join Date: Aug 2007
    Age: 25
    Gender: Male
    Nature: Hardy
    Posts: 85
    Alright, and this coincides with my other post, is there a good tut for Diamond Cutter?

    Relevant Advertising!

      #102    
    Old September 7th, 2007 (3:05 PM).
    once in a blue mew's Avatar
    once in a blue mew once in a blue mew is offline
       
      Join Date: May 2007
      Location: A gerbil cage
      Age: 22
      Gender:
      Nature: Relaxed
      Posts: 47
      Send a message via Windows Live Messenger to once in a blue mew
      You have a random item thing, like the Poke Balls you find on routes?
      __________________




      Credit to Zel for the Game, I just screen shotted the part where your rival pushes you.
      I claimed;
      ~*~ ~*~

      Cna yuo raed tihs? Olny 55% of plepoe can.

      I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg.
      The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch
      at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a
      wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the
      rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit
      a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter
      by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot
      slpeling was ipmorantt!
      fi yuo cna raed tihs, palce it in yuor siantugre
      I feogrt who ollanirigy had tihs but wohveer did. TAHNKS
        #103    
      Old September 8th, 2007 (5:21 PM).
      ♠εx's Avatar
      ♠εx ♠εx is offline
      Working on my hack, busy also.
         
        Join Date: May 2007
        Gender:
        Nature: Adamant
        Posts: 299
        Pokescript:
        When decompiling a game and choosing an offset, it say's which mode.
        What do I put here?
        __________________
        Made A New Account - Crashink

        Yes, this does mean Icy Blue will be locked down, but only for a short time while I fix my bugs.

        - Crashink.
          #104    
        Old September 14th, 2007 (8:33 AM).
        Fluddles's Avatar
        Fluddles Fluddles is offline
        Frustrated Trainer
           
          Join Date: Sep 2007
          Location: Ireland.
          Gender:
          Nature: Rash
          Posts: 10
          Send a message via Windows Live Messenger to Fluddles
          Hey everyone, I'm extremely new! I played through Ruby, then Sapphire, now I'm trying to script but I learn by example so I copied this one, but it won't work. I copied it after someone else posted it, and made a few changes... Here's the script.

          Spoiler:
          #org $Startscript
          lock
          faceplayer
          checkflag 0x200
          if 1 goto $GotIt
          message $AskMe
          $AskMe 1 = Argh! I can't handle this! Hey, you look like a confident trainer! Will you take this Pokemon?
          boxset 5
          compare LASTRESULT 1
          if 1 goto $Giveit
          message $Forget
          $Forget 1 = Oh.. Ok, never mind... ARGH!
          boxset 6
          release
          end

          #org $Gotit
          message $Howis
          $Howis 1 = He's your problem now, away with you!
          boxset 6
          release
          end

          #org $Giveit
          givepokemon 004 5 0
          #raw 0 0 0 0 0 0 0 0 0 0 0 0
          message $Whatisit
          $Whatisit 1 = You received Charmander!
          boxset 6
          release
          setflag 0x200
          end


          I wrote it in Notepad, and saved it under "All File Types" with the extension ".rbc" and then I hit right click on it, and then "Compile Script" but I got an error. It says Runtime Error '6' Overflow.

          Which isn't what I expected. I'm using PoketScript but I've also tried Diamond Cutter and I get similar problems. Can someone tell me where I'm going wrong?

          I'm actually doing all this more or less, just so I can get Charmander. I got the Gameshark codes to work once, but not any more.

          Thanks for all and any help!
          __________________
            #105    
          Old September 14th, 2007 (7:36 PM).
          Luke128th's Avatar
          Luke128th Luke128th is offline
          These days shall pass...
             
            Join Date: Aug 2007
            Age: 25
            Gender: Male
            Nature: Hardy
            Posts: 85
            Alright now...
            I'm testing one of the scripts you posted, Follump. Everytime I finish compiling it do I just get the last set of offset numbers? And if so then I must be doing something wrong because the screen goes red...

            Here is the script:
            Quote:
            #ORG $begin
            lock
            faceplayer
            checkflag 0x200
            if B_true goto $done
            message $aidtalk
            boxset 6
            giveitem 0xD
            setflag 0x200
            release
            end

            #org $done
            message $aidtalk2
            boxset 6
            release
            end

            #org $aidtalk
            $aidtalk 1 = Oh, hello \v\h01.\pHere, take this potion!

            #org $aidtalk2
            $aidtalk2 1 = Hello.
              #106    
            Old September 15th, 2007 (1:55 AM).
            spenceroone3's Avatar
            spenceroone3 spenceroone3 is offline
            <he eats lots of burgers.
               
              Join Date: Aug 2007
              Location: In your closet
              Gender:
              Nature: Hasty
              Posts: 215
              Send a message via Windows Live Messenger to spenceroone3
              Yeah, I noticed that too...
              __________________
              <wtf? A lugi-oh?
              <What the hell did you do to my Arceus?
                #107    
              Old September 15th, 2007 (3:11 AM).
              thethethethe thethethethe is offline
                 
                Join Date: Jun 2007
                Location: Melbourne, Australia
                Gender: Male
                Posts: 1,104
                Quote:
                Originally Posted by Luke128th View Post
                Alright now...
                I'm testing one of the scripts you posted, Follump. Everytime I finish compiling it do I just get the last set of offset numbers? And if so then I must be doing something wrong because the screen goes red...

                Here is the script:
                Try adding a 1 to giveitem 0xD. So it will look like this
                giveitem 0xD 1
                Thats the only problem I can find with it.
                __________________
                Gone.
                  #108    
                Old September 15th, 2007 (9:38 AM).
                Luke128th's Avatar
                Luke128th Luke128th is offline
                These days shall pass...
                   
                  Join Date: Aug 2007
                  Age: 25
                  Gender: Male
                  Nature: Hardy
                  Posts: 85
                  Alright now I'm trying to create a Moltres battle, but I still don't know which offset to use! Which do I use?
                  Quote:
                  #org $StartWild
                  lock
                  faceplayer
                  cry 146
                  message $moltCry
                  moltcry 1 = Gyaoo!
                  boxset 6
                  checkflag 0x808
                  if 0x1 goto $WildBatt
                  release
                  end

                  org $Wildbatt
                  lock
                  wildbattle 146 50 2
                  release
                  setflag 0x500
                  fadescreen 0
                  end
                    #109    
                  Old September 22nd, 2007 (6:09 AM).
                  falkner's Avatar
                  falkner falkner is offline
                     
                    Join Date: Jun 2007
                    Location: Eterna City, Sinnoh
                    Gender:
                    Nature: Adamant
                    Posts: 9
                    Heres a script i use for a cable car on Emerald:
                    Code:
                    #ORG $ShowText
                    Lock
                    Faceplayer
                    message $car
                    $car 1 = This is the Cable Car!\lWant to go up?
                    boxset 5
                    compare LASTRESUILT B_TRUE
                    if B_False goto $DontGo
                    special 0x98
                    warp 0x02 0x06 0x02
                    goto $endme
                    $DontGo
                    message $ok
                    $ok 1 = Okay. Bye Then!
                    boxset 6
                    $endme
                    release
                    end
                    It works up to the Special 0x98, instead of the cable car animation its a blank screen and a bit of music, press A and the script carries on, how can i get this to work?!?
                    __________________
                    Falkner's PokePet

                    Pingu the level 1 Piplup!
                      #110    
                    Old September 22nd, 2007 (8:22 AM).
                    Milanor's Avatar
                    Milanor Milanor is offline
                       
                      Join Date: Sep 2007
                      Gender:
                      Posts: 76
                      Where i must type in 03,40 and 50?
                      Spoiler:

                      oh and here's my script:
                      Quote:
                      #ORG $begin
                      lock
                      checkflag 0x200
                      applymovement 0x07 $aidwalk1
                      pause 0x20
                      message $aidtalk
                      boxset 6
                      release
                      end

                      #ORG $aidwalk1
                      $aidwalk1 1 ; #binary 0x52 0x4A 0xFE

                      #ORG $aidtalk
                      $aidtalk 1 = Puh, \v\h01.\pdu hast mich erschrekt!
                      My text is german, but thats equal ".
                      __________________
                      My English isn't the best, sry
                        #111    
                      Old September 22nd, 2007 (11:05 AM). Edited September 22nd, 2007 by Naoshi.
                      Naoshi Naoshi is offline
                      lawl
                         
                        Join Date: Sep 2005
                        Gender:
                        Nature: Calm
                        Posts: 72
                        For People Objects: You just only need to make the second Unknown 03. But I don't know if that's even needed.
                          #112    
                        Old September 22nd, 2007 (2:10 PM).
                        Milanor's Avatar
                        Milanor Milanor is offline
                           
                          Join Date: Sep 2007
                          Gender:
                          Posts: 76
                          The Game Freezed if i talk to the person...
                          And i dont know why T__T .
                          __________________
                          My English isn't the best, sry
                            #113    
                          Old September 22nd, 2007 (2:11 PM).
                          Naoshi Naoshi is offline
                          lawl
                             
                            Join Date: Sep 2005
                            Gender:
                            Nature: Calm
                            Posts: 72
                            Quote:
                            Originally Posted by Milanor View Post
                            The Game Freezed if i talk to the person...
                            And i dont know why T__T .
                            Set movement to 11 in the people object may make it work.
                              #114    
                            Old September 22nd, 2007 (2:32 PM).
                            Milanor's Avatar
                            Milanor Milanor is offline
                               
                              Join Date: Sep 2007
                              Gender:
                              Posts: 76
                              No, its stil freezing my game
                              __________________
                              My English isn't the best, sry
                                #115    
                              Old September 22nd, 2007 (9:59 PM).
                              Luke128th's Avatar
                              Luke128th Luke128th is offline
                              These days shall pass...
                                 
                                Join Date: Aug 2007
                                Age: 25
                                Gender: Male
                                Nature: Hardy
                                Posts: 85
                                Also when I do make my moltres battle, the screen turns purple... Do I need to put in the movement numbers?
                                  #116    
                                Old October 4th, 2007 (5:31 PM).
                                once in a blue mew's Avatar
                                once in a blue mew once in a blue mew is offline
                                   
                                  Join Date: May 2007
                                  Location: A gerbil cage
                                  Age: 22
                                  Gender:
                                  Nature: Relaxed
                                  Posts: 47
                                  Send a message via Windows Live Messenger to once in a blue mew
                                  Uh... I have another question... How do I assign scripts to someone? Like let's say I want to change someone's script all the way in the E4, and yet I have done no scripting proor to that, and I'm using Advance Map. How do I assign that certian script to a person far off from the beginning?
                                  __________________




                                  Credit to Zel for the Game, I just screen shotted the part where your rival pushes you.
                                  I claimed;
                                  ~*~ ~*~

                                  Cna yuo raed tihs? Olny 55% of plepoe can.

                                  I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg.
                                  The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch
                                  at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a
                                  wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the
                                  rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit
                                  a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter
                                  by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot
                                  slpeling was ipmorantt!
                                  fi yuo cna raed tihs, palce it in yuor siantugre
                                  I feogrt who ollanirigy had tihs but wohveer did. TAHNKS
                                    #117    
                                  Old October 4th, 2007 (6:11 PM).
                                  Ooka's Avatar
                                  Ooka Ooka is offline
                                  <3
                                  • Crystal Tier
                                   
                                  Join Date: Aug 2007
                                  Location: Challenging The E4
                                  Age: 24
                                  Gender: Male
                                  Nature: Relaxed
                                  Posts: 2,612
                                  Just use the command call I guess, but then you would have to use the command return afterwards. Or maybe I'm just misunderstanding your question.
                                  __________________
                                  Hi
                                    #118    
                                  Old October 4th, 2007 (6:22 PM).
                                  thethethethe thethethethe is offline
                                     
                                    Join Date: Jun 2007
                                    Location: Melbourne, Australia
                                    Gender: Male
                                    Posts: 1,104
                                    Quote:
                                    Originally Posted by once in a blue mew View Post
                                    Uh... I have another question... How do I assign scripts to someone? Like let's say I want to change someone's script all the way in the E4, and yet I have done no scripting proor to that, and I'm using Advance Map. How do I assign that certian script to a person far off from the beginning?
                                    Read the beginning of Irish Witch's tutorial. That should explain compiling and assigning scripts to people in Advance map.

                                    Quote:
                                    Originally Posted by ~Kazaam~ View Post
                                    Just use the command call I guess, but then you would have to use the command return afterwards. Or maybe I'm just misunderstanding your question.
                                    I think you may have misunderstood(maybe I'm wrong)
                                    __________________
                                    Gone.
                                      #119    
                                    Old October 6th, 2007 (5:11 AM).
                                    once in a blue mew's Avatar
                                    once in a blue mew once in a blue mew is offline
                                       
                                      Join Date: May 2007
                                      Location: A gerbil cage
                                      Age: 22
                                      Gender:
                                      Nature: Relaxed
                                      Posts: 47
                                      Send a message via Windows Live Messenger to once in a blue mew
                                      Quote:
                                      Originally Posted by thethethethe View Post
                                      Read the beginning of Irish Witch's tutorial. That should explain compiling and assigning scripts to people in Advance map.
                                      Thanks for the help... Now anyways. Another question.

                                      How would I make a script similar to the one in Yellow with the Pikachu following you? (I mean through out all the game.) Unless it's; Fainted, or in the PC?
                                      __________________




                                      Credit to Zel for the Game, I just screen shotted the part where your rival pushes you.
                                      I claimed;
                                      ~*~ ~*~

                                      Cna yuo raed tihs? Olny 55% of plepoe can.

                                      I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg.
                                      The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch
                                      at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a
                                      wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the
                                      rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit
                                      a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter
                                      by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot
                                      slpeling was ipmorantt!
                                      fi yuo cna raed tihs, palce it in yuor siantugre
                                      I feogrt who ollanirigy had tihs but wohveer did. TAHNKS
                                        #120    
                                      Old October 6th, 2007 (5:06 PM).
                                      thethethethe thethethethe is offline
                                         
                                        Join Date: Jun 2007
                                        Location: Melbourne, Australia
                                        Gender: Male
                                        Posts: 1,104
                                        Quote:
                                        Originally Posted by once in a blue mew View Post
                                        Thanks for the help... Now anyways. Another question.

                                        How would I make a script similar to the one in Yellow with the Pikachu following you? (I mean through out all the game.) Unless it's; Fainted, or in the PC?
                                        Unfortunately ASM hacking is needed to do this.
                                        __________________
                                        Gone.
                                          #121    
                                        Old October 22nd, 2007 (8:06 AM).
                                        Klingon Klingon is offline
                                        Banned
                                           
                                          Join Date: Oct 2007
                                          Gender:
                                          Nature: Relaxed
                                          Posts: 356
                                          Thanks for making this; should make more people understand.
                                            #122    
                                          Old October 23rd, 2007 (2:21 PM).
                                          Virtual Chatot Virtual Chatot is offline
                                          Incredibly Rare Pepe
                                          • Crystal Tier
                                           
                                          Join Date: Mar 2005
                                          Location: Rockies
                                          Age: 25
                                          Gender: Male
                                          Posts: 3,510
                                          Can anyone help me with this?

                                          Whenever I try and compress the .RBC..

                                          This pops up:


                                          Can anyone explain this problem?
                                          __________________
                                          Ten year old account


                                          Never expect me to post


                                          Nostalgia binds me
                                            #123    
                                          Old October 24th, 2007 (1:17 PM).
                                          ROMan's Avatar
                                          ROMan ROMan is offline
                                          INSERT USER TITLE
                                             
                                            Join Date: Oct 2007
                                            Location: Palatine, Rome
                                            Age: 28
                                            Gender:
                                            Nature: Quiet
                                            Posts: 32
                                            Send a message via Windows Live Messenger to ROMan Send a message via Yahoo to ROMan
                                            Nope, I'm not so dandy with PokeScript but I can totally script well....
                                            Another question, does anyone have a good tutorial on how to insert scripts? I really want to get started but without movements I can't do nothing.
                                            __________________
                                            | Pokemon Acanthite | GTS Plus | PPN PC Chat |



                                            Loading... Loading... Loading... DARN computer! L-O-A-D!

                                            NOTE: If you want to be my friend, PM me. I need some to add to my Friends List and someone to talk to!
                                              #124    
                                            Old October 29th, 2007 (2:50 AM). Edited October 29th, 2007 by Dreaded Soul.
                                            Dreaded Soul's Avatar
                                            Dreaded Soul Dreaded Soul is offline
                                               
                                              Join Date: Oct 2007
                                              Gender:
                                              Posts: 10
                                              The 'compile' option doesn't work

                                              AND

                                              When I try to open Pokescript, it says:

                                              Run-time error '-2147024770 (8007007e)':
                                              Automation error
                                              The specified module could not be found.

                                              What's happening?!!
                                                #125    
                                              Old November 2nd, 2007 (7:14 PM).
                                              blueray's Avatar
                                              blueray blueray is offline
                                              Zombie
                                                 
                                                Join Date: Sep 2007
                                                Location: I live in the darkness
                                                Gender:
                                                Nature: Brave
                                                Posts: 21
                                                Send a message via Windows Live Messenger to blueray
                                                can I plz get a TEXT script tutorial for adding my own txt
                                                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 12:59 AM.