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
  #51    
Old June 17th, 2008 (7:48 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 Eeveon View Post
Hey, I finally made a yes/no script now.
Haven't been trying to script in a while.
What would a give item script look like?
A basic one would look like this, just incorporate a givepokemon event into the script where you want it to be.

Code:
#dynamic 0x800000

#org @givepokemon
lock
faceplayer
Message @give
boxset 6
givepokemon 1 5 0 0 0 0
release
end

@org @give
= Here is a Bulbasaur
__________________




Mystic still in work to let you know...

Relevant Advertising!

  #52    
Old June 17th, 2008 (8:08 PM).
Tyrantrum's Avatar
Tyrantrum Tyrantrum is offline
ʕ´•ᴥ•`ʔ
  • Crystal Tier
 
Join Date: Oct 2007
Location: New Jersey
Age: 23
Gender: Male
Nature: Lonely
Posts: 5,811
Um, I said give ITEM..........................

~EDIT~
Wouldn't the running shoes be a special?
How would I make a script to give a player the running shoes, and then not give the player the running shoes again?
__________________




(x) Tumblr
(y) Twitter
Previously Eeveon
  #53    
Old June 18th, 2008 (5:56 AM).
Coral Coral is offline
IceCharizard's brother
     
    Join Date: Jun 2008
    Location: Grass Valley
    Gender:
    Nature: Jolly
    Posts: 60
    My XSE won't recognize @org!
      #54    
    Old June 18th, 2008 (6:04 AM).
    adiktus's Avatar
    adiktus adiktus is offline
       
      Join Date: May 2008
      Nature: Hardy
      Posts: 248
      It's #org, not @org. # is for offsets..
      __________________
      *´¨) Love life! Get paid!! Get laid!!!!
      ¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
      (¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
        #55    
      Old June 18th, 2008 (10:28 AM).
      ~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 Eeveon View Post
      Um, I said give ITEM..........................

      ~EDIT~
      Wouldn't the running shoes be a special?
      How would I make a script to give a player the running shoes, and then not give the player the running shoes again?
      What game are you editing? Ruby, Firered, specials differ in each game

      They are flags

      Firered:
      Code:
      setflag 0x82F
      Ruby:
      Code:
      setflag 0x860
      __________________




      Mystic still in work to let you know...
        #56    
      Old June 18th, 2008 (10:32 AM).
      Tyrantrum's Avatar
      Tyrantrum Tyrantrum is offline
      ʕ´•ᴥ•`ʔ
      • Crystal Tier
       
      Join Date: Oct 2007
      Location: New Jersey
      Age: 23
      Gender: Male
      Nature: Lonely
      Posts: 5,811
      Sry it's Fire Red.
      What would a script look like that gives the player running shoes, and when u obtain them, u talk to the same person again and they don't give them to u again?
      __________________




      (x) Tumblr
      (y) Twitter
      Previously Eeveon
        #57    
      Old June 18th, 2008 (10:33 AM).
      ~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 Eeveon View Post
      Sry it's Fire Red.
      What would a script look like that gives the player running shoes, and when u obtain them, u talk to the same person again and they don't give them to u again?
      Well that would be a simple setflag and check it, you would set the running shoes flag and check for it. I put the flags up on the last post to
      __________________




      Mystic still in work to let you know...
        #58    
      Old June 18th, 2008 (10:47 AM).
      Tyrantrum's Avatar
      Tyrantrum Tyrantrum is offline
      ʕ´•ᴥ•`ʔ
      • Crystal Tier
       
      Join Date: Oct 2007
      Location: New Jersey
      Age: 23
      Gender: Male
      Nature: Lonely
      Posts: 5,811
      Quote:
      Originally Posted by hockeypanda32 View Post
      Well that would be a simple setflag and check it, you would set the running shoes flag and check for it. I put the flags up on the last post to
      Well, unfortunately, I don't really understand flags....
      __________________




      (x) Tumblr
      (y) Twitter
      Previously Eeveon
        #59    
      Old June 18th, 2008 (3:19 PM).
      adiktus's Avatar
      adiktus adiktus is offline
         
        Join Date: May 2008
        Nature: Hardy
        Posts: 248
        Flags are simple. You use a flag originally unset. When you check the flag the first time (unset, value is 0) you go to the give running shoes script.. in that script, you set the flag (value is 1). Next time you talk to the person, the flag is checked, but because its now set, another script is called..

        While we're talking about flags and specials, I've a question..
        Lets say in emerald, you receive the national dex.. its special 0x16f.. Does flag 0x16f get set when you receive the dex?
        __________________
        *´¨) Love life! Get paid!! Get laid!!!!
        ¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
        (¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
          #60    
        Old June 18th, 2008 (3:44 PM).
        Tyrantrum's Avatar
        Tyrantrum Tyrantrum is offline
        ʕ´•ᴥ•`ʔ
        • Crystal Tier
         
        Join Date: Oct 2007
        Location: New Jersey
        Age: 23
        Gender: Male
        Nature: Lonely
        Posts: 5,811
        OH, so u put the same flag as the special?
        __________________




        (x) Tumblr
        (y) Twitter
        Previously Eeveon
          #61    
        Old June 18th, 2008 (3:48 PM).
        adiktus's Avatar
        adiktus adiktus is offline
           
          Join Date: May 2008
          Nature: Hardy
          Posts: 248
          I'm not sure. That's why I'm asking if checkflag 0x16f also means checking if you've got the national dex. However, for running shoes, its a flag.. not a special.. so you just check the flag for the running shoes.
          __________________
          *´¨) Love life! Get paid!! Get laid!!!!
          ¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
          (¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
            #62    
          Old June 18th, 2008 (3:52 PM).
          Tyrantrum's Avatar
          Tyrantrum Tyrantrum is offline
          ʕ´•ᴥ•`ʔ
          • Crystal Tier
           
          Join Date: Oct 2007
          Location: New Jersey
          Age: 23
          Gender: Male
          Nature: Lonely
          Posts: 5,811
          Well, I'm still a little confused and need an example script.
          I'm fairly new to scripting since XSE is the only scripting tool that works on my computer.
          __________________




          (x) Tumblr
          (y) Twitter
          Previously Eeveon
            #63    
          Old June 18th, 2008 (7:40 PM).
          adiktus's Avatar
          adiktus adiktus is offline
             
            Join Date: May 2008
            Nature: Hardy
            Posts: 248
            @eeveon

            #org @start
            checkflag 0x82f
            if 1 goto @done
            setflag 0x82f
            message @received
            boxset 6
            end

            #org @done
            message @oh
            boxset 6
            end

            #org @received
            = You received running shoes.

            #org @oh
            = Oh, you already have a pair.
            __________________
            *´¨) Love life! Get paid!! Get laid!!!!
            ¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
            (¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
              #64    
            Old June 18th, 2008 (9:09 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 adiktus View Post
            @eeveon

            #org @start
            checkflag 0x82f
            if 1 goto @done
            setflag 0x82f
            message @received
            boxset 6
            end

            #org @done
            message @oh
            boxset 6
            end

            #org @received
            = You received running shoes.

            #org @oh
            = Oh, you already have a pair.
            thanks for showing the example mate, I am too tired to now XD
            __________________




            Mystic still in work to let you know...
              #65    
            Old June 19th, 2008 (3:55 AM).
            Coral Coral is offline
            IceCharizard's brother
               
              Join Date: Jun 2008
              Location: Grass Valley
              Gender:
              Nature: Jolly
              Posts: 60
              Hm.
              I tried to use this script:

              Code:
              #dynamic 0x800000
              
              #org @givepokemon
              lock
              faceplayer
              Message @Char
              boxset 6
              givepokemon 4 5 0 0 0 0
              release
              end
              
              #org @Char
              = I'd better take my CHARMANDER with me!
              It works perfectly, but it doesn't make a sound and when I press START, there's no POKEMON (just BAG, [player], OPTIONS, SAVE, EXIT)

              Is there a special command to do this?
                #66    
              Old June 19th, 2008 (4:55 AM). Edited June 19th, 2008 by Tropical Sunlight.
              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 it's 0x828

                Try it like this:

                Quote:
                #dynamic 0x800000

                #org @givepokemon
                lock
                faceplayer
                Message @Char
                boxset 6
                givepokemon 4 5 0 0 0 0
                fanfare 0x13E
                setflag 0x828
                release
                end

                #org @Char
                = I'd better take my CHARMANDER with me!
                But then it doesn't disappear. Strange (or am I just a noob?)
                __________________
                  #67    
                Old June 19th, 2008 (6:03 AM). Edited June 19th, 2008 by chaotic_soma.
                chaotic_soma's Avatar
                chaotic_soma chaotic_soma is offline
                Chaotic little devil anyone?
                   
                  Join Date: Feb 2008
                  Location: Under your bed!!
                  Gender:
                  Nature: Quirky
                  Posts: 27
                  okay for both the charizards try this i just tested it and it works:

                  #dynamic 0x2DD2BE

                  #org @givepokemon
                  checkflag 0x206
                  if b_true goto @recieved
                  lock
                  faceplayer
                  Message @give
                  boxset 6
                  setflag 0x206
                  givepokemon 1 5 0 0 0 0
                  fanfare 0x13E
                  release
                  end

                  #org @give
                  = Here is a Bulbasaur

                  #org @recieved
                  lock
                  faceplayer
                  message @cheap
                  boxset 6
                  release end

                  #org @cheap
                  = don't be cheap!

                  enjoy :3
                  __________________
                  When i said said "guh!?" i really meant to say "GRAAAAA!!!"
                    #68    
                  Old June 19th, 2008 (6:18 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
                    I don't understand...

                    252525252525
                    __________________
                      #69    
                    Old June 19th, 2008 (6:33 AM).
                    chaotic_soma's Avatar
                    chaotic_soma chaotic_soma is offline
                    Chaotic little devil anyone?
                       
                      Join Date: Feb 2008
                      Location: Under your bed!!
                      Gender:
                      Nature: Quirky
                      Posts: 27
                      Quote:
                      Originally Posted by IceCharizard View Post
                      I don't understand...

                      252525252525
                      What don't you get? What were you aiming for?
                      __________________
                      When i said said "guh!?" i really meant to say "GRAAAAA!!!"
                        #70    
                      Old June 19th, 2008 (1:14 PM).
                      ~Teh Panda~'s Avatar
                      ~Teh Panda~ ~Teh Panda~ is offline
                      Sea of Dreams - Redux
                      • Silver Tier
                       
                      Join Date: Aug 2007
                      Posts: 906
                      Beta 1 should be out soon enough like a week or two after my beta testers get it ready and bug reports flow in.... Than beta 1 than I hopefully continue this tut!
                      __________________




                      Mystic still in work to let you know...
                        #71    
                      Old June 20th, 2008 (5:25 AM).
                      chaotic_soma's Avatar
                      chaotic_soma chaotic_soma is offline
                      Chaotic little devil anyone?
                         
                        Join Date: Feb 2008
                        Location: Under your bed!!
                        Gender:
                        Nature: Quirky
                        Posts: 27
                        Hey i know that this is the wrong this is the wrong spot to ask this but i can't for the life of me find where i am supposed to put this i need a simple "don't go into the grass till you have a pokemon" script. obviously for XSE i never learnt it before so yeah help
                        __________________
                        When i said said "guh!?" i really meant to say "GRAAAAA!!!"
                          #72    
                        Old June 20th, 2008 (5:55 AM).
                        Charliezard's Avatar
                        Charliezard Charliezard is offline
                        A wild shroomish appeared!
                        • Crystal Tier
                         
                        Join Date: May 2007
                        Location: Australia
                        Age: 25
                        Gender: Male
                        Posts: 1,276
                        Ummm, I'm tired lol an yeh...maybe try something like

                        Code:
                        #Dynamic 0x80000
                        
                        #ORG @GrassMaybe
                        
                        lock
                        checkflag 0x828
                        if 0x0 goto @NoEntry
                        release
                        end
                        
                        #ORG @NoEntry
                        ~Talking Script~
                        ~Movement script~
                        0x828 is the pokemon menu flag so yeh. Sorry, that's all I really know lol, I'm having problems with the movement myself. I got help from Hackmew, made the changes and well he said it worked for him -_- Just me lol. I'll be best to try when I'm not tired lol
                          #73    
                        Old June 20th, 2008 (6:11 AM).
                        chaotic_soma's Avatar
                        chaotic_soma chaotic_soma is offline
                        Chaotic little devil anyone?
                           
                          Join Date: Feb 2008
                          Location: Under your bed!!
                          Gender:
                          Nature: Quirky
                          Posts: 27
                          Quote:
                          Originally Posted by Onvoloper View Post
                          Ummm, I'm tired lol an yeh...maybe try something like

                          Code:
                          #Dynamic 0x80000
                          
                          #ORG @GrassMaybe
                          
                          lock
                          checkflag 0x828
                          if 0x0 goto @NoEntry
                          release
                          end
                          
                          #ORG @NoEntry
                          ~Talking Script~
                          ~Movement script~
                          0x828 is the pokemon menu flag so yeh. Sorry, that's all I really know lol, I'm having problems with the movement myself. I got help from Hackmew, made the changes and well he said it worked for him Just me lol. I'll be best to try when I'm not tired lol
                          Hey thanks *freaks out* I never learned movement either!!!
                          so hmm maybe i should talk to Hackmew...
                          __________________
                          When i said said "guh!?" i really meant to say "GRAAAAA!!!"
                            #74    
                          Old June 20th, 2008 (6:20 AM).
                          Master_Track's Avatar
                          Master_Track Master_Track is offline
                          ROM Reaverz Scripter
                             
                            Join Date: Mar 2008
                            Location: Austria
                            Age: 24
                            Gender:
                            Nature: Brave
                            Posts: 916
                            Send a message via Windows Live Messenger to Master_Track
                            movements are easy.
                            a basic don't go out script would look like this:

                            #dynamic 0x[offset]

                            #org @begin
                            checkflag 0x828
                            if B_true goto @done
                            lock
                            message @stop
                            boxset 0x6
                            applymovement 0xFF @1
                            waitmovement 0
                            release
                            end

                            #org @done
                            release
                            end

                            #org @stop
                            = I shouldn't go out without\na pokemon!

                            #org @1
                            #binary 0x10 0xFE

                            This will make you go done 1 tile.
                            Movement lists can be found in thethethethe's pokescript tutorial for both FR/BG and R/S/E.
                            __________________

                            *Busy with school*

                              #75    
                            Old June 20th, 2008 (6:26 AM).
                            chaotic_soma's Avatar
                            chaotic_soma chaotic_soma is offline
                            Chaotic little devil anyone?
                               
                              Join Date: Feb 2008
                              Location: Under your bed!!
                              Gender:
                              Nature: Quirky
                              Posts: 27
                              Quote:
                              Originally Posted by Master_Track View Post
                              movements are easy.
                              a basic don't go out script would look like this:

                              #dynamic 0x[offset]

                              #org @begin
                              checkflag 0x828
                              if B_true goto @done
                              lock
                              message @stop
                              boxset 0x6
                              applymovement 0xFF @1
                              waitmovement 0
                              release
                              end

                              #org @done
                              release
                              end

                              #org @stop
                              = I shouldn't go out without\na pokemon!

                              #org @1
                              #binary 0x10 0xFE

                              This will make you go done 1 tile.
                              Movement lists can be found in thethethethe's pokescript tutorial for both FR/BG and R/S/E.

                              hey omg thank you so much! *crash tackles master_track* you are my new friend!!!
                              __________________
                              When i said said "guh!?" i really meant to say "GRAAAAA!!!"
                              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 1:19 PM.