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

TrollandToad.com
Reply
 
Thread Tools
  #326    
Old February 9th, 2010 (5:59 PM).
mattattack's Avatar
mattattack mattattack is offline
Huh, Son?
     
    Join Date: Apr 2008
    Location: Why would you care?
    Nature: Jolly
    Posts: 184
    I have some questions:

    1. What exacly IS a variable and what does it do

    2. How to you make a script where the player stops and a person moves towards him (I would also like to know about those green script tiles i a-map and how you trigger them)
    __________________
    Sometimes...it's hell before you get to heaven...

    My Trainer Card


    Help me raise my pokemon!

    Cre....Creselia!!?!?!?!?!?!
    Reply With Quote

    Relevant Advertising!

      #327    
    Old February 12th, 2010 (10:55 AM).
    Skull Guardian's Avatar
    Skull Guardian Skull Guardian is offline
    I am now FrostPheonix.
       
      Join Date: Nov 2009
      Location: In front of my computer
      Gender: Male
      Posts: 44
      Hello, I read your tutorial and tried to make a script with it. Here it is:

      Quote:
      #dynamic 0xE3D080

      #org @start
      lock
      checkflag 0x828
      if 0x1 goto $done
      faceplayer
      msgbox $begin 6
      applymovement 0x02 $move
      waitmovement 0x0
      msgbox $mom 6
      givepokemon 0x133 0x5 0x371 0x0 0x0 0x0
      fanfare 0x13E
      msgbox $evee 6
      waitfanfare
      closeonkeypress
      setflag 0x828
      msgbox $name 5
      compare LASTRESULT 0x1
      if 0x1 gosub $nameapp
      applymovement 0x02 $back
      waitmovement 0x0
      release
      end

      #org $done
      release
      end

      #org $begin
      = \h01\!

      #org $move
      #raw 0x01
      #raw 0x56
      #raw 0x05
      #raw 0x30
      #raw 0x01
      #raw 0xFE

      #org $mom
      = Hello my son.\n\Where are you \l\going? \p\...\p\...\p\Oh.\p\You want to\n\go on an \l\adventure?\p\Well, I guess\n\you will need\l\a pokemon,\p\right? Don't\n\look so\l\suprised! I\p\ knew you\n\would also go\l\someday.\p\So, here!

      #org $evee
      = You received \n\an Evee!

      #org $name
      = [black_fr]Would you like to give a\n\nickname to Evee?

      #org $nameapp
      call 0x1A74EB
      return

      #org $back
      #raw 0x08
      #raw 0x2F
      #raw 0xFE
      So, I tried to compile it. After a few minor errors, I did, but it said this:
      Quote:
      Not enough free space found. Cannot compile.
      I don't get it. I thought that the offset didn't have space, but even 10,000 bits didn't work. Can you please help me??
      __________________


      I have left this account. If you want to contact me, try to PM or VM FrostPheonix.

      Credit to wondergirl for the awesome trainer card!

      Proud writer of [Pokemon]; The legend of Shadow Lugia
      Reply With Quote
        #328    
      Old February 12th, 2010 (11:54 AM). Edited February 12th, 2010 by Muffin™.
      Muffin™'s Avatar
      Muffin™ Muffin™ is offline
      Knows your age
         
        Join Date: Dec 2009
        Location: sucking balls
        Age: 7
        Gender: Male
        Nature: Calm
        Posts: 429
        Quote:
        Originally Posted by Skull Guardian View Post
        Hello, I read your tutorial and tried to make a script with it. Here it is:



        So, I tried to compile it. After a few minor errors, I did, but it said this:

        I don't get it. I thought that the offset didn't have space, but even 10,000 bits didn't work. Can you please help me??
        Do you have FSF? Maybe that can help you.


        EDIT: Pokescript? This is a tutorial for XSE. I recommend downloading XSE in Hackmew's ToolBox to get XSE.

        Quote:
        Originally Posted by mattattack View Post
        I have some questions:

        1. What exacly IS a variable and what does it do

        2. How to you make a script where the player stops and a person moves towards him (I would also like to know about those green script tiles i a-map and how you trigger them)

        *cough* Look up ApplyMovement *cough*
        __________________
        >>>/v/
        Reply With Quote
          #329    
        Old February 12th, 2010 (11:58 AM).
        simdu68's Avatar
        simdu68 simdu68 is offline
        asleep all summer zzZZ
           
          Join Date: Feb 2010
          Location: France
          Age: 22
          Gender: Male
          Nature: Calm
          Posts: 221
          wow!! its really very well explained! congrats
          i think i know now much more than before about scripting :D
          but its stil very complivated, i think i'll not at once be able to script without reading your tutorial in the same time

          thanx anyway :D
          Reply With Quote
            #330    
          Old February 13th, 2010 (1:37 AM).
          Skull Guardian's Avatar
          Skull Guardian Skull Guardian is offline
          I am now FrostPheonix.
             
            Join Date: Nov 2009
            Location: In front of my computer
            Gender: Male
            Posts: 44
            Quote:
            Do you have FSF? Maybe that can help you.
            Well, I do and thats where the dynamic offset is from.
            Again, it says not enough free space, so could you please tell me how to fix that?


            Quote:
            EDIT: Pokescript? This is a tutorial for XSE. I recommend downloading XSE in Hackmew's ToolBox to get XSE.
            Well, this is from XSE, but I also use pokescript commands so could you also tell me if this is a wrong script for XSE? I didnt really figure out how to use pokescript in the first place...
            __________________


            I have left this account. If you want to contact me, try to PM or VM FrostPheonix.

            Credit to wondergirl for the awesome trainer card!

            Proud writer of [Pokemon]; The legend of Shadow Lugia
            Reply With Quote
              #331    
            Old February 14th, 2010 (9:06 AM).
            altariaking's Avatar
            altariaking altariaking is offline
            Needs NO VMs...
               
              Join Date: Dec 2009
              Location: Scotland, Lesmahagow
              Age: 43
              Gender: Male
              Nature: Naive
              Posts: 1,098
              what command do i use in a movement script so that a sprite disappears forever?
              __________________
              http://www.pokecommunity.com/member.php?u=253113
              Reply With Quote
                #332    
              Old February 14th, 2010 (2:15 PM).
              Buizark's Avatar
              Buizark Buizark is offline
              Always looking for an OU match
                 
                Join Date: Dec 2009
                Gender: Male
                Nature: Calm
                Posts: 72
                Just use hidesprite after the movement.
                __________________
                Reply With Quote
                  #333    
                Old February 15th, 2010 (4:15 AM).
                mikocoon mikocoon is offline
                error? who cares?
                   
                  Join Date: Jan 2010
                  Location: indonesia
                  Age: 24
                  Gender: Male
                  Nature: Quiet
                  Posts: 20
                  rokrdude,thanks for the values it really helped
                  Reply With Quote
                    #334    
                  Old February 15th, 2010 (9:11 AM).
                  Satoshi Ookami's Avatar
                  Satoshi Ookami Satoshi Ookami is offline
                  Memento Mori
                  • Gold Tier
                   
                  Join Date: Jul 2008
                  Location: Abyss of Time, Great Seal
                  Age: 25
                  Gender: Male
                  Nature: Calm
                  Posts: 14,503
                  Quote:
                  Originally Posted by altariaking View Post
                  what command do i use in a movement script so that a sprite disappears forever?
                  setflag 0x(variable number from 1 to 3FFF)
                  And the same number must be put into ID bar of person in A-Map
                  __________________
                  ROM hacking FAQ - Read before asking how to play a hack.

                  Anime List | PSN Trophy List
                  Reply With Quote
                    #335    
                  Old February 16th, 2010 (6:57 AM). Edited February 16th, 2010 by Reygok.
                  Reygok's Avatar
                  Reygok Reygok is offline
                  Beginning Hacker
                     
                    Join Date: Sep 2009
                    Gender: Male
                    Posts: 60
                    I want a picture of Charmander showing up. With 'showpokepic', it works but the Pic is Black and Blue! Charmander looks cool in Black, but it's not what I want xD How can I solve this?
                    It's the same case with Mudkip and Bulbasaur, but only the one I click first in the game, the other ones are normal then.

                    And I really don't know which flags to take! All the ones I choose seem to be already taken by the game, because when I enter the Pokémon Menu, the flags are cleared again! So, in Pokémon Sapphire, which Flags are free??
                    Reply With Quote
                      #336    
                    Old February 18th, 2010 (3:22 PM).
                    BurnNBlast's Avatar
                    BurnNBlast BurnNBlast is offline
                       
                      Join Date: Nov 2008
                      Gender:
                      Posts: 1
                      Is there a limitation to how much text you can put on a single chat box?
                      I did
                      Spoiler:
                      Conium: Ahh [player], you\nknow what day it is today?\pOf course you do! It's the day\nI said I'd give you your first\npokemon!\pHere you go.

                      But it only goes up the " said I'd give you your first"
                      Is it some type of limitation of how many \n and \p I can use in a single box?
                      Reply With Quote
                        #337    
                      Old February 19th, 2010 (2:43 AM).
                      Reygok's Avatar
                      Reygok Reygok is offline
                      Beginning Hacker
                         
                        Join Date: Sep 2009
                        Gender: Male
                        Posts: 60
                        No, there is no limitation as such, because I have Textboxes 5 times longer than yours and they work. Your problem is only that your offset has not enough space. I'm pretty sure when you open your script, you'll see that your text disappeared, at least that part which is missing.
                        You'll have to put this at the beginning of your script:
                        #dynamic 0x800000
                        #org @start (you can replace start by anything you want)

                        Then replace the offset of your incomplete textbox with @text or something like that, and rewrite the textbox.

                        Then compile the script and put he new offset of '@start' in A-Map. Then it should work.
                        Reply With Quote
                          #338    
                        Old February 19th, 2010 (5:00 AM).
                        Darkerm's Avatar
                        Darkerm Darkerm is offline
                        Darkness is Not always Evil
                           
                          Join Date: Jan 2010
                          Location: Bangladesh
                          Age: 24
                          Gender: Male
                          Nature: Gentle
                          Posts: 401
                          How make a triner who will give me a pokemon or item after battle. Please help me. I am learning scripting.
                          Reply With Quote
                            #339    
                          Old February 19th, 2010 (5:46 AM).
                          Satoshi Ookami's Avatar
                          Satoshi Ookami Satoshi Ookami is offline
                          Memento Mori
                          • Gold Tier
                           
                          Join Date: Jul 2008
                          Location: Abyss of Time, Great Seal
                          Age: 25
                          Gender: Male
                          Nature: Calm
                          Posts: 14,503
                          Quote:
                          Originally Posted by Darkerm View Post
                          How make a triner who will give me a pokemon or item after battle. Please help me. I am learning scripting.
                          You must put this command to your script.
                          trainerbattle 0x1 0x(number of trainer) 0x0 @before (msgbox of what trainer says before battle) @after (offset of what will happen after battle)

                          #org @after
                          Put here giveitem, givepokemon or whatever you want

                          Here's example
                          Spoiler:
                          #dynamic 0x800000
                          #org @start
                          trainerbattle 0x1 0x5 0x0 @before @after
                          msgbox @1 0x6
                          release
                          end

                          #org @after
                          msgbox @2 0x6
                          givepokemon/item command
                          release
                          end

                          And strings of msgboxes
                          __________________
                          ROM hacking FAQ - Read before asking how to play a hack.

                          Anime List | PSN Trophy List
                          Reply With Quote
                            #340    
                          Old February 19th, 2010 (9:49 AM).
                          Reygok's Avatar
                          Reygok Reygok is offline
                          Beginning Hacker
                             
                            Join Date: Sep 2009
                            Gender: Male
                            Posts: 60
                            Quote:
                            Originally Posted by Reygok View Post
                            I want a picture of Charmander showing up. With 'showpokepic', it works but the Pic is Black and Blue! Charmander looks cool in Black, but it's not what I want xD How can I solve this?
                            It's the same case with Mudkip and Bulbasaur, but only the one I click first in the game, the other ones are normal then.

                            And I really don't know which flags to take! All the ones I choose seem to be already taken by the game, because when I enter the Pokémon Menu, the flags are cleared again! So, in Pokémon Sapphire, which Flags are free??
                            Nobody has an idea why this is happening? In other hacks i've played and of course in the original games, all of the pokepics showing up are diplayed correctly... Why does mine not
                            Reply With Quote
                              #341    
                            Old February 19th, 2010 (3:19 PM).
                            helloNL helloNL is offline
                               
                              Join Date: Oct 2009
                              Gender: Male
                              Posts: 37
                              just use flags above the 1000
                              Reply With Quote
                                #342    
                              Old February 19th, 2010 (3:33 PM).
                              Matteron (96)'s Avatar
                              Matteron (96) Matteron (96) is offline
                              Difference is everything...
                              • Gold Tier
                               
                              Join Date: May 2008
                              Age: 20
                              Posts: 270
                              Quote:
                              Originally Posted by Reygok View Post
                              Nobody has an idea why this is happening? In other hacks i've played and of course in the original games, all of the pokepics showing up are diplayed correctly... Why does mine not
                              is your actual sprite correctly colored? check it in unlz
                              __________________
                              Matteron(96)
                              Currently Playing--->
                              Progress: Post-Game
                              Current Team:


                              In Terms of Hacking...
                              Favorite ROM
                              Skills
                              Working On
                              In Terms of Game Dev...
                              Working On
                              News
                              I'm currently up for hire, for almost anything in ROM hacking, so just send me a PM.
                              Reply With Quote
                                #343    
                              Old February 22nd, 2010 (1:26 PM).
                              Reygok's Avatar
                              Reygok Reygok is offline
                              Beginning Hacker
                                 
                                Join Date: Sep 2009
                                Gender: Male
                                Posts: 60
                                I've got 2 problems:
                                First, every flag I set is unset again as soon as I leave the map or enter the pokémon menu or something.

                                Second, I have 3 Pokéball lying on a table, at the beginning of the game, the starters. I implemented a 'showpokepic' there, but my problem is that the first pokémon I select has alway messed up colours. It has nothing to do with the sprites themselweves, because I never edited them, and as I said, it's alway the first one I select, when I restart the game and select another, that on is messed up, but the others are normally displayed.

                                Hope somebody can help. Thanks in advance.
                                Reply With Quote
                                  #344    
                                Old February 22nd, 2010 (1:43 PM).
                                BBs0n BBs0n is offline
                                   
                                  Join Date: Jul 2007
                                  Gender:
                                  Nature: Adamant
                                  Posts: 16
                                  I've got a problem as well...

                                  I'm busy with a script which will trigger an event.
                                  During the event the script will move a sprite to the scene.
                                  I'm trying to accomplish this with movesprite.

                                  For some odd reason though, I can't move the sprite when it's too far away.
                                  With too far away, I mean more than two tiles away from the screen.
                                  When I place the sprite closer, it does work, when I place it further, it doesn't.

                                  Code:
                                  movesprite 0x03 0x10 0x0F
                                  That's the command I use with there respective parameters. (I don't think the error is in there).

                                  Here is the script, I haven't scripted the part after the first movesprite yet. Everything till the movesprite works!

                                  Code:
                                  #dynamic 0x800000
                                  
                                  #org @start
                                  lock
                                  checkflag 0x50B
                                  if 0x1 goto @done
                                  checkflag 0x50C
                                  if 0x1 goto @unav
                                  playsong 0x0112 0x0
                                  sound 0x21
                                  applymovement 0xFF @1moveme
                                  waitmovement 0x0
                                  waitkeypress
                                  sound 0x12
                                  setdooropened 0x10 0x0E
                                  doorchange
                                  movesprite 0x03 0x10 0x0F
                                  release
                                  end
                                  
                                  #org @done
                                  release
                                  end
                                  
                                  #org @unav
                                  msgbox @1 0x06
                                  release
                                  end
                                  
                                  #org @1
                                  = blabla
                                  
                                  #org @1moveme
                                  #raw 0x62
                                  #raw 0x50
                                  #raw 0x03
                                  #raw 0xFE

                                  Anyone who knows the solution? (I've been trying for over an hour now, and I'm out of solutions :()
                                  Reply With Quote
                                    #345    
                                  Old February 23rd, 2010 (11:34 AM).
                                  Reygok's Avatar
                                  Reygok Reygok is offline
                                  Beginning Hacker
                                     
                                    Join Date: Sep 2009
                                    Gender: Male
                                    Posts: 60
                                    I have done the same thing, but simply with applymovement, and this works perfectly. You could try it that way.

                                    An no one knows an answer to my question, 2 posts above...
                                    Reply With Quote
                                      #346    
                                    Old February 24th, 2010 (2:22 PM).
                                    Lanzar's Avatar
                                    Lanzar Lanzar is offline
                                    ~Zelda fan #1~
                                       
                                      Join Date: Feb 2009
                                      Location: Sweden
                                      Gender: Male
                                      Nature: Mild
                                      Posts: 28
                                      Hey, can someone help me with a little thing? I just wonder how I make a script where a trainer comes from like 4 steps right, and challenge you, then he/she leaves? Just like in the beginning of Pokémon ShinyGold, the first battle with Carlos.

                                      Please help.
                                      __________________


                                      Reply With Quote
                                        #347    
                                      Old February 24th, 2010 (5:21 PM).
                                      Matteron (96)'s Avatar
                                      Matteron (96) Matteron (96) is offline
                                      Difference is everything...
                                      • Gold Tier
                                       
                                      Join Date: May 2008
                                      Age: 20
                                      Posts: 270
                                      @Lanzar
                                      Have you ever heard of applymovement??
                                      __________________
                                      Matteron(96)
                                      Currently Playing--->
                                      Progress: Post-Game
                                      Current Team:


                                      In Terms of Hacking...
                                      Favorite ROM
                                      Skills
                                      Working On
                                      In Terms of Game Dev...
                                      Working On
                                      News
                                      I'm currently up for hire, for almost anything in ROM hacking, so just send me a PM.
                                      Reply With Quote
                                        #348    
                                      Old February 25th, 2010 (12:05 AM).
                                      Lanzar's Avatar
                                      Lanzar Lanzar is offline
                                      ~Zelda fan #1~
                                         
                                        Join Date: Feb 2009
                                        Location: Sweden
                                        Gender: Male
                                        Nature: Mild
                                        Posts: 28
                                        Quote:
                                        Originally Posted by Matteron (96) View Post
                                        @Lanzar
                                        Have you ever heard of applymovement??
                                        Yeah, but I don't know how to put in a trainer battle script in an applymovement script. D:
                                        __________________


                                        Reply With Quote
                                          #349    
                                        Old February 25th, 2010 (5:52 AM).
                                        Satoshi Ookami's Avatar
                                        Satoshi Ookami Satoshi Ookami is offline
                                        Memento Mori
                                        • Gold Tier
                                         
                                        Join Date: Jul 2008
                                        Location: Abyss of Time, Great Seal
                                        Age: 25
                                        Gender: Male
                                        Nature: Calm
                                        Posts: 14,503
                                        applymovement
                                        trainerbattle 0x1 (The 1 is important) 0x(number of trainer) 0x0 @b4 @after

                                        #org @after
                                        Put applymovements here.

                                        And you have to use tile script since you want movement before battle.
                                        __________________
                                        ROM hacking FAQ - Read before asking how to play a hack.

                                        Anime List | PSN Trophy List
                                        Reply With Quote
                                          #350    
                                        Old February 25th, 2010 (6:20 AM).
                                        Lanzar's Avatar
                                        Lanzar Lanzar is offline
                                        ~Zelda fan #1~
                                           
                                          Join Date: Feb 2009
                                          Location: Sweden
                                          Gender: Male
                                          Nature: Mild
                                          Posts: 28
                                          Quote:
                                          Originally Posted by Ash493 View Post
                                          applymovement
                                          trainerbattle 0x1 (The 1 is important) 0x(number of trainer) 0x0 @b4 @after

                                          #org @after
                                          Put applymovements here.

                                          And you have to use tile script since you want movement before battle.
                                          Thanks! :D
                                          Well, I'm kinda noob at this, but whats a tile script?
                                          __________________


                                          Reply With Quote
                                          Reply

                                          Quick Reply

                                          Join the conversation!

                                          Create an account to post a reply in this thread, participate in other discussions, and more!

                                          Create a PokéCommunity Account

                                          Sponsored Links
                                          Thread Tools

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

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

                                          Forum Jump


                                          All times are GMT -8. The time now is 6:46 PM.