The PokéCommunity Forums Fan Games ROM Hacking Tools, Tutorials & Resources
Tutorial [TehTehTehTeh's] XSE Basic/Medium tutorial

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

Closed Thread
 
Thread Tools
  #201    
Old December 24th, 2008 (1:37 AM).
Cheesymitten's Avatar
Cheesymitten Cheesymitten is offline
Dukcs
  • Silver Tier
 
Join Date: Aug 2008
Gender: Male
Posts: 1,839
Thanks for taking your time your the best hopefully i won't be asking to many questions next time...O.o

Relevant Advertising!

  #202    
Old December 24th, 2008 (9:07 AM).
Tropical Sunlight's Avatar
Tropical Sunlight Tropical Sunlight is offline
The Faltine
     
    Join Date: Mar 2008
    Location: Slovenia
    Age: 21
    Gender: Male
    Posts: 3,572
    Send a message via Windows Live Messenger to Tropical Sunlight
    Hey just wondering... When are the other parts coming
    ??
    __________________
      #203    
    Old December 24th, 2008 (1:37 PM). Edited December 24th, 2008 by ~Teh Panda~.
    ~Teh Panda~'s Avatar
    ~Teh Panda~ ~Teh Panda~ is offline
    Sea of Dreams - Redux
    • Silver Tier
     
    Join Date: Aug 2007
    Posts: 906
    Quote:
    Originally Posted by Tropical Sunlight View Post
    Hey just wondering... When are the other parts coming
    ??
    Well, i am really busy with my hack right now, so after beta 1.

    EDIT: Part 5 added :)
    __________________




    Mystic still in work to let you know...
      #204    
    Old December 25th, 2008 (2:53 PM).
    iTeruri's Avatar
    iTeruri iTeruri is offline
    iAm
       
      Join Date: May 2006
      Location: The Nederlands
      Nature: Relaxed
      Posts: 277
      Code:
      #dynamic 0x71AABF
      
      #org @start
      
      lock
      checkflag 0x828
      if b_true goto @recieved
      givepokemon 133 5 0 0 0 0
      setflag 0x828
      release
      end 
      
      #org @recieved
      release
      end
      This should give the player a eevee (only once) if they live their room. However, It freezes te game! I tried everything I could think off.
      This is my first day of scripting in hacks (actualy the first time I hack). The stupid thing is that I worked, then I wanted to add a give item so the player has pokéballs but then the script stoped working. I changed some things around, but now I can't get back to the working script.
      Memo to self: always save your script.

      Could someone point me in the right deriction?
        #205    
      Old December 25th, 2008 (3:19 PM).
      пзо's Avatar
      пзо пзо is offline
      zzirRusty
         
        Join Date: Dec 2008
        Nature: Quiet
        Posts: 222
        Fixed. you frogot the 0x0 instead of the 0's

        #dynamic 0x71AABF

        #org @start
        checkflag 0x828
        if b_true goto @recieved
        givepokemon 133 5 0x0 0x0 0x0 0x0

        fanfare 0x13E
        msgbox @got
        boxset 0x2
        waitfanfare
        setflag 0x828
        release
        end

        #Org @got
        = \c\h01\h02You Recieved a EEVEE!

        #org @recieved
        release
        end


        --
        This Script will:

        Give you a Eevee,

        and say, you recieved Eevee.
        and it will play a little sound! xD
        Good luck..
        __________________
        | Pokémon Obsidian | Pokémon Mystical Glacier |
        Yeah, I said it, Pokémon Mystical Glacier..
        Its comming back.. Better than ever.
        Along side Pokémon Obsidian.
          #206    
        Old December 25th, 2008 (3:53 PM).
        ~Teh Panda~'s Avatar
        ~Teh Panda~ ~Teh Panda~ is offline
        Sea of Dreams - Redux
        • Silver Tier
         
        Join Date: Aug 2007
        Posts: 906
        Quote:
        Originally Posted by пзо View Post
        Fixed. you frogot the 0x0 instead of the 0's

        #dynamic 0x71AABF

        #org @start
        checkflag 0x828
        if b_true goto @recieved
        givepokemon 133 5 0x0 0x0 0x0 0x0

        fanfare 0x13E
        msgbox @got
        boxset 0x2
        waitfanfare
        setflag 0x828
        release
        end

        #Org @got
        = \c\h01\h02You Recieved a EEVEE!

        #org @recieved
        release
        end


        --
        This Script will:

        Give you a Eevee,

        and say, you recieved Eevee.
        and it will play a little sound! xD
        Good luck..
        You do not need those x0 at the end. just 0's but I did forget that lol, I was to tired well no excuses thanks
        __________________




        Mystic still in work to let you know...
          #207    
        Old December 26th, 2008 (11:47 AM).
        Makorin's Avatar
        Makorin Makorin is offline
        Ex-ROM Hacker
           
          Join Date: Oct 2007
          Location: The World That Never Was
          Age: 20
          Gender: Male
          Nature: Bashful
          Posts: 337
          Quote:
          Originally Posted by Teruri View Post
          Code:
          #dynamic 0x71AABF
          
          #org @start
          
          lock
          checkflag 0x828
          if b_true goto @recieved
          givepokemon 133 5 0 0 0 0
          setflag 0x828
          release
          end 
          
          #org @recieved
          release
          end
          This should give the player a eevee (only once) if they live their room. However, It freezes te game! I tried everything I could think off.
          This is my first day of scripting in hacks (actualy the first time I hack). The stupid thing is that I worked, then I wanted to add a give item so the player has pokéballs but then the script stoped working. I changed some things around, but now I can't get back to the working script.
          Memo to self: always save your script.

          Could someone point me in the right deriction?
          well just like neo had:

          #dynamic 0x71AABF

          #org @start
          checkflag 0x828
          if b_true goto @recieved
          givepokemon 133 5 0 0 0 0
          fanfare 0x13E
          msgbox @got
          boxset 0x2
          waitfanfare
          setflag 0x828
          release
          end

          #Org @got
          = \c\h01\h02You recieved a EEVEE!

          #org @recieved
          release
          end


          but without the 0x0 just 0 since XSE will change that when you compile...
          but if u have that and it still doesnt work (which it should NOT) there is something in A-map that you must do...

          if you are putting it on a script tile you must change the Var number and the Unknown number
          the most common is 0003 [Unknown] and 4050 [Var Number] (5040 should work for Var number too)
          __________________

          Anime-Planet.com - anime | manga | reviews
            #208    
          Old December 26th, 2008 (3:08 PM).
          iTeruri's Avatar
          iTeruri iTeruri is offline
          iAm
             
            Join Date: May 2006
            Location: The Nederlands
            Nature: Relaxed
            Posts: 277
            Yes, it works. ^^I also made a somewhat bigger script:
            Your dad ask you if you need pokéballs. If you answer yes, he will give you 5. If you say no, he says something along the lines of: Ok, just say so when you need them. A flag is set so you can only do it once.

            However, I still need some help:

            - Trainerbattle, How does it work? I changed an empty trainer with HackMew's A-trainer. How Can I place this trainer on a route? I studied a trainer a bit, but it was very confusing with alot offsets! You should make a tutorial on it.
            - How can you make someone heal your pokémon? I guess it's something with special cause that's what I saw in a PokéCenter script.
              #209    
            Old December 27th, 2008 (3: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 Teruri View Post
            Yes, it works. ^^I also made a somewhat bigger script:
            Your dad ask you if you need pokéballs. If you answer yes, he will give you 5. If you say no, he says something along the lines of: Ok, just say so when you need them. A flag is set so you can only do it once.

            However, I still need some help:

            - Trainerbattle, How does it work? I changed an empty trainer with HackMew's A-trainer. How Can I place this trainer on a route? I studied a trainer a bit, but it was very confusing with alot offsets! You should make a tutorial on it.
            - How can you make someone heal your pokémon? I guess it's something with special cause that's what I saw in a PokéCenter script.
            My I suggest you decompile some in-game scripts with the newest XSE?
            I've updated the guide a lot as well.

            Like I said in the other thread, I suggest the author downloading latest XSE and adjusting the whole post to adjust or remove anything that's outdated, wrong or misleading. Thanks in advance.
            __________________
              #210    
            Old December 27th, 2008 (7:08 AM).
            Cheesymitten's Avatar
            Cheesymitten Cheesymitten is offline
            Dukcs
            • Silver Tier
             
            Join Date: Aug 2008
            Gender: Male
            Posts: 1,839
            Quick question (again) do i need the newest version of XSE for the givepokemon for some reason the one i'm using isn't working which is a bit wierd O.o
              #211    
            Old December 27th, 2008 (7:32 AM).
            HackMew's Avatar
            HackMew HackMew is offline
            Mewtwo Strikes Back
            • Crystal Tier
             
            Join Date: Jun 2006
            Posts: 1,314
            Quote:
            Originally Posted by cheesymitten View Post
            Quick question (again) :) do i need the newest version of XSE for the givepokemon for some reason the one i'm using isn't working which is a bit wierd O.o
            I wonder what are you doing "givepokemon for some reason isn't working" is a bit too generic. Anyways, you don't need the newest version but using the old one doesn't really make sense now.
            __________________
              #212    
            Old February 9th, 2009 (3:23 PM).
            Pokeplayer50's Avatar
            Pokeplayer50 Pokeplayer50 is offline
               
              Join Date: Aug 2008
              Location: USA
              Gender:
              Posts: 11
              XSE doesn't let me compile it when i try to and says "Too less parameters on line 6. The correct number is 2."
                #213    
              Old February 9th, 2009 (3:55 PM).
              ~Teh Panda~'s Avatar
              ~Teh Panda~ ~Teh Panda~ is offline
              Sea of Dreams - Redux
              • Silver Tier
               
              Join Date: Aug 2007
              Posts: 906
              Quote:
              Originally Posted by Pokeplayer50 View Post
              XSE doesn't let me compile it when i try to and says "Too less parameters on line 6. The correct number is 2."
              Ooh this is outdated...

              I may update for the new XSE, please don't post in over month old threads though.

              KThxBai
              __________________




              Mystic still in work to let you know...
                #214    
              Old February 20th, 2009 (3:14 PM).
              bardock10's Avatar
              bardock10 bardock10 is offline
                 
                Join Date: Feb 2009
                Gender:
                Posts: 6
                What do I do when it says too many parameters on line 6.The correct number is 2
                help
                  #215    
                Old February 20th, 2009 (3:19 PM).
                ~Teh Panda~'s Avatar
                ~Teh Panda~ ~Teh Panda~ is offline
                Sea of Dreams - Redux
                • Silver Tier
                 
                Join Date: Aug 2007
                Posts: 906
                Quote:
                Originally Posted by bardock10 View Post
                What do I do when it says too many parameters on line 6.The correct number is 2
                help
                Please dont post here until i make my updates ^.^ i am going to after I take care of my hack, but this is not up to date with some of the XSE updates, your script is pretty much right, you will just need to fix it up with the new param.'s so look at some other tut.'s to fix it on up
                __________________




                Mystic still in work to let you know...
                  #216    
                Old May 2nd, 2009 (5:10 AM).
                Niroshi Niroshi is offline
                Legendary Pokemon Master
                   
                  Join Date: Apr 2009
                  Age: 27
                  Gender:
                  Nature: Relaxed
                  Posts: 1
                  Send a message via Windows Live Messenger to Niroshi Send a message via Yahoo to Niroshi
                  i understant most of this, ive read 6 pages of this thread....but when itry to script a simple talk it tells me my message line is missing a dynamic label. heres the script:
                  #dynamic 0x800000
                  #org @start
                  lock
                  faceplayer
                  msgbox @ Talk( IT tells me i need 2 parameters, thats why i spaced)
                  #define BOXSET_NORMAL 0x6
                  release
                  end


                  #org @Talk
                  = [blue_fr]This is my first script
                  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:26 AM.