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

Draconius GO
Reply
 
Thread Tools
  #26    
Old September 12th, 2013 (3:48 PM).
manadhon's Avatar
manadhon manadhon is offline
RTX-008L
     
    Join Date: May 2013
    Location: Khazad-dûm
    Age: 19
    Gender: Male
    Nature: Lax
    Posts: 118
    Manadhon to the rescue again.

    Rewritten and tested:
    Code:
    #dyn 0x740002
    #org @main
    lock
    faceplayer
    checkflag FR_POKEMON
    if == jump @End
    message @Text 
    callstd MSG_YESNO
    compare LASTRESULT YES
    if == jump @Give_Torchic
    jump @No
    
    #org @No
    message @Nope
    callstd MSG_NORMAL
    release
    end 
    
    #org @Give_Torchic
    countpokemon
    compare LASTRESULT 0x6
    if < call @Give
    message @Room
    callstd MSG_NORMAL
    release
    end
    
    #org @Give
    addpokemon TORCHIC 5 NONE 0 0 0
    fanfare 0x101
    message @Get_Msg
    callstd MSG_NOCLOSE
    waitfanfare
    closemsg
    message @Nikname
    callstd MSG_YESNO
    compare LASTRESULT YES
    if == call @Yes
    setflag FR_POKEMON
    release
    end
    
    #org @End
    message @Around
    callstd MSG_NORMAL
    release
    end
    
    #org @Yes
    fadescreen FADEOUT_BLACK
    special NAME_POKEMON
    waitspecial
    setflag FR_POKEMON
    return
    
    #org @Text
    = ????: Hey, kid! I got this\nrare Pok\emon, and, well,\ldo you want it?
    
    #org @Nope
    = ????: Hmph...\pI hope you know you're missing\nout on the chance of a lifetime.
    
    #org @Room
    = ????: What, you don't even have\nroom? Come back when you do.
    
    #org @Around
    = ????: I got that in Hoenn,\nso don't worry about me stealing\lit or anything. Maybe I'll see\lyou around.
    
    #org @Get_Msg
    = \v\h01 recieved a Torchic!
    
    #org @Nikname
    = Would you like to give\nTorchic a nickname?
    To start off, make sure your checkflag is at the beginning of the script. Instead of using if twice, use compare LASTRESULT for yes (or no) and jump for the opposite. Don't use :end unless you have a message prepared. Otherwise, jump to another offset (like myself).
    The storepokemon command is unnecessary, since you're only using one Pokemon. The showmsg and waitbutton are unnecessary as well, just use callstd. Lastly, there was no pointer to noroom-msg.

    Modify the script to your needs, and feel free to ask if you have any further questions and/or problems.
    __________________
    "You can't lie to the Moon!"

    The (self-appointed) co-leader of H.O.A.G.I.E.
    Reply With Quote

    Relevant Advertising!

      #27    
    Old September 13th, 2013 (7:26 AM). Edited September 13th, 2013 by graphicsturtle123.
    graphicsturtle123's Avatar
    graphicsturtle123 graphicsturtle123 is offline
       
      Join Date: Sep 2013
      Gender: Female
      Posts: 6
      I'm making a new script where you have to pay 10 pokedollars to get a pokemon but when I compile it a message comes up saying extra characters on line ignoring. What am I doing wrong?
      Reply With Quote
        #28    
      Old September 17th, 2013 (9:33 PM).
      superluke's Avatar
      superluke superluke is offline
         
        Join Date: Sep 2013
        Posts: 8
        I copied the script that dragon456 used but when i ran it i found my self not at victory road but at silph co. dose any one know what went wrong?
        Reply With Quote
          #29    
        Old September 18th, 2013 (1:04 PM).
        manadhon's Avatar
        manadhon manadhon is offline
        RTX-008L
           
          Join Date: May 2013
          Location: Khazad-dûm
          Age: 19
          Gender: Male
          Nature: Lax
          Posts: 118
          I'm going to address both of you:

          Graphicsturtle123: Send me the script, and I'll help you

          Superluke: use Advance Map for map values. If that doesn't help, contact me.
          __________________
          "You can't lie to the Moon!"

          The (self-appointed) co-leader of H.O.A.G.I.E.
          Reply With Quote
            #30    
          Old September 19th, 2013 (10:03 AM).
          graphicsturtle123's Avatar
          graphicsturtle123 graphicsturtle123 is offline
             
            Join Date: Sep 2013
            Gender: Female
            Posts: 6
            Quote:
            #dyn 0x740004
            #org @main
            lock
            faceplayer
            checkflag FR_POKEMON
            if == jump @End
            showmoney 0x0 0x0
            message @Text
            callstd MSG_YESNO
            compare LASTRESULT YES
            if == jump @Check Money
            jump @No

            #org @No
            message @Nope
            callstd MSG_NORMAL
            release
            end

            #org @Check Money
            checkmoney 0x10 0x0 0x0
            compare LASTRESULT 0x1
            if == jump @Give_Oshawott
            jump @nomoney

            #org @Give_Oshawott
            countpokemon
            compare LASTRESULT 0x6
            if < call @Give
            message @Room
            callstd MSG_NORMAL
            release
            end

            #org @nomoney
            message @notenoughmoney
            release
            end

            #org @Give
            addpokemon MAGIKARP 5 NONE 0 0 0
            fanfare 0x101
            message @Get_Msg
            callstd MSG_NOCLOSE
            waitfanfare
            closemsg
            message @Nikname
            callstd MSG_YESNO
            compare LASTRESULT YES
            if == call @Yes
            setflag FR_POKEMON
            paymoney 10 0
            updatemoney 0 0 0
            hidemoney 0 0
            release
            end

            #org @End
            message @Around
            callstd MSG_NORMAL
            release
            end

            #org @Yes
            fadescreen FADEOUT_BLACK
            special NAME_POKEMON
            waitspecial
            setflag FR_POKEMON
            return

            #org @Text
            = ????: Hey, kid! I got this\nrare Pok\emon, and, well,\ldo you want it?

            #org @Nope
            = ????: Hmph...\pI hope you know you're missing\nout on the chance of a lifetime.

            #org @Room
            = ????: What, you don't even have\nroom? Come back when you do.

            #org @Around
            = ????: What are you saying? /p It's not an OSHAWOTT? /n Well it is what it is, and you/ponly paid $10 for it - what do you expect?

            #org @Get_Msg
            = \v\h01 recieved an OSHAWOTT!

            #org @Nikname
            = Would you like to give\nOshawott a nickname?

            #org @notenoughmoney
            = ????: You have some cheek, /pcoming here and then not buying my /nthings[.]
            This is it.....................
            Reply With Quote
              #31    
            Old November 10th, 2013 (5:34 AM).
            ContestTrainer's Avatar
            ContestTrainer ContestTrainer is offline
            YamiiVance
               
              Join Date: Oct 2011
              Location: The Void
              Gender: Other
              Nature: Bashful
              Posts: 7
              Hey I made this script for the normal pokedex but everytime I make my character go get it, they obtain it but then the game just freezes its very upsetting, could you Please show me what I'm doing wrong. Thank you!

              #dyn 0x740000
              #org @start
              '-----------------------------------
              message 0x87402DB ' You've stolen a Poke...
              callstd MSG_LOCK ' Built-in lock command
              special 0x829
              release
              end


              #org 0x87402DB
              = You've stolen a Pokedex!
              Reply With Quote
                #32    
              Old April 4th, 2014 (1:25 PM).
              Terff's Avatar
              Terff Terff is offline
              the unimportant
                 
                Join Date: Nov 2013
                Location: United States
                Age: 19
                Gender: Male
                Nature: Quirky
                Posts: 53
                So I've been working on scripting Leaf green and I can't find the offset for the champion battle, I want to edit his text but I just can't find the offset anywhere.
                __________________
                RAH RAH RAH LADIDARAA
                STEEL TYPE SAFARI
                -Ferrothorn
                -Metang
                -Klefki
                Heres my Y FC:
                4184 2997 2224 PM me before you add me

                PM me for safaris I'm looking for! (I got a bunch)
                Reply With Quote
                  #33    
                Old April 6th, 2014 (8:57 PM).
                Sniper's Avatar
                Sniper Sniper is offline
                ふゆかい
                   
                  Join Date: Nov 2013
                  Location: Philippines
                  Gender: Male
                  Nature: Quiet
                  Posts: 1,453
                  Quote:
                  Originally Posted by Terff View Post
                  So I've been working on scripting Leaf green and I can't find the offset for the champion battle, I want to edit his text but I just can't find the offset anywhere.
                  I don't know if this helps. Go to advance map, go the the place where the champion is, click the champion, copy the offset or open offset.
                  __________________


                  Reply With Quote
                    #34    
                  Old April 22nd, 2014 (8:08 AM).
                  The Void's Avatar
                  The Void The Void is offline
                  hiiiii
                     
                    Join Date: May 2010
                    Location: MOTHA RUSSIA
                    Gender: Male
                    Nature: Calm
                    Posts: 1,416
                    Alright, so I updated this thing, and added two more tutorials. Any and all questions are always welcome.
                    __________________
                    Όφις ην μη φάγη όφιν, δράκων ου γενήσεται.
                    Reply With Quote
                      #35    
                    Old June 23rd, 2014 (9:11 PM).
                    RuFF's Avatar
                    RuFF RuFF is offline
                    Hope you're having a RuFF day!
                       
                      Join Date: Aug 2012
                      Location: Philippines
                      Age: 19
                      Gender: Male
                      Nature: Lonely
                      Posts: 359
                      can you give us a list of commands in pksv and how do i use reappear and disappear
                      because when i used the disappear it reappears and when i used reappear it wont appear
                      __________________
                      My Hack:
                      Reply With Quote
                        #36    
                      Old June 24th, 2014 (7:14 AM).
                      AkameTheBulbasaur's Avatar
                      AkameTheBulbasaur AkameTheBulbasaur is offline
                      Akame Marukawa of Iyotono
                         
                        Join Date: May 2013
                        Location: A place :D
                        Age: 20
                        Gender: Male
                        Nature: Gentle
                        Posts: 329
                        Quote:
                        can you give us a list of commands in pksv and how do i use reappear and disappear
                        because when i used the disappear it reappears and when i used reappear it wont appear
                        I don't know too much about the "reappear" command, but I can help you with "disappear."

                        When you want a sprite on the map to disappear after a certain event, like being talked to, you need to know the Person Event Number. You can find this by going on Advancemap, clicking the events tab and clicking the person event in question. If you look to the right you'll see a list of information. The Person Event Number should be displayed underneath the "delete event" button.

                        Once you have that, you need to write the script. For the disappearing part, I usually go with this:

                        Fadescreen FADEOUT_BLACK
                        disappear 0x(Person Event Number)
                        fadescreed FADEIN_BLACK


                        I do this because it looks better in game, but the fade screens aren't too important. The next thing you need to do is make the event stay gone once it disappears. For that, you'll need to set a flag.

                        setflag 0x###

                        That number can be anything, just remember to write it down because that number can't be used for any other flag. After you've set the flag, just click on the Person Event you want to disappear and find the Person ID. It should be close to the "open script" button. Set the person ID to the number of the flag you set and BOOM! Your person should stay gone after the script ends.

                        I'm sorry I can't help you with reappearing, but my guess is that it would use the same concepts at disappear.
                        __________________
                        "The human sacrificed himself, to save the Pokemon. I pitted them against each other, but not until they set aside their differences did I see the true power they all share deep inside. I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are." -Mewtwo
                        Reply With Quote
                          #37    
                        Old June 25th, 2014 (4:51 AM).
                        RuFF's Avatar
                        RuFF RuFF is offline
                        Hope you're having a RuFF day!
                           
                          Join Date: Aug 2012
                          Location: Philippines
                          Age: 19
                          Gender: Male
                          Nature: Lonely
                          Posts: 359
                          Quote:
                          Originally Posted by AkameTheBulbasaur View Post
                          I don't know too much about the "reappear" command, but I can help you with "disappear."

                          When you want a sprite on the map to disappear after a certain event, like being talked to, you need to know the Person Event Number. You can find this by going on Advancemap, clicking the events tab and clicking the person event in question. If you look to the right you'll see a list of information. The Person Event Number should be displayed underneath the "delete event" button.

                          Once you have that, you need to write the script. For the disappearing part, I usually go with this:

                          Fadescreen FADEOUT_BLACK
                          disappear 0x(Person Event Number)
                          fadescreed FADEIN_BLACK


                          I do this because it looks better in game, but the fade screens aren't too important. The next thing you need to do is make the event stay gone once it disappears. For that, you'll need to set a flag.

                          setflag 0x###

                          That number can be anything, just remember to write it down because that number can't be used for any other flag. After you've set the flag, just click on the Person Event you want to disappear and find the Person ID. It should be close to the "open script" button. Set the person ID to the number of the flag you set and BOOM! Your person should stay gone after the script ends.

                          I'm sorry I can't help you with reappearing, but my guess is that it would use the same concepts at disappear.
                          Thanks. This will help. I manage to know how to use the reappear
                          __________________
                          My Hack:
                          Reply With Quote
                            #38    
                          Old August 13th, 2014 (7:08 PM).
                          WAFFAHOUSE WAFFAHOUSE is offline
                             
                            Join Date: Aug 2014
                            Posts: 25
                            Hey I'm currently making a rom hack of fire red and I've followed all your instructions on making a person give you the national dex and I can't get them to do anything but tell me they're gonna give me the dex... They never give it to me though. Please email me [email protected]. I really need to have national dex for my rom hack since I have so many pokes that won't evolve
                            Thanks!
                            Ps
                            Please messege me back I need you bad bro I've googled this for like two wks now and no luck until I ran upon your page... But still haven't fully got it down
                            Reply With Quote
                              #39    
                            Old August 14th, 2014 (12:40 AM).
                            WAFFAHOUSE WAFFAHOUSE is offline
                               
                              Join Date: Aug 2014
                              Posts: 25
                              Quote:
                              Originally Posted by The Void View Post
                              Well, that's easy as well.

                              Just use this code:

                              Code:
                              special FR_NATIONAL_DEX
                              You can use that after your message saying that you'll upgrade his/her Pokedex. Example:

                              Code:
                              #dyn 0x740000
                              #org @main
                              lock
                              faceplayer
                              message @upgradepokedex
                              callstd MSG_NORMAL
                              special FR_NATIONAL_DEX
                              release
                              end
                              
                              #org @upgradepokedex
                              = I'll upgrade your Pokedex for you.


                              Can you please elaborate. Is this a script generator thing? If so. Which steps do I take to get this done? Been trying for weeks
                              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 5:39 AM.