ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

TrollandToad.com
Closed Thread
 
Thread Tools
  #2301    
Old September 28th, 2009 (9:57 PM).
Lyzo's Avatar
Lyzo Lyzo is offline
On vacation
     
    Join Date: Mar 2007
    Location: The Netherlands
    Age: 22
    Gender: Male
    Nature: Bold
    Posts: 252
    Quote:
    Originally Posted by Larvitar170 View Post
    Game: Fire Red
    Type: Both a Person event
    Editor: XSE
    Script: A warp event
    Spoiler:
    #dynamic 0x721c90

    #org @start
    checkflag 0x828
    if 0x1 goto @1
    if 0x0 goto @2
    release
    end

    #org @1
    lock
    faceplayer
    msgbox @warp 0x1
    warp 0x4 0x3 0x3 0x06 0x0C
    release
    end

    #org @2
    lock
    faceplayer
    msgbox @done 0x6
    release
    end

    #org @warp
    = Hi. Miles here.\nJust gonna warp you to the next area.

    #org @done
    = I see you have a pokemon.

    Not sure, but I don't think you can use checkflag that way...

    Try this:
    Spoiler:
    Code:
    #dynamic 0x800000
    
    #org @start
    checkflag 0x828
    if 0x1 goto @1
    lock
    faceplayer
    msgbox @done 0x6
    release
    end
    
    #org @1
    lock
    faceplayer
    msgbox @warp 0x1
    warp 0x4 0x3 0x3 0x06 0x0C
    release
    end
    
    #org @warp
    = Hi. Miles here.\nJust gonna warp you to the next area.
    
    #org @done
    = I see you have a pokemon.


    If this doesn't work please tell us where the script goes wrong, because mabye something with the warp is wrong.
    __________________


    Thank you The Blueprint !!!

    Relevant Advertising!

      #2302    
    Old September 29th, 2009 (5:28 AM). Edited September 29th, 2009 by Larvitar170.
    Larvitar170's Avatar
    Larvitar170 Larvitar170 is offline
    Noobie hacker
       
      Join Date: Jul 2009
      Location: Kentucky.
      Gender: Male
      Nature: Modest
      Posts: 66
      Game: Fire Red
      Type: Warp/person
      Editor: XSE
      Script:
      Spoiler:
      #dynamic 0x721c90

      #org @start
      checkflag 0x828
      if 0x1 goto @1
      lock
      faceplayer
      msgbox @done 0x6
      release
      end

      #org @1
      lock
      faceplayer
      msgbox @warp 0x1
      warp 0x4 0x3 0x3 0x06 0x0C
      release
      end

      #org @warp
      = Hi. Miles here.\nJust gonna warp you to the next area.

      #org @done
      = I see you have a pokemon.


      Whenever I use 0x1, it goes to the @done, but when I use 0x0, my person ends up becoming and item, and it says that [player] picked up the item. The actual warp works fine, but I would rather not pick up an item.
      __________________
      Current project: Pokemon Mud Brown (Working Title, will be changed.)
      No link because I haven't made a page for it yet.
      Team: Myself as mapper, scripter, and spriter.Brandinokthx as spriter.

        #2303    
      Old September 29th, 2009 (7:27 AM).
      Haku.'s Avatar
      Haku. Haku. is offline
      (FLAME)...H....A...K..U
         
        Join Date: Jan 2008
        Location: Singapore :D
        Gender: Male
        Nature: Quiet
        Posts: 386
        Quote:
        Originally Posted by Larvitar170 View Post
        Game: Fire Red
        Type: Warp/person
        Editor: XSE
        Script:
        Spoiler:
        #dynamic 0x721c90

        #org @start
        checkflag 0x828
        if 0x1 goto @1
        lock
        faceplayer
        msgbox @done 0x6
        release
        end

        #org @1
        lock
        faceplayer
        msgbox @warp 0x1
        warp 0x4 0x3 0x3 0x06 0x0C
        release
        end

        #org @warp
        = Hi. Miles here.\nJust gonna warp you to the next area.

        #org @done
        = I see you have a pokemon.


        Whenever I use 0x1, it goes to the @done, but when I use 0x0, my person ends up becoming and item, and it says that [player] picked up the item. The actual warp works fine, but I would rather not pick up an item.

        try this
        Spoiler:
        dynamic 0x721c90
        #org @start
        checkflag 0x828
        if 0x1 goto @1
        lock
        faceplayer
        msgbox @warp 0x1
        warp 0x4 0x3 0xFF 0x06 0x0C
        release
        end

        #org @1
        lock
        faceplayer
        msgbox @done 0x6
        release
        end

        #org @warp
        = Hi. Miles here.\nJust gonna warp you to the next area.
        #org @done
        = I see you have a pokemon.
        __________________

          #2304    
        Old September 29th, 2009 (11:24 AM).
        Larvitar170's Avatar
        Larvitar170 Larvitar170 is offline
        Noobie hacker
           
          Join Date: Jul 2009
          Location: Kentucky.
          Gender: Male
          Nature: Modest
          Posts: 66
          Quote:
          Originally Posted by xmouvelianx View Post
          try this
          Spoiler:
          dynamic 0x721c90
          #org @start
          checkflag 0x828
          if 0x1 goto @1
          lock
          faceplayer
          msgbox @warp 0x1
          warp 0x4 0x3 0xFF 0x06 0x0C
          release
          end

          #org @1
          lock
          faceplayer
          msgbox @done 0x6
          release
          end

          #org @warp
          = Hi. Miles here.\nJust gonna warp you to the next area.
          #org @done
          = I see you have a pokemon.
          It is still giving me an item. I just tried to change flags and use 1000, but it still gave me an item, then warped. It won't do the talking part, and it is giving an item. The item isn't showing up in the inventory, and the warp puts me in the right spot. It is just strange that it is doing a give item on this script.
          Spoiler:
          dynamic 0x721c90
          #org @start
          checkflag 0x828
          if 0x1 goto @1
          lock
          faceplayer
          msgbox @warp 0x1
          warp 0x4 0x3 0xFF 0x06 0x0C
          release
          end

          #org @1
          lock
          faceplayer
          msgbox @done 0x6
          release
          end

          #org @warp
          = Hi. Miles here.\nJust gonna warp you to the next area.
          #org @done
          = I see you have a pokemon.
          __________________
          Current project: Pokemon Mud Brown (Working Title, will be changed.)
          No link because I haven't made a page for it yet.
          Team: Myself as mapper, scripter, and spriter.Brandinokthx as spriter.

            #2305    
          Old September 29th, 2009 (11:27 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,504
          Quote:
          Originally Posted by Larvitar170 View Post
          It is still giving me an item. I just tried to change flags and use 1000, but it still gave me an item, then warped. It won't do the talking part, and it is giving an item. The item isn't showing up in the inventory, and the warp puts me in the right spot. It is just strange that it is doing a give item on this script.
          Put lock and faceplayer before checkflag and ya wanna person just to warp ya?
          __________________
          ROM hacking FAQ - Read before asking how to play a hack.

          Anime List | PSN Trophy List
            #2306    
          Old September 29th, 2009 (12:11 PM).
          Larvitar170's Avatar
          Larvitar170 Larvitar170 is offline
          Noobie hacker
             
            Join Date: Jul 2009
            Location: Kentucky.
            Gender: Male
            Nature: Modest
            Posts: 66
            Guys...I had my script in the wrong order using the wrong command. I had the script putting the warp in the wrong spot. I have it figured out. Sorry to waste your all's time.
            __________________
            Current project: Pokemon Mud Brown (Working Title, will be changed.)
            No link because I haven't made a page for it yet.
            Team: Myself as mapper, scripter, and spriter.Brandinokthx as spriter.

              #2307    
            Old September 29th, 2009 (1:33 PM).
            TheDon's Avatar
            TheDon TheDon is offline
            Pokemon (kinda) Expert
               
              Join Date: Apr 2008
              Age: 26
              Gender:
              Nature: Lonely
              Posts: 41
              Hm, it worked with that particular script (thanks a lot. :D), but now I'm trying to do it with a trainer script.

              Spoiler:
              #dynamic 0x800000

              #org @start
              lock
              faceplayer
              checkflag 0x200
              if 0x1 goto @done
              trainerbattle 0x1 0x17A 0x0 @before @after @later
              end

              #org @before
              = Hey, \v\h01! Remember me from\nSLATEPORT?\pYou must be a pretty\ndecent trainer by now, so what do\lyou say to a battle?

              #org @after
              = Wow, you're pretty good, \v\h01!

              #org @later
              msgbox @1 0x6
              giveitem 0xAA 0x01 MSG_OBTAIN
              msgbox @3 0x6
              applymovement 32 @move
              hidesprite 0x800F
              setflag 0x200
              release
              end

              #org @done
              release
              end

              #org @1
              = Not bad, \v\h01! I'm impressed.\nTake this with you.

              #org @3
              = That's a SALAC BERRY. It will\nboost your POKEMON's SPEED when it\lgets weak. It can only be used\lonce, though, so use it wisely!\pAnyway, I gotta go talk to the boss\nabout something soon, so I'll

              see\lyou later.

              #org @move
              #raw 0x0A 0x08 0x08 0x08 0x08 0xFE


              The battle goes fine, and the giveitem works fine, but when the after-battle dialogue finishes, and I get the item, the sprite I'm talking to disappears before the movement is even started. Any help?
              __________________


              85% of all Wi-Fi teams include either a Salamence, Scizor or Blissey. If you're one of the 15% who think outside the box, copy and paste this into your sig.
              -TheDon
                #2308    
              Old September 29th, 2009 (2:06 PM).
              destinedjagold's Avatar
              destinedjagold destinedjagold is offline
              Oh Hai Thar~
              • Silver Tier
               
              Join Date: May 2007
              Location: Philippines
              Age: 27
              Gender: Male
              Nature: Careful
              Posts: 8,573
              Quote:
              Originally Posted by TheDon View Post
              Spoiler:
              #dynamic 0x800000

              #org @start
              lock
              faceplayer
              checkflag 0x200
              if 0x1 goto @done
              trainerbattle 0x1 0x17A 0x0 @before @after @later
              end

              #org @before
              = Hey, \v\h01! Remember me from\nSLATEPORT?\pYou must be a pretty\ndecent trainer by now, so what do\lyou say to a battle?

              #org @after
              = Wow, you're pretty good, \v\h01!

              #org @later
              msgbox @1 0x6
              giveitem 0xAA 0x01 MSG_OBTAIN
              msgbox @3 0x6
              applymovement 32 @move
              waitmovement 0x0
              hidesprite 0x800F
              setflag 0x200
              release
              end

              #org @done
              release
              end

              #org @1
              = Not bad, \v\h01! I'm impressed.\nTake this with you.

              #org @3
              = That's a SALAC BERRY. It will\nboost your POKEMON's SPEED when it\lgets weak. It can only be used\lonce, though, so use it wisely!\pAnyway, I gotta go talk to the boss\nabout something soon, so I'll

              see\lyou later.

              #org @move
              #raw 0x0A 0x08 0x08 0x08 0x08 0xFE
              Fixed in red...
              Don't forget the waitmovement or the pause commands after your applymovement commands.
              __________________


              FC: 0061-1111-6462
              TSV: 1364(X), 0790(OR)

                #2309    
              Old September 29th, 2009 (4:21 PM).
              TheDon's Avatar
              TheDon TheDon is offline
              Pokemon (kinda) Expert
                 
                Join Date: Apr 2008
                Age: 26
                Gender:
                Nature: Lonely
                Posts: 41
                TYVM, destinedjagold. :D

                Such a simple mistake. :facepalm:
                __________________


                85% of all Wi-Fi teams include either a Salamence, Scizor or Blissey. If you're one of the 15% who think outside the box, copy and paste this into your sig.
                -TheDon
                  #2310    
                Old September 29th, 2009 (7:46 PM).
                Haku.'s Avatar
                Haku. Haku. is offline
                (FLAME)...H....A...K..U
                   
                  Join Date: Jan 2008
                  Location: Singapore :D
                  Gender: Male
                  Nature: Quiet
                  Posts: 386
                  Spoiler:
                  dynamic 0x721c90
                  #org @start
                  checkflag 0x828
                  if 0x1 goto @1
                  lock
                  faceplayer
                  msgbox @warp 0x6
                  warp 0x4 0x3 0xFF 0x06 0x0C
                  release
                  end

                  #org @1
                  lock
                  faceplayer
                  msgbox @done 0x6
                  release
                  end

                  #org @warp
                  = Hi. Miles here.\nJust gonna warp you to the next area.
                  #org @done
                  = I see you have a pokemon.


                  i saw the prob..
                  __________________

                    #2311    
                  Old September 30th, 2009 (4:49 AM).
                  Satoshi Sugimori's Avatar
                  Satoshi Sugimori Satoshi Sugimori is offline
                  Hermit
                     
                    Join Date: Dec 2006
                    Location: Tokyo, Japan
                    Age: 25
                    Gender: Male
                    Nature: Timid
                    Posts: 862
                    Is there something wrong with this script?

                    This is after I compiled it in XSE.
                    Spoiler:
                    '---------------
                    #org 0x8008F7
                    checkflag 0x1001
                    if 0x1 goto 0x880098E
                    applymovement MOVE_PLAYER 0x8800AD6
                    waitmovement 0x0
                    msgbox 0x8800998 MSG_NORMAL '"[red_fr][player]: What is that sou..."
                    applymovement MOVE_PLAYER 0x8800AD9
                    waitmovement 0x0
                    applymovement 0x1 0x8800AEA
                    waitmovement 0x0
                    msgbox 0x88009F6 MSG_NORMAL '"[orange_fr]PICHU: Piiiiii...\nPICH..."
                    msgbox 0x8800A39 MSG_NORMAL '"[red_fr][player]: Do you want to c..."
                    msgbox 0x8800A5F MSG_NORMAL '"[orange_fr]PICHU: PIIII!!!!"
                    msgbox 0x8800A75 MSG_NORMAL '"[red_fr][player]: That sounds like..."
                    applymovement 0x1 0x8800AEF
                    waitmovement 0x0
                    givepokemon 0xAC 0x5 0x0 0x0 0x0 0x0
                    fanfare 0x13E
                    msgbox 0x8800A96 MSG_NORMAL '"[red_fr][player]: I got a PICHU!"
                    waitfanfare
                    closeonkeypress
                    setflag 0x828
                    setflag 0x829
                    msgbox 0x8800AAE MSG_YESNO '"Do you want to give PICHU\na nickn..."
                    compare LASTRESULT 0x1
                    if 0x1 call 0x8800991
                    hidesprite LASTTALKED
                    setflag 0x1001
                    release
                    end

                    '---------------
                    #org 0x80098E
                    release
                    end

                    '---------------
                    #org 0x800991
                    call 0x81A74EB
                    return

                    '---------------
                    #org 0x1A74EB
                    fadescreen 0x1
                    special 0x9E
                    waitstate
                    return


                    '---------
                    ' Strings
                    '---------
                    #org 0x800998
                    = [red_fr][player]: What is that sound?\nLooks like it comes from behind \pthese trees.\nLet's take a look!

                    #org 0x8009F6
                    = [orange_fr]PICHU: Piiiiii...\nPICHU! PICHU!\pPii.. Pi..Piiii!\nPi pi Pichu?

                    #org 0x800A39
                    = [red_fr][player]: Do you want to come with me?

                    #org 0x800A5F
                    = [orange_fr]PICHU: PIIII!!!!

                    #org 0x800A75
                    = [red_fr][player]: That sounds like a yes!

                    #org 0x800A96
                    = [red_fr][player]: I got a PICHU!

                    #org 0x800AAE
                    = Do you want to give PICHU\na nickname?


                    '-----------
                    ' Movements
                    '-----------
                    #org 0x800AD6
                    #raw 0x63 'Question Mark (?)
                    #raw 0xFE 'End of Movements

                    #org 0x800AD9
                    #raw 0x13 'Step Right (Normal)
                    #raw 0x10 'Step Down (Normal)
                    #raw 0x10 'Step Down (Normal)
                    #raw 0x10 'Step Down (Normal)
                    #raw 0x10 'Step Down (Normal)
                    #raw 0x10 'Step Down (Normal)
                    #raw 0x10 'Step Down (Normal)
                    #raw 0x10 'Step Down (Normal)
                    #raw 0x12 'Step Left (Normal)
                    #raw 0x10 'Step Down (Normal)
                    #raw 0x12 'Step Left (Normal)
                    #raw 0x12 'Step Left (Normal)
                    #raw 0x12 'Step Left (Normal)
                    #raw 0x1 'Face Up
                    #raw 0x62 'Exclamation Mark (!)
                    #raw 0xFE 'End of Movements

                    #org 0x800AEA
                    #raw 0x63 'Question Mark (?)
                    #raw 0x0 'Face Down
                    #raw 0x66 'Happy ()
                    #raw 0xFE 'End of Movements

                    #org 0x800AEF
                    #raw 0x66 'Happy ()
                    #raw 0xFE 'End of Movements
                    __________________
                      #2312    
                    Old September 30th, 2009 (8:59 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,504
                    What's wrong with it?
                    Beside the thing that msgboxes don't have callstds
                    __________________
                    ROM hacking FAQ - Read before asking how to play a hack.

                    Anime List | PSN Trophy List
                      #2313    
                    Old September 30th, 2009 (9:01 AM).
                    Satoshi Sugimori's Avatar
                    Satoshi Sugimori Satoshi Sugimori is offline
                    Hermit
                       
                      Join Date: Dec 2006
                      Location: Tokyo, Japan
                      Age: 25
                      Gender: Male
                      Nature: Timid
                      Posts: 862
                      well when I walk over the script tile it doesnt react, and it can't be the numbers in the script tile because I use the ones I always have used and always have worked..
                      __________________
                        #2314    
                      Old September 30th, 2009 (10:30 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,504
                      Quote:
                      Originally Posted by ~Satoshi Sugimori~ View Post
                      well when I walk over the script tile it doesnt react, and it can't be the numbers in the script tile because I use the ones I always have used and always have worked..
                      I see... ya have to change var number... ya cannot use the same always... so if ya for example used 4050 use 4055 for example for this script... and also 0003 unknown
                      __________________
                      ROM hacking FAQ - Read before asking how to play a hack.

                      Anime List | PSN Trophy List
                        #2315    
                      Old September 30th, 2009 (12:08 PM).
                      Satoshi Sugimori's Avatar
                      Satoshi Sugimori Satoshi Sugimori is offline
                      Hermit
                         
                        Join Date: Dec 2006
                        Location: Tokyo, Japan
                        Age: 25
                        Gender: Male
                        Nature: Timid
                        Posts: 862
                        ok i'll try that
                        __________________
                          #2316    
                        Old September 30th, 2009 (3:11 PM).
                        Bayonetta's Avatar
                        Bayonetta Bayonetta is offline
                           
                          Join Date: Apr 2009
                          Posts: 34
                          Im having trouble compilign this script, when i compile it, it doesnt save the whole thing, from 16 lines, it only writes 13, why is this happening?
                          Is something wrong with this script? I made one like this not so long ago and it worked perfectly, and still does.

                          Spoiler:

                          '---------------
                          #org 0x800E35
                          playsong 0x157 0x0
                          msgbox 0x8800E45 MSG_FACE '"Hmm...\nAre you a Puppeter?\pI see..."
                          special 0x3B
                          playsong 0x109 0x0
                          trainerbattle 0x0 0x23 0x0 0x8800E45 0x8800E55
                          msgbox 0x8800E75 MSG_NORMAL '"Very Good.\nLet me introduce mysel..."
                          nop
                          setflag 0x1530
                          special 0x13D
                          hidesprite LASTTALKED
                          giveitem 0x5E 0x1 MSG_FIND
                          end

                          '---------
                          ' Strings
                          '---------
                          #org 0x800E45
                          = Hmm...\nAre you a Puppeter?\pI see.\nWell then.\pLet me test your skills.\pSpell Battle!

                          #org 0x800E55
                          = Asdfg!

                          #org 0x800E75
                          = Very Good.\nLet me introduce myself.\pMy name is Link.\nYou are very skilled.\pWe will meet again.
                            #2317    
                          Old September 30th, 2009 (4:01 PM).
                          NarutoActor's Avatar
                          NarutoActor NarutoActor is offline
                          The rocks cry out to me
                          • Silver Tier
                           
                          Join Date: Jan 2009
                          Location: Brooklyn/Marlboro
                          Age: 24
                          Gender: Female
                          Nature: Bashful
                          Posts: 1,979
                          two things you should fix
                          note shis proberly wont fix your problem but you should take this into consideration
                          A) remove the nop it dose nothing its just raw# 0x00 its a waist of space and what kind of mesage is asdfg , thats the home row keys + "g"
                          __________________
                          ~There are those people who understand hex, F the rest
                            #2318    
                          Old October 1st, 2009 (3:17 PM).
                          TheDon's Avatar
                          TheDon TheDon is offline
                          Pokemon (kinda) Expert
                             
                            Join Date: Apr 2008
                            Age: 26
                            Gender:
                            Nature: Lonely
                            Posts: 41
                            Game: Pokemon Ruby
                            Type: Move Tutor script
                            Editor: XSE
                            Script:
                            Spoiler:
                            #dynamic 0x800000

                            #org @Start
                            lock
                            faceplayer
                            checkflag 0x200
                            if b_true goto @1
                            msgbox @WantToLearn 0x5
                            compare LASTRESULT 0x0
                            if b_true goto @2
                            setvar 0x8005 0x0 ' 0x1D
                            special 0x18D
                            setflag 0x200
                            release
                            end

                            #org @1
                            msgbox @AlreadyLearned 0x6
                            release
                            end

                            #org @2
                            msgbox @DontWant 0x6
                            release
                            end

                            #org @AlreadyLearned
                            = I'm sorry. I can do this only once.

                            #org @WantToLearn
                            = Do you want me to teach one of\nyour POKEMON the move HEADBUTT?

                            #org @DontWant
                            = No? That's a shame. Come back\nanytime when you've changed your\lmind.


                            When I select 'Yes', the game resets. >.
                            __________________


                            85% of all Wi-Fi teams include either a Salamence, Scizor or Blissey. If you're one of the 15% who think outside the box, copy and paste this into your sig.
                            -TheDon
                              #2319    
                            Old October 2nd, 2009 (4:06 AM).
                            Fr0z3n's Avatar
                            Fr0z3n Fr0z3n is offline
                               
                              Join Date: Mar 2009
                              Posts: 53
                              Hi there, I was using XSE, and every time I compile the script below.. It says that the script is too big for the offset or something.
                              Spoiler:

                              #dynamic 0xE3CF84

                              #org @start
                              lock
                              faceplayer
                              msgbox @beautiyesno 0x5
                              if 0x1 goto @yes
                              if 0x0 goto @no
                              release
                              end

                              #org @beautiyesno
                              = Do you think the POK\h1BMON here\nare wonderful?

                              #org @yes
                              = Really, you do to. Everyone must\nfeel the same about pokemon.

                              #org @no
                              = Oh, how can you not find\nPOK\h1BMON wonderful. Don't bother\lanswering that.
                              __________________
                              To be or not to be is a question asked by many... But many do not know what the answer is to this question.



                              75% of Pokemon gamers use cheats and specially made codes to make their pokemon battle-worthy. If you are one of the 25% percent that level their Pokemon up legally, put this in your signature.
                                #2320    
                              Old October 2nd, 2009 (4:12 AM).
                              Pokepal17's Avatar
                              Pokepal17 Pokepal17 is offline
                              More cowbell~
                              • Silver Tier
                               
                              Join Date: Oct 2008
                              Location: Steeltown
                              Age: 23
                              Gender: Male
                              Nature: Modest
                              Posts: 1,517
                              Quote:
                              Originally Posted by Fr0z3n View Post
                              Hi there, I was using XSE, and every time I compile the script below.. It says that the script is too big for the offset or something.
                              Spoiler:

                              #dynamic 0xE3CF84

                              #org @start
                              lock
                              faceplayer
                              msgbox @beautiyesno 0x5
                              compare 0x800D 0x1
                              if 0x1 goto @yes
                              msgbox @no 0x2
                              end

                              #org @yes
                              msgbox @yeah 0x2
                              end

                              #org @beautiyesno
                              = Do you think the POK\h1BMON here\nare wonderful?

                              #org @yeah
                              = Really, you do to. Everyone must\nfeel the same about pokemon.

                              #org @no
                              = Oh, how can you not find\nPOK\h1BMON wonderful. Don't bother\lanswering that.

                              No, you were missing somethings in the script. I'll bold what you needed.
                              __________________
                              Pokémon Stardrop
                                #2321    
                              Old October 2nd, 2009 (4:36 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,504
                              Quote:
                              Originally Posted by TheDon View Post
                              Game: Pokemon Ruby
                              Type: Move Tutor script
                              Editor: XSE
                              Script:
                              Spoiler:
                              #dynamic 0x800000

                              #org @Start
                              lock
                              faceplayer
                              checkflag 0x200
                              if b_true goto @1
                              msgbox @WantToLearn 0x5
                              compare LASTRESULT 0x0
                              if b_true goto @2
                              setvar 0x8005 0x0 ' 0x1D
                              special 0x18D
                              setflag 0x200
                              release
                              end

                              #org @1
                              msgbox @AlreadyLearned 0x6
                              release
                              end

                              #org @2
                              msgbox @DontWant 0x6
                              release
                              end

                              #org @AlreadyLearned
                              = I'm sorry. I can do this only once.

                              #org @WantToLearn
                              = Do you want me to teach one of\nyour POKEMON the move HEADBUTT?

                              #org @DontWant
                              = No? That's a shame. Come back\nanytime when you've changed your\lmind.


                              When I select 'Yes', the game resets. >.<
                              setvar 0x8005 0x0 ' 0x1D
                              Isn't ' cause of problem? I think that ' is considered to be command which ends the line if it's longer then ya wanna
                              __________________
                              ROM hacking FAQ - Read before asking how to play a hack.

                              Anime List | PSN Trophy List
                                #2322    
                              Old October 2nd, 2009 (7:07 AM).
                              TheDon's Avatar
                              TheDon TheDon is offline
                              Pokemon (kinda) Expert
                                 
                                Join Date: Apr 2008
                                Age: 26
                                Gender:
                                Nature: Lonely
                                Posts: 41
                                Quote:
                                Originally Posted by Ash493 View Post
                                setvar 0x8005 0x0 ' 0x1D
                                Isn't ' cause of problem? I think that ' is considered to be command which ends the line if it's longer then ya wanna

                                The script wouldn't compile because I had too less parameters when I did that. So I tried changing this:

                                Spoiler:
                                if b_true goto @2
                                setvar 0x8005 0x0 ' 0x1D
                                special 0x18D
                                setflag 0x200
                                release
                                end


                                To this:

                                Spoiler:

                                if b_true goto @2
                                setvar 0x8005 0x1D
                                special 0x18D
                                setflag 0x200
                                release
                                end


                                And it did the same thing. XSE is telling me that special 0x18D can only have one parameter (0x18D itself), and setvar can only have 2, so where would I define the move to be taught?
                                __________________


                                85% of all Wi-Fi teams include either a Salamence, Scizor or Blissey. If you're one of the 15% who think outside the box, copy and paste this into your sig.
                                -TheDon
                                  #2323    
                                Old October 2nd, 2009 (11:42 AM).
                                Pokepal17's Avatar
                                Pokepal17 Pokepal17 is offline
                                More cowbell~
                                • Silver Tier
                                 
                                Join Date: Oct 2008
                                Location: Steeltown
                                Age: 23
                                Gender: Male
                                Nature: Modest
                                Posts: 1,517
                                Quote:
                                Originally Posted by TheDon View Post
                                The script wouldn't compile because I had too less parameters when I did that. So I tried changing this:

                                Spoiler:
                                if b_true goto @2
                                setvar 0x8005 0x0 ' 0x1D
                                special 0x18D
                                setflag 0x200
                                release
                                end


                                To this:

                                Spoiler:

                                if b_true goto @2
                                setvar 0x8005 0x1D00
                                special 0x18D
                                setflag 0x200
                                release
                                end


                                And it did the same thing. XSE is telling me that special 0x18D can only have one parameter (0x18D itself), and setvar can only have 2, so where would I define the move to be taught?
                                Varibales can have a 16-bit/2 byte/word value.
                                So the setvar will be able to support the move. I think you want this. Changes in bold.
                                __________________
                                Pokémon Stardrop
                                  #2324    
                                Old October 3rd, 2009 (4:22 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,578
                                  Base ROM: Firered English
                                  Script type: Person
                                  Script:
                                  Spoiler:
                                  #include stditems.rbh

                                  #dynamic 0x88888888888888888888888888888888888888

                                  #org @start
                                  lock
                                  faceplayer
                                  checkflag 0x1003
                                  compare LASTRESULT 0x1
                                  if 0x1 goto @ended
                                  checkflag 0x1001
                                  compare LASTRESULT 0x1
                                  if 0x1 goto @set1001
                                  checkflag 0x1002
                                  compare LASTRESULT 0x1
                                  if 0x1 goto @set1002
                                  checkitem ITEM_SITRUSBERRY 0x1
                                  compare LASTRESULT 0x1
                                  if 0x1 goto @havesb
                                  checkitem ITEM_MOOMOOMILK 0x1
                                  compare LASTRESULT 0x1
                                  if 0x1 goto @havemmm
                                  msgbox @whatineed MSG_NORMAL
                                  release
                                  end

                                  #org @havesb
                                  applymovement 0x1 @kl
                                  msgbox @havesbsay MSG_NORMAL
                                  removeitem ITEM_SITRUSBERRY 0x1
                                  setflag 0x1001
                                  release
                                  end

                                  #org @ended
                                  msgbox @wish MSG_NORMAL
                                  release
                                  end

                                  #org @havesbsay
                                  = Yes, that's it!\nThat's a SITRUS BERRY!\pNow give it to me.

                                  #org @havemmmsay
                                  = Yes, that's it!\nThat's a MOOMOO MILK!\pNow give it to me.

                                  #org @wish
                                  = I wish you best of luck on your\njourney.

                                  #org @havemmm
                                  applymovement 0x1 @kl
                                  msgbox @havemmmsay MSG_NORMAL
                                  removeitem ITEM_MOOMOOMILK 0x1
                                  setflag 0x1002
                                  release
                                  end

                                  #org @whatineed
                                  = You came here to get a PIKA-CHEW,\nright?\pWell, to tell the truth, I kind of\nran out of ingredients to make\lone. So, I'm going to need you to\lbring them to me.\pI need a SITRUS BERRY and a bottle\nof MOOMOO MILK.\pThe sooner you bring them to me,\nthe sooner you'll get your\lPIKA-CHEW, got it?

                                  #org @set1001
                                  checkflag 0x1002
                                  compare LASTRESULT 0x1
                                  if 0x1 goto @givepikachew
                                  msgbox @youonlyneedmmm MSG_NORMAL
                                  release
                                  end

                                  #org @set1002
                                  checkflag 0x1001
                                  compare LASTRESULT 0x1
                                  if 0x1 goto @givepikachew
                                  msgbox @youonlyneedsb MSG_NORMAL
                                  release
                                  end

                                  #org @youonlyneedmmm
                                  = Great!\nNow I only need a MOOMOO MILK.

                                  #org @youonlyneedsb
                                  = Great!\nNow I only need a SITRUS BERRY.

                                  #org @givepikachew
                                  msgbox @icanpn MSG_NORMAL
                                  applymovement 0x1 @prepare
                                  pause 0x100
                                  applymovement 0x1 @comeback
                                  msgbox @give MSG_NORMAL
                                  giveitem ITEM_GOLDTEETH 0x1 MSG_OBTAIN
                                  setflag 0x1003
                                  release
                                  end

                                  #org @icanpn
                                  = That's it!\pNow I have both. Wait here while I\nmake a PIKA-CHEW for you.

                                  #org @give
                                  = Here you go, you deserve it!

                                  #org @kl
                                  #raw 0x62 0x52 0x52 0xFE

                                  #org @prepare
                                  #raw 0x11 0x13 0x11 0x11 0x60 0xFE

                                  #org @comeback
                                  #raw 0x61 0x10 0x10 0x12 0x10 0xFE

                                  Error: Whenever I give him the item, the flag 1003 automatically sets itself. Why?
                                  E.g. let's say I give him the Moomoo Milk. When I ask him again, he'll say 'I wish you best of luck on your journey.' but I don't know why.
                                  __________________
                                    #2325    
                                  Old October 3rd, 2009 (11:03 AM).
                                  TheDon's Avatar
                                  TheDon TheDon is offline
                                  Pokemon (kinda) Expert
                                     
                                    Join Date: Apr 2008
                                    Age: 26
                                    Gender:
                                    Nature: Lonely
                                    Posts: 41
                                    Quote:
                                    Originally Posted by Pokepal17 View Post
                                    Varibales can have a 16-bit/2 byte/word value.
                                    So the setvar will be able to support the move. I think you want this. Changes in bold.
                                    It's still doing the same thing. >.<

                                    Might it be because I'm trying to use a Ruby ROM? Is the move tutor event even programmed in it?
                                    __________________


                                    85% of all Wi-Fi teams include either a Salamence, Scizor or Blissey. If you're one of the 15% who think outside the box, copy and paste this into your sig.
                                    -TheDon
                                    Closed Thread

                                    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 8:14 PM.