The PokéCommunity Forums Fan Games ROM Hacking Tools, Tutorials & Resources
Tutorial Hack Tutorials: Scripting (In HD Video Form!)

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


Reply
 
Thread Tools
  #26    
Old August 24th, 2009 (9:03 AM). Edited August 24th, 2009 by huntley93.
huntley93 huntley93 is offline
     
    Join Date: May 2009
    Gender:
    Posts: 20
    will the main body of the script work on xse or not. and have a request for next lesson. legendary battles like mewtwo and zapdos or is that the same as wild battles?
    Reply With Quote

    Relevant Advertising!

      #27    
    Old August 31st, 2009 (3:25 PM).
    foullump's Avatar
    foullump foullump is offline
    Rom Hacking Guru
       
      Join Date: Mar 2007
      Location: United States
      Nature: Calm
      Posts: 220
      Quote:
      Originally Posted by pokemonruby2 View Post
      Thanks. Now I know what I've been doing wrong. I also want to know: How do you add a sound when you either:
      A: talk to a person, or
      B: Move with someone

      I want to do that like at the beginning of the game when Prof. Oak moves the player to the lab with the "Follow Me" theme.
      That would be "playsound 0x0000" where 0000 represents the sound's value. Afterwards, use #raw 0x33 to prevent the game from having errors.
      Reply With Quote
        #28    
      Old September 1st, 2009 (4:33 PM).
      Glitch.'s Avatar
      Glitch. Glitch. is offline
      maybe making a comeback
         
        Join Date: Aug 2009
        Location: canada
        Age: 23
        Gender: Male
        Nature: Relaxed
        Posts: 215
        i use xse since it has less bugs and its what most people use
        __________________
        Reply With Quote
          #29    
        Old September 1st, 2009 (8:29 PM).
        ChikoritaMudkipz's Avatar
        ChikoritaMudkipz ChikoritaMudkipz is offline
           
          Join Date: Jun 2009
          Gender: Male
          Posts: 30
          Hey I was wondering if lesson 8 could be on level scripts, or even combining previous scripts into a rival battle.
          __________________
          youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
          check out my shiny gold x run!
          Reply With Quote
            #30    
          Old September 5th, 2009 (12:55 PM).
          jarcon jarcon is offline
             
            Join Date: Aug 2009
            Gender: Male
            Posts: 8
            Foullump great tutorials, I've started scripting now and have made some really cool scripts already thanks to what I learned! Couldn't have done it without you. Keep them coming! If I have any requests I'll let you know.
            Reply With Quote
              #31    
            Old September 6th, 2009 (3:03 PM).
            Denali's Avatar
            Denali Denali is offline
            C++ Programmer
               
              Join Date: Aug 2009
              Location: Michigan
              Age: 25
              Gender: Male
              Nature: Lonely
              Posts: 195
              To start off, amzing tutorials! I don't know what I'd do without you! This may sound stupid, but, I'm confused on how to use the "script" event on advance map. I thought you just make a script making your sprite move, then, when you step on the script tile your player moves and stuff. Am I right?

              Here's the script I used:
              Spoiler:

              #org $nonopoppa
              lock
              faceplayer
              message $halt
              $halt 1 =Crap!
              boxset 6
              applymovement 1 $jiggy
              $jiggy 1 ; #binary 0x62 0x01 0x08 0x12 0x44 0xFE
              applymovement 0xFF $jiggy
              release
              end

              I don't know if this is right, but, thanks for your time Foullump.
              Reply With Quote
                #32    
              Old September 7th, 2009 (8:46 AM).
              foullump's Avatar
              foullump foullump is offline
              Rom Hacking Guru
                 
                Join Date: Mar 2007
                Location: United States
                Nature: Calm
                Posts: 220
                Quote:
                Originally Posted by Denali View Post
                To start off, amzing tutorials! I don't know what I'd do without you! This may sound stupid, but, I'm confused on how to use the "script" event on advance map. I thought you just make a script making your sprite move, then, when you step on the script tile your player moves and stuff. Am I right?

                Here's the script I used:
                Spoiler:

                #org $nonopoppa
                lock
                faceplayer
                message $halt
                $halt 1 =Crap!
                boxset 6
                applymovement 1 $jiggy
                $jiggy 1 ; #binary 0x62 0x01 0x08 0x12 0x44 0xFE
                applymovement 0xFF $jiggy
                release
                end

                I don't know if this is right, but, thanks for your time Foullump.
                If you're using a script box then you'll want to get rid of 'lock faceplayer' and maybe add a pause after your movements. Then in advance map, click the script box and on the right it will ask for var values. I always put 50 40.
                __________________
                Reply With Quote
                  #33    
                Old September 14th, 2009 (2:58 PM). Edited September 14th, 2009 by Denali.
                Denali's Avatar
                Denali Denali is offline
                C++ Programmer
                   
                  Join Date: Aug 2009
                  Location: Michigan
                  Age: 25
                  Gender: Male
                  Nature: Lonely
                  Posts: 195
                  Hey Foullump, I tried your advice and removed the 'faceplayer and lock', but my script still doesn't work. Every time I step on the tile, the hero freezes and is unable to move...Maybe I just can't script...Anyways, here is the script I used the second time...
                  Spoiler:

                  #org $pimp
                  message $talk
                  $talk 1 =Crap!
                  boxset 6
                  applymovement 1 $mover
                  $mover 1 ; #binary 0x01 0x0A 0x04 0x0C 0xFE
                  applymovement 0xFF $mover
                  pausemove 0x0000
                  release
                  end

                  Oh, and I tried to do the var values thing, but I didn't do it right I guess. Or maybe I just didn't understand you.
                  Thanks foullump,
                  -MDS
                  Reply With Quote
                    #34    
                  Old September 20th, 2009 (4:31 PM).
                  foullump's Avatar
                  foullump foullump is offline
                  Rom Hacking Guru
                     
                    Join Date: Mar 2007
                    Location: United States
                    Nature: Calm
                    Posts: 220
                    Quote:
                    Originally Posted by Denali View Post
                    Hey Foullump, I tried your advice and removed the 'faceplayer and lock', but my script still doesn't work. Every time I step on the tile, the hero freezes and is unable to move...Maybe I just can't script...Anyways, here is the script I used the second time...
                    Spoiler:

                    #org $pimp
                    message $talk
                    $talk 1 =Crap!
                    boxset 6
                    applymovement 1 $mover
                    $mover 1 ; #binary 0x01 0x0A 0x04 0x0C 0xFE
                    applymovement 0xFF $mover
                    pausemove 0x0000
                    release
                    end

                    Oh, and I tried to do the var values thing, but I didn't do it right I guess. Or maybe I just didn't understand you.
                    Thanks foullump,
                    -MDS
                    One thing you might want to try doing is putting a space before "crap!" It should look like this:
                    $talk 1 = Crap!

                    Now that might not do anything at all but as I recall scripts would always freak out if the smallest thing was wrong...
                    __________________
                    Reply With Quote
                      #35    
                    Old September 26th, 2009 (10:57 AM).
                    VVB VVB is offline
                       
                      Join Date: Sep 2009
                      Age: 27
                      Gender: Male
                      Nature: Calm
                      Posts: 2
                      I have a suggestion on what to include in lesson 8. How about making choices, other than just yes or no, like choosing one out of three starters? :)
                      Reply With Quote
                        #36    
                      Old September 28th, 2009 (12:17 PM).
                      Denali's Avatar
                      Denali Denali is offline
                      C++ Programmer
                         
                        Join Date: Aug 2009
                        Location: Michigan
                        Age: 25
                        Gender: Male
                        Nature: Lonely
                        Posts: 195
                        I'm sorry foullump, I still can't fix the problem. And what did you mean by the 40 50 var values thing?
                        Reply With Quote
                          #37    
                        Old October 4th, 2009 (1:55 AM).
                        huntley93 huntley93 is offline
                           
                          Join Date: May 2009
                          Gender:
                          Posts: 20
                          how do i make a trainer battle me again after he has battled me the first time. I have tried putting the script underneth the 1st one but couldn't compile it. Got an idea for lesson 8. could it be one like the enti,scuicine and riakou event in fire red and leaf grean?
                          Reply With Quote
                            #38    
                          Old October 4th, 2009 (9:41 AM).
                          boo7100 boo7100 is offline
                             
                            Join Date: Oct 2009
                            Gender: Male
                            Posts: 1
                            I need some help with my wild battle script. the battle and the fadescreen and event work fine. the only thing is, when i capture or beat the pokemon, it doesnt go away. Here is my script. can someone tell me wat I did wrong?

                            #org $script
                            lock
                            faceplayer
                            cry 0xA1 250
                            #raw 0x33
                            pause 0x30
                            message $cry
                            $cry 1 = Gyooooga!
                            boxset 6
                            wildbattle 250 47 2
                            pause 0x70
                            fadescreen 1
                            removesprite 0x800F
                            setflag 0x1211
                            pause 0x10
                            fadescreen 0
                            release
                            end
                            Reply With Quote
                              #39    
                            Old October 4th, 2009 (1:49 PM).
                            DawnRyder DawnRyder is offline
                            I cannot believe I'm back -.-
                               
                              Join Date: Aug 2009
                              Posts: 79
                              Quote:
                              Originally Posted by boo7100 View Post
                              I need some help with my wild battle script. the battle and the fadescreen and event work fine. the only thing is, when i capture or beat the pokemon, it doesnt go away. Here is my script. can someone tell me wat I did wrong?

                              #org $script
                              lock
                              faceplayer
                              cry 0xA1 250
                              #raw 0x33
                              pause 0x30
                              message $cry
                              $cry 1 = Gyooooga!
                              boxset 6
                              wildbattle 250 47 2
                              pause 0x70
                              fadescreen 1
                              removesprite 0x800F
                              setflag 0x1211
                              pause 0x10
                              fadescreen 0
                              release
                              end
                              What you need to do is to set a person ID in AdvanceMap. Select the sprite, and just above the 'Open Script' button will be a box that says 'Person ID'
                              __________________
                              I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.

                              Sorry guys, but I'm leaving Pokécommunity. I just don't have time for it. As of right now you will no longer be able to contact me.
                              Reply With Quote
                                #40    
                              Old October 5th, 2009 (4:18 AM).
                              Klofkac's Avatar
                              Klofkac Klofkac is offline
                              He's back!
                                 
                                Join Date: Jun 2009
                                Location: Sharpedo Bluff
                                Age: 21
                                Gender: Male
                                Posts: 337
                                I have terrible problem with texts. I did all in lesson, but is is always bad.
                                Script code:
                                Code:
                                #org $script
                                lock
                                faceplayer
                                message $question
                                $question 1 = Hi, do you like\nthis game?
                                boxset 5
                                compare 0x800D 0x0001
                                if 0x01 goto $yes
                                message $no
                                $no 1 = Ok. Then...
                                boxset 6
                                release
                                end
                                
                                #org $yes
                                message $yes1
                                $yes1 1 = That's great,\nI like you!
                                boxset 6
                                release
                                end
                                In-Game picture:
                                __________________

                                I AM BACK!
                                Reply With Quote
                                  #41    
                                Old October 5th, 2009 (2:34 PM).
                                Katie Skyye's Avatar
                                Katie Skyye Katie Skyye is offline
                                Rubberbandanagramaticalen dar
                                   
                                  Join Date: Mar 2009
                                  Gender: Female
                                  Nature: Mild
                                  Posts: 1
                                  Ergh...

                                  I would rather use XSE since everyone says it's better, but I'd be willing to use Pokéscript for the purpose of learning this...

                                  ...but I am unable to find it. Is it possible to post a link to a download on this forum? If that's not allowed, sorry for asking, but I'm sort of stuck without that program.

                                  So, I figure it would be easier for you to send a link than to make another tutorial about XSE, so I thought I'd ask. Thanks!

                                  Also, you sound exactly like a kid in my class...it's very encouraging. ;D
                                  Reply With Quote
                                    #42    
                                  Old October 8th, 2009 (4:24 PM).
                                  romanceisdead's Avatar
                                  romanceisdead romanceisdead is offline
                                     
                                    Join Date: Sep 2009
                                    Gender: Male
                                    Nature: Relaxed
                                    Posts: 16
                                    i'm having trouble with an oak-like script.
                                    the game just freezes when i reach the script.
                                    __________________
                                    Games I support:

                                    Spoiler:




                                    Reply With Quote
                                      #43    
                                    Old October 9th, 2009 (3:38 PM).
                                    RainDogg54's Avatar
                                    RainDogg54 RainDogg54 is offline
                                    Crown of Love
                                       
                                      Join Date: Oct 2009
                                      Location: arkansas
                                      Gender: Male
                                      Nature: Calm
                                      Posts: 54
                                      Thanks these videos have really have helped me with my hack! But I'm having trouble making a script that gives the player running shoes. Can someone teach me how? I tried giveitem 0x82F 0x01 but I don't think that's how your supposed to do it.. :\ I'm a newbie at scripting obviously
                                      Reply With Quote
                                        #44    
                                      Old October 11th, 2009 (7:50 PM).
                                      saison's Avatar
                                      saison saison is offline
                                      Black Knight of Dusk
                                         
                                        Join Date: Nov 2008
                                        Location: I'm there.
                                        Age: 24
                                        Gender: Male
                                        Nature: Bold
                                        Posts: 17
                                        Okay, so I'm doing a battle script and everything will work fine, the text before you fight, the battle, and the text once you win. Everything will work until I try to talk to the event again after the battle. It will do something different everytime, whether it be lock the player and have a palette screwup or having weird random text appear in the text box.
                                        Code:
                                        #org $script
                                        lock
                                        faceplayer
                                        trainerbattle 0x00 0x01 $see $win
                                        $see 1 = Can you defeat the creator?
                                        $win 1 = Good thing these aren't my Pokemon!
                                        message $after
                                        $after 1 = We'll meet again.
                                        boxset 6
                                        release
                                        end
                                        I'd really appreciate if somebody could help troubleshoot my problem :)
                                        __________________
                                        ~It wasn't fate. Just the turn of a card.~
                                        ~Pokemon White FC: 0948-1520-8911~
                                        Reply With Quote
                                          #45    
                                        Old October 13th, 2009 (12:41 AM).
                                        AmazingCouchPotato's Avatar
                                        AmazingCouchPotato AmazingCouchPotato is offline
                                           
                                          Join Date: Oct 2009
                                          Location: Pallet Town
                                          Gender: Male
                                          Nature: Modest
                                          Posts: 24
                                          These videos are awesome they have helped me a lot, keep up the great work
                                          __________________
                                          RAWR


                                          Help Me Hatch My Egg


                                          Im A Beta Tester For Pokemon Mythic Legends
                                          /Dance ^_^
                                          Reply With Quote
                                            #46    
                                          Old October 16th, 2009 (2:18 PM).
                                          SiegHart's Avatar
                                          SiegHart SiegHart is offline
                                          Guardian of Time
                                             
                                            Join Date: Aug 2009
                                            Location: oklahoma
                                            Age: 26
                                            Gender: Male
                                            Nature: Hasty
                                            Posts: 168
                                            hmm so im watching tutorial five, and i was wondering how i could make an event similar to the oak stopping you when you try to leave town, and then he talks to you... i want to walk out the front door of the house and have a character walk up to you and ask you to help find something, then once u find that item the character walks up to you again and takes the item, and tells you something else...i get all the scripting and movement parts, but how do i make a script activate as soon as i step on a certain tile?
                                            __________________

                                            Spoiler:




                                            Warm my eggs please and ill return the favor
                                            and of course friends are great to have so add me plzz

                                            Click here to feed me a DigiTreat!

                                            Click here to feed me a Rare Candy!

                                            Reply With Quote
                                              #47    
                                            Old October 16th, 2009 (3:50 PM).
                                            saison's Avatar
                                            saison saison is offline
                                            Black Knight of Dusk
                                               
                                              Join Date: Nov 2008
                                              Location: I'm there.
                                              Age: 24
                                              Gender: Male
                                              Nature: Bold
                                              Posts: 17
                                              Okay, I put in a script into the ROM that didn't even work (seeing if I could make a script from nothing, I missed some spacing, that's it) and then for some reason my battle script started to work after the battle o.O

                                              Thanks for putting up these vids :D I'll make sure to reference 'em to people.
                                              __________________
                                              ~It wasn't fate. Just the turn of a card.~
                                              ~Pokemon White FC: 0948-1520-8911~
                                              Reply With Quote
                                                #48    
                                              Old October 16th, 2009 (10:16 PM).
                                              Klofkac's Avatar
                                              Klofkac Klofkac is offline
                                              He's back!
                                                 
                                                Join Date: Jun 2009
                                                Location: Sharpedo Bluff
                                                Age: 21
                                                Gender: Male
                                                Posts: 337
                                                Hey, lesson 6 is deleted! Why?
                                                __________________

                                                I AM BACK!
                                                Reply With Quote
                                                  #49    
                                                Old October 17th, 2009 (9:40 PM).
                                                foullump's Avatar
                                                foullump foullump is offline
                                                Rom Hacking Guru
                                                   
                                                  Join Date: Mar 2007
                                                  Location: United States
                                                  Nature: Calm
                                                  Posts: 220
                                                  Quote:
                                                  Originally Posted by Katie Skyye View Post
                                                  Ergh...

                                                  I would rather use XSE since everyone says it's better, but I'd be willing to use Pokéscript for the purpose of learning this...

                                                  ...but I am unable to find it. Is it possible to post a link to a download on this forum? If that's not allowed, sorry for asking, but I'm sort of stuck without that program.

                                                  So, I figure it would be easier for you to send a link than to make another tutorial about XSE, so I thought I'd ask. Thanks!

                                                  Also, you sound exactly like a kid in my class...it's very encouraging. ;D
                                                  There is a link in the description of the video of lesson 1 on youtube.
                                                  Quote:
                                                  Originally Posted by RainDogg54 View Post
                                                  Thanks these videos have really have helped me with my hack! But I'm having trouble making a script that gives the player running shoes. Can someone teach me how? I tried giveitem 0x82F 0x01 but I don't think that's how your supposed to do it.. :\ I'm a newbie at scripting obviously
                                                  Oooh, so close. Use setflag 0x82F.
                                                  Quote:
                                                  Originally Posted by SiegHart View Post
                                                  hmm so im watching tutorial five, and i was wondering how i could make an event similar to the oak stopping you when you try to leave town, and then he talks to you... i want to walk out the front door of the house and have a character walk up to you and ask you to help find something, then once u find that item the character walks up to you again and takes the item, and tells you something else...i get all the scripting and movement parts, but how do i make a script activate as soon as i step on a certain tile?
                                                  You would need to use the green "script" boxes in advance map. I'll cover that in the lesson 6 follow up eventually.
                                                  Quote:
                                                  Originally Posted by klofkac View Post
                                                  Hey, lesson 6 is deleted! Why?
                                                  I don't know why it was, but I reuploaded it. I'll fix the link now.
                                                  __________________
                                                  Reply With Quote
                                                    #50    
                                                  Old October 18th, 2009 (2:30 AM).
                                                  CookieDough's Avatar
                                                  CookieDough CookieDough is offline
                                                     
                                                    Join Date: Oct 2009
                                                    Gender: Male
                                                    Posts: 11
                                                    Maybe you can also include commands on how to insert the player name, rival name and alot of other /v/h01 etc.... stuff =D I think that would be useful, since I like this way of scripting more then the XSE way :P
                                                    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 3:31 PM.