The PokéCommunity Forums Fan Games ROM Hacking
Script Help Thread (DO NOT REQUEST SCRIPTS)

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


Closed Thread
 
Thread Tools
  #7051    
Old July 8th, 2012 (8:51 PM).
miksy91's Avatar
miksy91 miksy91 is offline
Dark Energy is back in action! ;)
     
    Join Date: Oct 2008
    Location: Finland
    Gender: Male
    Posts: 1,445
    Quote:
    Originally Posted by thanethane98 View Post
    Hey everyone, I'm back with another script issue. So I tried using Shinyzer so that I could cause a wild battle with a shiny through a script, but so far all that happens when you talk to the Pokemon is that the game freezes. I tested it without the lines that are supposed to be used for the shiny Pokemon (callasm and setvar), and it worked, but obviously it doesn't otherwise. Does anyone know what I've done wrong?

    Game: Pokemon Firered
    Type: Person Event
    Editor: XSE
    Script:
    Spoiler:
    '---------------
    #org 0x74126B
    lock
    faceplayer
    msgbox 0x8741298 MSG_NORMAL '"RATTATA: SQUEAK!"
    cry 0x13 0x0
    callasm 0x8005001
    setvar 0x8003 0x1
    wildbattle 0x13 0x5 0x8B
    fadescreen 0x1
    fadescreen 0x0
    hidesprite LASTTALKED
    setflag 0x205
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x741298
    = RATTATA: SQUEAK!
    First of all, have you tried whether the script runs properly without calling the assembly code like you've done? If so, I'd advise you to remove the assembly code it calls as of now and re-write it (not sure what Shinyzer does exactly but feel free to try with it again if it serves the needed purpose).

    Another way would be by writing it in assembly which really isn't that hard because I remember Hackmew posting a specific step-by-step tutorial how to do it (correct me if I'm wrong here). Only thing you need to do is to download an assembly editor that supports GBA games (that use this kind of assembly system) and write the code like he explained.
    __________________
    Pokémon Dark Energy
    Some of my ROM hacking related stuff

    Relevant Advertising!

      #7052    
    Old July 8th, 2012 (8:59 PM). Edited July 8th, 2012 by thanethane98.
    thanethane98's Avatar
    thanethane98 thanethane98 is offline
    Self Proclaimed Expert
       
      Join Date: Jun 2012
      Nature: Relaxed
      Posts: 82
      Quote:
      Originally Posted by miksy91 View Post
      First of all, have you tried whether the script runs properly without calling the assembly code like you've done? If so, I'd advise you to remove the assembly code it calls as of now and re-write it (not sure what Shinyzer does exactly but feel free to try with it again if it serves the needed purpose).

      Another way would be by writing it in assembly which really isn't that hard because I remember Hackmew posting a specific step-by-step tutorial how to do it (correct me if I'm wrong here). Only thing you need to do is to download an assembly editor that supports GBA games (that use this kind of assembly system) and write the code like he explained.
      Yeah, as I said, I removed the assembly code and ran the script without any issues. Shinyzer basically puts the assembly code in the gba rom for you (at least, that's what I'm assuming it does). I'll try adding it manually and see if that fixes it (unless somebody else knows what I did wrong with my script).
      __________________
      Back and ROM hacking again!
        #7053    
      Old July 8th, 2012 (9:34 PM).
      Diegoisawesome's Avatar
      Diegoisawesome Diegoisawesome is offline
      Oh god the bees
       
      Join Date: Dec 2007
      Location: :noitacoL
      Age: 21
      Gender: Male
      Nature: Naive
      Posts: 1,046
      Quote:
      Originally Posted by thanethane98 View Post
      Yeah, as I said, I removed the assembly code and ran the script without any issues. Shinyzer basically puts the assembly code in the gba rom for you (at least, that's what I'm assuming it does). I'll try adding it manually and see if that fixes it (unless somebody else knows what I did wrong with my script).
      Shinyzer doesn't require a callasm. The ASM is called in the ROM once var 0x8003 is set. Keep the setvar, remove the callasm and it should work.
      __________________


      My other resources:
      My Website
      diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
      diegoisawesome's Miscellaneous Finds
      The Ruins of Alph Puzzles
      Diego's Miscellaneous Patches
      GBA Intro Manager
      The Secret Sauce: Triple-Layer Tiles
        #7054    
      Old July 8th, 2012 (9:38 PM).
      thanethane98's Avatar
      thanethane98 thanethane98 is offline
      Self Proclaimed Expert
         
        Join Date: Jun 2012
        Nature: Relaxed
        Posts: 82
        Quote:
        Originally Posted by diegoisawesome View Post
        Shinyzer doesn't require a callasm. The ASM is called in the ROM once var 0x8003 is set. Keep the setvar, remove the callasm and it should work.
        Thanks, I'll try it tomorrow. Unfortunately, I managed to screw up all the tiles on the ROM I was working on by hardly paying attention while hex editing (this was at about 12:30 A.M.), and then overwrote my backup. Yeah, not my best moment... Luckily all the scripts are backed up, and that's most of my progress right now.
        __________________
        Back and ROM hacking again!
          #7055    
        Old July 9th, 2012 (3:01 AM).
        Shaf's Avatar
        Shaf Shaf is offline
        Lonely MadNooB Trainer
           
          Join Date: Jun 2012
          Location: Dhaka, Bangladesh
          Gender: Male
          Nature: Lonely
          Posts: 16
          Here i have made one script its for making a person to give me a pokemon.
          I dunno how to make the girl stop giving me pokemon even after i have
          took pokemon once from her!
          Quote:
          #dynamic 0x6B3552
          #org @start
          lock
          faceplayer
          msgbox 0x86B2BB8 '"Want this pokemon?"
          callstd 0x5
          checkflag 0x828
          compare LASTRESULT 0x0
          if 0x1 goto 0x86B2989
          countpokemon
          compare LASTRESULT 0x6
          if 0x1 goto @htfsd
          msgbox @pkmndk

          callstd 0x4
          setflag 0x10A
          fanfare 0x172
          msgbox2 @rcvebkpk '"[player] received the PKMN."
          waitfanfare
          waitmsgbox
          givepokemon 0x198 0x64 0x1 0x0 0xE9E3D3 0xDB
          release

          #org 0x6B2989
          msgbox 0x86B29C8 '"As Your Wsh :D."
          boxset 0x4
          release
          end

          #org @htfsd
          msgbox 0x86B3515 '"Oh? You've too many POKéMON.\nThere..."
          callstd 0x4
          release
          end

          '---------
          ' Strings
          '---------
          #org 0x6B2BB8
          = Want this pokemon?

          #org 0x6B29C8
          = I can't give you anymore.

          #org 0x6B3515
          = Oh? You've too many POKéMON.\nThere's no room for this pkmn...

          #org @rcvebkpk
          = [player] received the PKMN.

          #org @pkmndk
          = Take Care!Sanoyara!
          Thanks and please help
          __________________
          GAMES I SUPPORT:





          FanClubs I'm IN!
            #7056    
          Old July 10th, 2012 (5:15 AM).
          +N30N_J3ST3R+'s Avatar
          +N30N_J3ST3R+ +N30N_J3ST3R+ is offline
          Pokemon Black Chasm Director
             
            Join Date: Jul 2012
            Age: 18
            Gender: Male
            Nature: Quiet
            Posts: 11
            I cant figure out what is wrong with this script, any help is appreciated!
            Spoiler:

            #org $begin
            lock
            faceplayer
            checkflag 0x3200
            if b_true goto $allready got one
            message $poke
            $poke 1 = Hey you, want a Rilou? Well I dont care, Take it!
            boxset 5
            compare LASTRESULT 1
            if 1 goto $get
            message $You already got one!
            $You allready got one! 1 = Alright
            boxset 6
            release
            end
            #org $get
            lock
            message $get1
            $get1 1 =Alright here you go!
            boxset 6
            givepokemon 64 16 0
            message %received
            %received 1 =PLAYER received Rilou
            Boxset 6
            setflag 0x3200
            release
            end
            #org $alreadygotone
            lock
            faceplayer
            message $how
            4how 1 =How is my Rilou?
            boxset 6
            release end.
            __________________
            Making the world a better place-one pokemon at a time! :cheeky:
            ----------------------------------------------------------------------------
            This is a group-Not a team!
            ----------------------------------------------------------------------------
            Need a:
            Spriter
            Exeperienced DNS
            Scripter
            Mapper
            Tile editor/maker/insertor
            ----------------------------------------------------------------------------
            Please PM me if interested!
              #7057    
            Old July 10th, 2012 (7:30 AM).
            thanethane98's Avatar
            thanethane98 thanethane98 is offline
            Self Proclaimed Expert
               
              Join Date: Jun 2012
              Nature: Relaxed
              Posts: 82
              Quote:
              Originally Posted by +N30N_J3ST3R+ View Post
              I cant figure out what is wrong with this script, any help is appreciated!
              Spoiler:

              #org $begin
              lock
              faceplayer
              checkflag 0x3200
              if b_true goto $allready got one
              message $poke
              $poke 1 = Hey you, want a Rilou? Well I dont care, Take it!
              boxset 5
              compare LASTRESULT 1
              if 1 goto $get
              message $You already got one!
              $You allready got one! 1 = Alright
              boxset 6
              release
              end
              #org $get
              lock
              message $get1
              $get1 1 =Alright here you go!
              boxset 6
              givepokemon 64 16 0
              message %received
              %received 1 =PLAYER received Rilou
              Boxset 6
              setflag 0x3200
              release
              end
              #org $alreadygotone
              lock
              faceplayer
              message $how
              4how 1 =How is my Rilou?
              boxset 6
              release end.
              Which script editor are you using? You need to specify these things. ;)
              __________________
              Back and ROM hacking again!
                #7058    
              Old July 10th, 2012 (10:27 AM).
              +N30N_J3ST3R+'s Avatar
              +N30N_J3ST3R+ +N30N_J3ST3R+ is offline
              Pokemon Black Chasm Director
                 
                Join Date: Jul 2012
                Age: 18
                Gender: Male
                Nature: Quiet
                Posts: 11
                Theanethane98 Im using script editior XSE 1.11, and it says theres something wrong with line 6.
                __________________
                Making the world a better place-one pokemon at a time! :cheeky:
                ----------------------------------------------------------------------------
                This is a group-Not a team!
                ----------------------------------------------------------------------------
                Need a:
                Spriter
                Exeperienced DNS
                Scripter
                Mapper
                Tile editor/maker/insertor
                ----------------------------------------------------------------------------
                Please PM me if interested!
                  #7059    
                Old July 10th, 2012 (10:51 AM).
                Renegade's Avatar
                Renegade Renegade is offline
                Time for real life...
                   
                  Join Date: Nov 2011
                  Location: United States
                  Gender: Male
                  Nature: Careful
                  Posts: 998
                  Quote:
                  Originally Posted by +N30N_J3ST3R+ View Post
                  Theanethane98 Im using script editior XSE 1.11, and it says theres something wrong with line 6.
                  Are you really using XSE? Your whole script is in Pokescript format...
                  XSE has a different format for scripting. That whole script is wrong for XSE, but is good for Pokescript. If you don't know the format for XSE, there are plenty tutorials on it.
                    #7060    
                  Old July 11th, 2012 (1:59 AM). Edited July 11th, 2012 by Pinta77.
                  Pinta77's Avatar
                  Pinta77 Pinta77 is offline
                  Swadloon Trainer
                   
                  Join Date: Nov 2008
                  Location: San Jose
                  Age: 23
                  Gender: Male
                  Posts: 702
                  I'm using Pksv-ui. For some reason, I cant get the basic wild pokemon battle script to work. I haven't changed it at all, this is the one generates for me.

                  Spoiler:
                  #dyn 0x740000
                  #org @start
                  special 0x187
                  compare LASTRESULT 2
                  if == jump 0x81A7AE0
                  special 0x188
                  lock
                  faceplayer
                  checksound
                  cry MINUN 2
                  waitcry
                  pause 0x14
                  playsound 0x156 0x0
                  battle MINUN 0x2B ULTRABALL
                  setflag 0x807
                  special 0x138
                  waitspecial
                  clearflag 0x807
                  special2 0x800D 0xB4
                  compare LASTRESULT 1
                  if == jump 0x8162558
                  compare LASTRESULT 4
                  if == jump 0x8162561
                  compare LASTRESULT 5
                  if == jump 0x8162561
                  setflag 0x1020
                  release
                  end


                  That's just the regular old one it generates. Any suggestions? Am I maybe putting it in the game wrong? I put it as the script offset for a person event. Any help would be greatly appreciated.
                    #7061    
                  Old July 11th, 2012 (9:08 PM).
                  DarkCharizard77's Avatar
                  DarkCharizard77 DarkCharizard77 is offline
                     
                    Join Date: Jun 2012
                    Gender: Male
                    Posts: 22
                    Hey can anyone help me with a simple battle script. When i try to compile it says "Unknown keyword "boxset" line 6"

                    #dynamic 0x800000

                    #org @start
                    trainerbattle 0x0 0x000 0x0 @before @after
                    message @beaten 0x6
                    boxset 0x6
                    release
                    end

                    #org @before
                    =

                    #org @after
                    =

                    #org @beaten
                    =
                    __________________
                      #7062    
                    Old July 11th, 2012 (9:36 PM). Edited July 11th, 2012 by Renegade.
                    Renegade's Avatar
                    Renegade Renegade is offline
                    Time for real life...
                       
                      Join Date: Nov 2011
                      Location: United States
                      Gender: Male
                      Nature: Careful
                      Posts: 998
                      Quote:
                      Originally Posted by DarkCharizard77 View Post
                      Hey can anyone help me with a simple battle script. When i try to compile it says "Unknown keyword "boxset" line 6"

                      #dynamic 0x800000

                      #org @start
                      trainerbattle 0x0 0x000 0x0 @before @after
                      message @beaten 0x6
                      boxset 0x6
                      release
                      end

                      #org @before
                      =

                      #org @after
                      =

                      #org @beaten
                      =
                      Why do you have the extra boxset 6 anyways? It is not needed. After your "message @beaten" command, you already have 0x6. 0x6 is boxset 6. I'm also not sure why you're compiling it when there is no text in the message commands... (You only have an equals symbol...)



                      I also have a question. I made this simple battle script:

                      Code:
                      #dynamic 0x800380
                      
                      #org @start
                      trainerbattle 0x0 0x001 0x0 @before @after
                      textcolor 0x0
                      message @beaten 6
                      release
                      end
                      
                      #org @beaten
                      = You're pretty tough for a new guy.
                      
                      #org @before
                      = You look like a new trainer.\nBattle me!
                      
                      #org @after
                      = I lost!
                      But there is a big problem. When I walk into the view distance of this trainer, the "trainerbattle by sight" doesn't work. When I talk to the trainer, he skips directly to the @beaten message, except I haven't even battled him yet... His value in the script is correct in terms of matching the value in PET and I do have the "trainer" box on A-Map checked. I'm not sure why this is happening... Help please?
                        #7063    
                      Old July 11th, 2012 (9:40 PM).
                      DarkCharizard77's Avatar
                      DarkCharizard77 DarkCharizard77 is offline
                         
                        Join Date: Jun 2012
                        Gender: Male
                        Posts: 22
                        Quote:
                        Originally Posted by CrystalStatic View Post
                        Why do you have the extra boxset 6 anyways? It is not needed. After your "message @beaten" command, you already have 0x6. 0x6 is boxset 6. I'm also not sure why you're compiling it when there is no text in the message commands... (You only have an equals symbol...)
                        i have message there i just erased them before posting and ic now
                        __________________
                          #7064    
                        Old July 11th, 2012 (10:05 PM).
                        KhaosKnight's Avatar
                        KhaosKnight KhaosKnight is offline
                        The 1 and only Khaotic Hacker
                           
                          Join Date: Dec 2007
                          Nature: Relaxed
                          Posts: 355
                          Quote:
                          Originally Posted by CrystalStatic View Post
                          I also have a question. I made this simple battle script:

                          Code:
                          #dynamic 0x800380
                          
                          #org @start
                          trainerbattle 0x0 0x001 0x0 @before @after
                          textcolor 0x0
                          message @beaten 0x6
                          end
                          
                          #org @beaten
                          = You're pretty tough for a new guy.
                          
                          #org @before
                          = You look like a new trainer.\nBattle me!
                          
                          #org @after
                          = I lost!
                          But there is a big problem. When I walk into the view distance of this trainer, the "trainerbattle by sight" doesn't work. When I talk to the trainer, he skips directly to the @beaten message, except I haven't even battled him yet... His value in the script is correct in terms of matching the value in PET and I do have the "trainer" box on A-Map checked. I'm not sure why this is happening... Help please?

                          Did you set view radius in A-Map as well? The script looks fine, although you don't need release and make sure you put 0x before the 6 in your @beaten message. It also doesn't hurt to triple check to see if the values match PET.
                          __________________





                            #7065    
                          Old July 12th, 2012 (5:19 AM).
                          Final Flash Final Flash is offline
                             
                            Join Date: Jul 2009
                            Gender: Male
                            Posts: 2
                            Can anyone help me with this problem? I'm trying to make a givepokemon script for a starter pokemon. It gives you the pokemon but the pokemon button in the menu doesn't show up afterwards. here's my script:

                            Spoiler:

                            #dynamic 0x800000

                            #org @start
                            lock
                            faceplayer
                            countpokemon
                            compare LASTRESULT 0x1
                            if 0x1 goto @toomany
                            givepokemon 0x13 0x2 0x0 0x0 0x0 0x0
                            fanfare 0x101
                            msgbox @player 0x2
                            waitfanfare
                            setflag 0x1031
                            setflag 0x1024
                            setflag 0x1020
                            setflag 0x1033
                            release
                            end

                            #org @player
                            = [PLAYER] found a RATATTA!

                            #org @toomany
                            msgbox @toomany2 0x2

                            #org @toomany2
                            = [Player] already has a Ratatta.

                            clearflag 0x1031
                            clearflag 0x1024
                            clearflag 0x1020
                            clearflag 0x1033




                            Using XSE + the original version of Fire Red. I've only been scripting for a week or 2 and I'm not very good at it so any help would be appreciated.
                              #7066    
                            Old July 12th, 2012 (5:56 AM).
                            SacredMurathJohn's Avatar
                            SacredMurathJohn SacredMurathJohn is offline
                            ROM Hacking
                               
                              Join Date: Jul 2012
                              Location: Turkey
                              Gender: Male
                              Nature: Hasty
                              Posts: 41
                              Quote:
                              Originally Posted by Final Flash View Post
                              Can anyone help me with this problem? I'm trying to make a givepokemon script for a starter pokemon. It gives you the pokemon but the pokemon button in the menu doesn't show up afterwards. here's my script:

                              Spoiler:

                              #dynamic 0x800000

                              #org @start
                              lock
                              faceplayer
                              countpokemon
                              compare LASTRESULT 0x1
                              if 0x1 goto @toomany
                              givepokemon 0x13 0x2 0x0 0x0 0x0 0x0
                              fanfare 0x101
                              msgbox @player 0x2
                              waitfanfare
                              setflag 0x1031
                              setflag 0x1024
                              setflag 0x1020
                              setflag 0x1033
                              release
                              end

                              #org @player
                              = [PLAYER] found a RATATTA!

                              #org @toomany
                              msgbox @toomany2 0x2

                              #org @toomany2
                              = [Player] already has a Ratatta.

                              clearflag 0x1031
                              clearflag 0x1024
                              clearflag 0x1020
                              clearflag 0x1033




                              Using XSE + the original version of Fire Red. I've only been scripting for a week or 2 and I'm not very good at it so any help would be appreciated.
                              You need to add setflag 0x828. When this flag is enable, it activates POKéMON menu.
                                #7067    
                              Old July 12th, 2012 (7:58 AM).
                              Final Flash Final Flash is offline
                                 
                                Join Date: Jul 2009
                                Gender: Male
                                Posts: 2
                                Yeah that was it, thanks.
                                  #7068    
                                Old July 12th, 2012 (7:36 PM).
                                Aowel's Avatar
                                Aowel Aowel is offline
                                   
                                  Join Date: Jul 2012
                                  Gender: Male
                                  Posts: 7
                                  My script still freezes after the warp. It just creates a black screen and no music plays.
                                  Spoiler:

                                  Quote:
                                  Originally Posted by Aowel View Post
                                  Spoiler:

                                  '---------------
                                  #org 0x800314
                                  lock
                                  checkflag 0x828
                                  if 0x0 goto 0x8800325
                                  if 0x1 goto 0x88003BF
                                  end
                                  '---------------
                                  #org 0x800325
                                  playsong 0x12E 0x0
                                  msgbox 0x880034F MSG_FACE '"Wait!\nDon't go out!"
                                  applymovement MOVE_PLAYER 0x8800365
                                  waitmovement 0x0
                                  applymovement 0x3 0x8800368
                                  waitmovement 0x0
                                  msgbox 0x8800372 MSG_FACE '"You shouldn't go out without\nPOKÉ..."
                                  warp 0x5 0x1 0x0 0x06 0x0C
                                  hidesprite 0x03
                                  setvar 0x800D 0x1
                                  end
                                  '---------------
                                  #org 0x8003BF
                                  release
                                  end


                                  '---------
                                  ' Strings
                                  '---------
                                  #org 0x80034F
                                  = [Blue_fr]Wait!\nDon't go out!

                                  #org 0x800372
                                  = [Blue_fr]OAK: You shouldn't go out without\nPOKÉMON for protection.\pI know.\nCome with me.


                                  '-----------
                                  ' Movements
                                  '-----------
                                  #org 0x800365
                                  #raw 0x62 'Exclamation Mark (!)
                                  #raw 0xFE 'End of Movements

                                  #org 0x800368
                                  #raw 0x1F 'Step Left (Fast)
                                  #raw 0x1F 'Step Left (Fast)
                                  #raw 0x1F 'Step Left (Fast)
                                  #raw 0x1F 'Step Left (Fast)
                                  #raw 0x1F 'Step Left (Fast)
                                  #raw 0x1F 'Step Left (Fast)
                                  #raw 0x1F 'Step Left (Fast)
                                  #raw 0x4A 'Face Player
                                  #raw 0xFE 'End of Movements


                                  My newest fix: I got it to go through the warp. But it doesn't put the player into the next area. It freezes and stops playing the music. Help!
                                  __________________
                                  Pokémon Obsidian Version coming soon.
                                    #7069    
                                  Old July 13th, 2012 (3:03 AM).
                                  zid_sen's Avatar
                                  zid_sen zid_sen is offline
                                  The Sacred Thunder of Aselis
                                     
                                    Join Date: Jun 2012
                                    Location: Indonesia
                                    Gender: Male
                                    Nature: Lonely
                                    Posts: 61
                                    Hai!
                                    I want to ask something,
                                    is something wrong in this script,
                                    Code:
                                    #dynamic 0x3B4D84
                                    
                                    #org @start
                                    checkflag 0x828
                                    if 0x1 goto @done
                                    msgbox @1 0x5
                                    compare LASTRESULT 0x1
                                    if 0x1 goto @take
                                    msgbox @2 0x6
                                    release
                                    end
                                    
                                    #org @take
                                    givepokemon 0xF1 0x5 0x1D 0x0 0x0 0x0
                                    fanfare 0x13E
                                    msgbox @3 0x4
                                    waitfanfare
                                    closeonkeypress
                                    setflag 0x828
                                    msgbox @4 0x5
                                    compare LASTRESULT 0x1
                                    if 0x1 gosub @name
                                    msgbox @5 0x6
                                    release
                                    end
                                    
                                    #org @name
                                    call 0x1A74EB
                                    return
                                    
                                    #org @done
                                    msgbox @6 0x4
                                    closeonkeypress
                                    fadescreen 0x1
                                    fanfare 0x100
                                    special 0x0
                                    waitfanfare
                                    fadescreen 0x0
                                    msgbox @7 0x6
                                    release
                                    end
                                    
                                    #org @1
                                    = Sepertinya kamu tidak bisa lagi\ndiam disini,\lkamu mau ambil Miltank\lkesayanganmu untuk pergi\ljalan-jalan?
                                    
                                    #org @2
                                    = Baiklah,\nBy The Way, Professor Oak mencarimu\ltemuilah dia!\lAtau ambil Miltank milikmu sekarang\ljuga!
                                    
                                    #org @3
                                    = [black_fr]Kamu mendapat Miltank!
                                    
                                    #org @4
                                    = [black_fr]Kamu mau kasih nama ke\nMiltank milikmu, sayang?
                                    
                                    #org @5
                                    = Rawat Miltank baik-baik,\nayahmu yang memberikannya!Miltank\lini awal dari peternakan kita.
                                    
                                    #org @6
                                    = Kamu mau Pokemon milikmu sehat\nlagi, sayang?
                                    
                                    #org @7
                                    = Buat ibu bangga dengan hasil\npekerjaanmu sekarang!
                                    When i use it,
                                    the person won't talk to me!
                                    __________________

                                    Thanks to Rambagos in Pokemon Stars
                                    For The Signature
                                      #7070    
                                    Old July 13th, 2012 (3:55 AM).
                                    Alpha_Spike's Avatar
                                    Alpha_Spike Alpha_Spike is offline
                                    Ace Trainer
                                       
                                      Join Date: Feb 2009
                                      Location: New Zealand
                                      Age: 31
                                      Gender: Male
                                      Nature: Naughty
                                      Posts: 340
                                      Having some trouble getting a script to save in-game correctly. Using XSE and AdvanceMap programs to input a trainer battle.

                                      This is what the script becomes:
                                      Spoiler:
                                      '---------------
                                      #org 0x442468
                                      trainerbattle 0x2 0x353 0x0 0x829563A 0x829566F 0x81ED3CE
                                      special2 LASTRESULT 0x3C
                                      compare LASTRESULT 0x1
                                      if 0x1 goto 0x81ED424
                                      setvar 0x8004 0x25C
                                      special2 LASTRESULT 0x1F1
                                      compare LASTRESULT 0x0
                                      if 0x1 goto 0x81ED3F8
                                      msgbox 0x8295689 MSG_KEEPOPEN '"I enjoy strong battles, come again..."
                                      release
                                      end

                                      '---------------
                                      #org 0x1ED3CE
                                      special 0x207
                                      waitmovement 0x0
                                      checkflag 0x12F
                                      if 0x1 goto 0x81ED3DF
                                      release
                                      end

                                      '---------------
                                      #org 0x1ED424
                                      trainerbattle 0x5 0x25C 0x0 0x82957D7 0x82957F0
                                      msgbox 0x829580C MSG_NORMAL '"Hmm[.]\nIt has been a long time si..."
                                      end

                                      '---------------
                                      #org 0x1ED3F8
                                      checkflag 0x12F
                                      if 0x1 goto 0x81ED40B
                                      msgbox 0x8295689 MSG_KEEPOPEN '"I enjoy strong battles, come again..."
                                      release
                                      end

                                      '---------------
                                      #org 0x1ED3DF
                                      msgbox 0x829576B MSG_KEEPOPEN '"You're strong, I wish to register\..."
                                      setvar 0x8004 0x25C
                                      special 0x1E9
                                      registernav 0x25C
                                      release
                                      end

                                      '---------------
                                      #org 0x1ED40B
                                      msgbox 0x82956FF MSG_KEEPOPEN '"You're strong, I wish to register\..."
                                      setvar 0x8004 0x25C
                                      special 0x1E9
                                      registernav 0x25C
                                      release
                                      end


                                      '---------
                                      ' Strings
                                      '---------
                                      #org 0x29563A
                                      = Show me your power[.]\nBattle me now trainer.\pI will seeI will see if you are wortI enjoy strong battles, come again\nand challenge me once more,\lI wish to see how your\lpower grows.

                                      #org 0x29566F
                                      = I will see if you are wortI enjoy strong battles, come again\nand challenge me once more,\lI wish to see how your\lpower grows.

                                      #org 0x295689
                                      = I enjoy strong battles, come again\nand challenge me once more,\lI wish to see how your\lpower grows.

                                      #org 0x2957D7
                                      = Come on, battle with me!

                                      #org 0x2957F0
                                      = Hmm[.]\nIt has been a long timeHmm[.]\nIt has been a long time since I lost a battle, so\nI can accept this loss with grace.\pI am still upset about losing!

                                      #org 0x29580C
                                      = Hmm[.]\nIt has been a long time since I lost a battle, so\nI can accept this loss with grace.\pI am still upset about losing!

                                      #org 0x29576B
                                      = You're strong, I wish to register\nyou in my POKéNAV!\lMaybe I will win next time[.]\pOkay, sure, lets do this!

                                      #org 0x2956FF
                                      = You're strong, I wish to register\nyou in my POKéNAV!\lMaybe I will win next time[.]\pOkay, sure, lets do this!


                                      This is what I'm trying to put in:

                                      Spoiler:
                                      '---------------
                                      #org 0x442468
                                      trainerbattle 0x2 0x353 0x0 0x829563A 0x829566F 0x81ED3CE
                                      special2 LASTRESULT 0x3C
                                      compare LASTRESULT 0x1
                                      if 0x1 goto 0x81ED424
                                      setvar 0x8004 0x25C
                                      special2 LASTRESULT 0x1F1
                                      compare LASTRESULT 0x0
                                      if 0x1 goto 0x81ED3F8
                                      msgbox 0x8295689 MSG_KEEPOPEN '"I enjoy strong battles, come again..."
                                      release
                                      end

                                      '---------------
                                      #org 0x1ED3CE
                                      special 0x207
                                      waitmovement 0x0
                                      checkflag 0x12F
                                      if 0x1 goto 0x81ED3DF
                                      release
                                      end

                                      '---------------
                                      #org 0x1ED424
                                      trainerbattle 0x5 0x25C 0x0 0x82957D7 0x82957F0
                                      msgbox 0x829580C MSG_NORMAL '"Hmm[.]\nIt has been a long time si..."
                                      end

                                      '---------------
                                      #org 0x1ED3F8
                                      checkflag 0x12F
                                      if 0x1 goto 0x81ED40B
                                      msgbox 0x8295689 MSG_KEEPOPEN '"I enjoy strong battles, come again..."
                                      release
                                      end

                                      '---------------
                                      #org 0x1ED3DF
                                      msgbox 0x829576B MSG_KEEPOPEN '"You're strong, I wish to register\..."
                                      setvar 0x8004 0x25C
                                      special 0x1E9
                                      registernav 0x25C
                                      release
                                      end

                                      '---------------
                                      #org 0x1ED40B
                                      msgbox 0x82956FF MSG_KEEPOPEN '"You're strong, I wish to register\..."
                                      setvar 0x8004 0x25C
                                      special 0x1E9
                                      registernav 0x25C
                                      release
                                      end


                                      '---------
                                      ' Strings
                                      '---------
                                      #org 0x29563A
                                      = Show me your power[.]\nBattle me now trainer.\pI will see if you are worthy!

                                      #org 0x29566F
                                      = I will see if you are worthy!

                                      #org 0x295689
                                      = I enjoy strong battles, come again\nand challenge me once more,\lI wish to see how your\lpower grows.

                                      #org 0x2957D7
                                      = Come on, battle with me!

                                      #org 0x2957F0
                                      = Hmm[.]\nIt has been a long time since I lost a battle, so\nI can accept this loss with grace.\pI am still upset about losing!

                                      #org 0x29580C
                                      = Hmm[.]\nIt has been a long time since I lost a battle, so\nI can accept this loss with grace.\pI am still upset about losing!

                                      #org 0x29576B
                                      = You're strong, I wish to register\nyou in my POKéNAV!\lMaybe I will win next time[.]\pOkay, sure, lets do this!

                                      #org 0x2956FF
                                      = You're strong, I wish to register\nyou in my POKéNAV!\lMaybe I will win next time[.]\pOkay, sure, lets do this!


                                      What am I doing wrong? Why is the text getting all weirdly mixed up despite putting things in correctly?
                                      __________________


                                      Creator of the Triple trigen monotype master challenge(PM for details if you want to know more)

                                      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.

                                      Game: Pokemon Omega Ruby
                                      Name: Lycos
                                      Friend code: 0190-1428-4586
                                        #7071    
                                      Old July 13th, 2012 (12:54 PM).
                                      Mr.KoolAid Mr.KoolAid is offline
                                         
                                        Join Date: Mar 2012
                                        Gender: Female
                                        Posts: 27
                                        I made an introduction script for my Rom, it is the only script i have put it if it matters. The script runs fine for the most part, except the movement that is supposed to happen at the end does not happen, the sprite just disappears. After leaving the house the game freezes at one of three points, after talking to the person outside, walking onto the bridge, or going back inside the house (where the Oak sprite remains).

                                        So i guess i have two questions. how do i stop the freezing and how do i make the even occure only once. I set the flag as Oaks person ID.

                                        Spoiler:
                                        '---------------
                                        #org 0x8001FD
                                        lock
                                        faceplayer
                                        checkflag 0x2000
                                        if 0x1 goto 0x880023C
                                        applymovement 0x1 0x8800475
                                        waitmovement 0x0
                                        msgbox 0x880023F 0x6 '"Come, sit."
                                        applymovement 0xFF 0x880047B
                                        waitmovement 0x0
                                        msgbox 0x880024C 0x6 '"Thanks again for letting me stay\n..."
                                        applymovement 0x1 0x8800481
                                        hidesprite 0x1
                                        setflag 0x2000
                                        release
                                        end

                                        '---------------
                                        #org 0x80023C
                                        release
                                        end


                                        '---------
                                        ' Strings
                                        '---------
                                        #org 0x80023F
                                        = Come, sit.

                                        #org 0x80024C
                                        = Thanks again for letting me stay\nhere the night v h1.\lIt takes a lot out of an old man\lto travel the regions looking for\lnew pokemon.\lWith that said, i have a task for\lyou. Your cousin Red did a\lfantastic job filling the pokedex\lin Kanto, and gold did a great job\lin Jhoto.\lNow I want you to travel across\lAtarashii and fill in a pokedex.\lI see the same spark in you that i\lsaw in Red and Gold.\lI have here some rare pokemon from\lthe Hoenn region, where i sent\lBlue to explore.\lMeet me outside and I will give\nyou your pokemon and than i will\lbe off.


                                        '-----------
                                        ' Movements
                                        '-----------
                                        #org 0x800475
                                        #raw 0x11 'Step Up (Normal)
                                        #raw 0x11 'Step Up (Normal)
                                        #raw 0x11 'Step Up (Normal)
                                        #raw 0x13 'Step Right (Normal)
                                        #raw 0xFE 'End of Movements

                                        #org 0x80047B
                                        #raw 0x10 'Step Down (Normal)
                                        #raw 0x10 'Step Down (Normal)
                                        #raw 0x10 'Step Down (Normal)
                                        #raw 0x12 'Step Left (Normal)
                                        #raw 0xFE 'End of Movements

                                        #org 0x800481
                                        #raw 0x12 'Step Left (Normal)
                                        #raw 0x10 'Step Down (Normal)
                                        #raw 0x10 'Step Down (Normal)
                                        #raw 0x10 'Step Down (Normal)
                                        #raw 0xFE 'End of Movements
                                          #7072    
                                        Old July 13th, 2012 (2:26 PM).
                                        tajaros's Avatar
                                        tajaros tajaros is offline
                                        Hi I'm dawg
                                           
                                          Join Date: Apr 2012
                                          Location: Philippines
                                          Age: 19
                                          Gender: Male
                                          Nature: Timid
                                          Posts: 857
                                          Quote:
                                          Originally Posted by Mr.KoolAid View Post
                                          I made an introduction script for my Rom, it is the only script i have put it if it matters. The script runs fine for the most part, except the movement that is supposed to happen at the end does not happen, the sprite just disappears. After leaving the house the game freezes at one of three points, after talking to the person outside, walking onto the bridge, or going back inside the house (where the Oak sprite remains).

                                          So i guess i have two questions. how do i stop the freezing and how do i make the even occure only once. I set the flag as Oaks person ID.

                                          Spoiler:
                                          '---------------
                                          #org 0x8001FD
                                          lock
                                          faceplayer
                                          checkflag 0x2000
                                          if 0x1 goto 0x880023C
                                          applymovement 0x1 0x8800475
                                          waitmovement 0x0
                                          msgbox 0x880023F 0x6 '"Come, sit."
                                          applymovement 0xFF 0x880047B
                                          waitmovement 0x0
                                          msgbox 0x880024C 0x6 '"Thanks again for letting me stay\n..."
                                          applymovement 0x1 0x8800481
                                          hidesprite 0x1
                                          setflag 0x2000
                                          release
                                          end

                                          '---------------
                                          #org 0x80023C
                                          release
                                          end


                                          '---------
                                          ' Strings
                                          '---------
                                          #org 0x80023F
                                          = Come, sit.

                                          #org 0x80024C
                                          = Thanks again for letting me stay\nhere the night v h1.\lIt takes a lot out of an old man\lto travel the regions looking for\lnew pokemon.\lWith that said, i have a task for\lyou. Your cousin Red did a\lfantastic job filling the pokedex\lin Kanto, and gold did a great job\lin Jhoto.\lNow I want you to travel across\lAtarashii and fill in a pokedex.\lI see the same spark in you that i\lsaw in Red and Gold.\lI have here some rare pokemon from\lthe Hoenn region, where i sent\lBlue to explore.\lMeet me outside and I will give\nyou your pokemon and than i will\lbe off.


                                          '-----------
                                          ' Movements
                                          '-----------
                                          #org 0x800475
                                          #raw 0x11 'Step Up (Normal)
                                          #raw 0x11 'Step Up (Normal)
                                          #raw 0x11 'Step Up (Normal)
                                          #raw 0x13 'Step Right (Normal)
                                          #raw 0xFE 'End of Movements

                                          #org 0x80047B
                                          #raw 0x10 'Step Down (Normal)
                                          #raw 0x10 'Step Down (Normal)
                                          #raw 0x10 'Step Down (Normal)
                                          #raw 0x12 'Step Left (Normal)
                                          #raw 0xFE 'End of Movements

                                          #org 0x800481
                                          #raw 0x12 'Step Left (Normal)
                                          #raw 0x10 'Step Down (Normal)
                                          #raw 0x10 'Step Down (Normal)
                                          #raw 0x10 'Step Down (Normal)
                                          #raw 0xFE 'End of Movements
                                          You forgot to input "waitmovement 0x0" after your last applymovement script, you should just input 2000 in the person ID to make it not happen again.... :)
                                          __________________
                                            #7073    
                                          Old July 14th, 2012 (8:34 AM).
                                          FrozenInfernoZX's Avatar
                                          FrozenInfernoZX FrozenInfernoZX is offline
                                          What is out there?
                                             
                                            Join Date: Jun 2012
                                            Location: United States
                                            Gender: Male
                                            Nature: Adamant
                                            Posts: 770
                                            I'm new here and I am starting to get the hang of basic scripting. However, there are a few tidbits of information that is not registering with me yet. What do I add to my script in order for it to not appear again? I think it has something to do with setvar, but I'm not sure. This script is activated when stepped on.
                                            Spoiler:
                                            #org 0x816FB75
                                            '-----------------------------------
                                            lockall
                                            setvar 0x4001 0x3
                                            jump 0x816FB81

                                            #org 0x816FB81
                                            '-----------------------------------
                                            textcolor BLUE
                                            applymovement 0x3 0x81A75E9 ' look_down end
                                            pauseevent 0x0
                                            checkflag FR_BADGE_8
                                            if true jump 0x816FBAB ' Flag is set
                                            msgbox 0x819E3ED ' Route 74 is filled w...
                                            callstd MSG_NOCLOSE ' Non-closing message
                                            closemsg
                                            applymovement PLAYER 0x816FC2D ' walk_right end
                                            pauseevent 0x0
                                            releaseall
                                            end

                                            #org 0x816FBAB
                                            '-----------------------------------
                                            textcolor BLUE
                                            applymovement PLAYER 0x8740189 ' look_up end
                                            pauseevent 0x0
                                            msgbox 0x819E43D ' Oh, so you're on you...
                                            callstd MSG_NOCLOSE ' Non-closing message
                                            closemsg
                                            applymovement 0x3 0x816FC26 ' walk_right walk_righ...
                                            pauseevent 0x0
                                            disappear 0x3
                                            releaseall
                                            end


                                            #org 0x819E3ED
                                            = Route 74 is filled with scary\nstrong Pok\emon.\pYou should stay home.

                                            #org 0x819E43D
                                            = Oh, so you're on your way\nto becoming a Pok\emon master?\pYou have some strong Pok\emon\non your team.\pYou shouldn't have a hard time\nthen.\pWell, later dude!\pGood luck!

                                            #org 0x81A75E9
                                            M look_down end

                                            #org 0x816FC2D
                                            M walk_right end

                                            #org 0x8740189
                                            M look_up end

                                            #org 0x816FC26
                                            M walk_right walk_right walk_right walk_right walk_right walk_right walk_right walk_right end
                                              #7074    
                                            Old July 14th, 2012 (11:47 AM).
                                            Mana's Avatar
                                            Mana Mana is offline
                                             
                                            Join Date: Jan 2009
                                            Location: UK
                                            Age: 26
                                            Gender: Male
                                            Posts: 10,039
                                            Quote:
                                            Originally Posted by Aowel View Post
                                            My script still freezes after the warp. It just creates a black screen and no music plays.
                                            Spoiler:


                                            Your warp should read:

                                            warp 0x5 0x1 0xFF 0x06 0x0C

                                            Quote:
                                            Originally Posted by zid_sen View Post
                                            Hai!
                                            I want to ask something,
                                            is something wrong in this script,
                                            Spoiler:
                                            Code:
                                            #dynamic 0x3B4D84
                                            
                                            #org @start
                                            checkflag 0x828
                                            if 0x1 goto @done
                                            msgbox @1 0x5
                                            compare LASTRESULT 0x1
                                            if 0x1 goto @take
                                            msgbox @2 0x6
                                            release
                                            end
                                            
                                            #org @take
                                            givepokemon 0xF1 0x5 0x1D 0x0 0x0 0x0
                                            fanfare 0x13E
                                            msgbox @3 0x4
                                            waitfanfare
                                            closeonkeypress
                                            setflag 0x828
                                            msgbox @4 0x5
                                            compare LASTRESULT 0x1
                                            if 0x1 gosub @name
                                            msgbox @5 0x6
                                            release
                                            end
                                            
                                            #org @name
                                            call 0x1A74EB
                                            return
                                            
                                            #org @done
                                            msgbox @6 0x4
                                            closeonkeypress
                                            fadescreen 0x1
                                            fanfare 0x100
                                            special 0x0
                                            waitfanfare
                                            fadescreen 0x0
                                            msgbox @7 0x6
                                            release
                                            end
                                            
                                            #org @1
                                            = Sepertinya kamu tidak bisa lagi\ndiam disini,\lkamu mau ambil Miltank\lkesayanganmu untuk pergi\ljalan-jalan?
                                            
                                            #org @2
                                            = Baiklah,\nBy The Way, Professor Oak mencarimu\ltemuilah dia!\lAtau ambil Miltank milikmu sekarang\ljuga!
                                            
                                            #org @3
                                            = [black_fr]Kamu mendapat Miltank!
                                            
                                            #org @4
                                            = [black_fr]Kamu mau kasih nama ke\nMiltank milikmu, sayang?
                                            
                                            #org @5
                                            = Rawat Miltank baik-baik,\nayahmu yang memberikannya!Miltank\lini awal dari peternakan kita.
                                            
                                            #org @6
                                            = Kamu mau Pokemon milikmu sehat\nlagi, sayang?
                                            
                                            #org @7
                                            = Buat ibu bangga dengan hasil\npekerjaanmu sekarang!


                                            When i use it,
                                            the person won't talk to me!
                                            Sounds like a compiling problem or something, recompile the script and double check you're assigning (and saving) it to the right sprite. Sounds stupid I know but I've done that before!

                                            Quote:
                                            Originally Posted by Alpha_Spike View Post
                                            Having some trouble getting a script to save in-game correctly. Using XSE and AdvanceMap programs to input a trainer battle.

                                            This is what the script becomes:
                                            Spoiler:
                                            '---------------
                                            #org 0x442468
                                            trainerbattle 0x2 0x353 0x0 0x829563A 0x829566F 0x81ED3CE
                                            special2 LASTRESULT 0x3C
                                            compare LASTRESULT 0x1
                                            if 0x1 goto 0x81ED424
                                            setvar 0x8004 0x25C
                                            special2 LASTRESULT 0x1F1
                                            compare LASTRESULT 0x0
                                            if 0x1 goto 0x81ED3F8
                                            msgbox 0x8295689 MSG_KEEPOPEN '"I enjoy strong battles, come again..."
                                            release
                                            end

                                            '---------------
                                            #org 0x1ED3CE
                                            special 0x207
                                            waitmovement 0x0
                                            checkflag 0x12F
                                            if 0x1 goto 0x81ED3DF
                                            release
                                            end

                                            '---------------
                                            #org 0x1ED424
                                            trainerbattle 0x5 0x25C 0x0 0x82957D7 0x82957F0
                                            msgbox 0x829580C MSG_NORMAL '"Hmm[.]\nIt has been a long time si..."
                                            end

                                            '---------------
                                            #org 0x1ED3F8
                                            checkflag 0x12F
                                            if 0x1 goto 0x81ED40B
                                            msgbox 0x8295689 MSG_KEEPOPEN '"I enjoy strong battles, come again..."
                                            release
                                            end

                                            '---------------
                                            #org 0x1ED3DF
                                            msgbox 0x829576B MSG_KEEPOPEN '"You're strong, I wish to register\..."
                                            setvar 0x8004 0x25C
                                            special 0x1E9
                                            registernav 0x25C
                                            release
                                            end

                                            '---------------
                                            #org 0x1ED40B
                                            msgbox 0x82956FF MSG_KEEPOPEN '"You're strong, I wish to register\..."
                                            setvar 0x8004 0x25C
                                            special 0x1E9
                                            registernav 0x25C
                                            release
                                            end


                                            '---------
                                            ' Strings
                                            '---------
                                            #org 0x29563A
                                            = Show me your power[.]\nBattle me now trainer.\pI will seeI will see if you are wortI enjoy strong battles, come again\nand challenge me once more,\lI wish to see how your\lpower grows.

                                            #org 0x29566F
                                            = I will see if you are wortI enjoy strong battles, come again\nand challenge me once more,\lI wish to see how your\lpower grows.

                                            #org 0x295689
                                            = I enjoy strong battles, come again\nand challenge me once more,\lI wish to see how your\lpower grows.

                                            #org 0x2957D7
                                            = Come on, battle with me!

                                            #org 0x2957F0
                                            = Hmm[.]\nIt has been a long timeHmm[.]\nIt has been a long time since I lost a battle, so\nI can accept this loss with grace.\pI am still upset about losing!

                                            #org 0x29580C
                                            = Hmm[.]\nIt has been a long time since I lost a battle, so\nI can accept this loss with grace.\pI am still upset about losing!

                                            #org 0x29576B
                                            = You're strong, I wish to register\nyou in my POKéNAV!\lMaybe I will win next time[.]\pOkay, sure, lets do this!

                                            #org 0x2956FF
                                            = You're strong, I wish to register\nyou in my POKéNAV!\lMaybe I will win next time[.]\pOkay, sure, lets do this!


                                            This is what I'm trying to put in:

                                            Spoiler:
                                            '---------------
                                            #org 0x442468
                                            trainerbattle 0x2 0x353 0x0 0x829563A 0x829566F 0x81ED3CE
                                            special2 LASTRESULT 0x3C
                                            compare LASTRESULT 0x1
                                            if 0x1 goto 0x81ED424
                                            setvar 0x8004 0x25C
                                            special2 LASTRESULT 0x1F1
                                            compare LASTRESULT 0x0
                                            if 0x1 goto 0x81ED3F8
                                            msgbox 0x8295689 MSG_KEEPOPEN '"I enjoy strong battles, come again..."
                                            release
                                            end

                                            '---------------
                                            #org 0x1ED3CE
                                            special 0x207
                                            waitmovement 0x0
                                            checkflag 0x12F
                                            if 0x1 goto 0x81ED3DF
                                            release
                                            end

                                            '---------------
                                            #org 0x1ED424
                                            trainerbattle 0x5 0x25C 0x0 0x82957D7 0x82957F0
                                            msgbox 0x829580C MSG_NORMAL '"Hmm[.]\nIt has been a long time si..."
                                            end

                                            '---------------
                                            #org 0x1ED3F8
                                            checkflag 0x12F
                                            if 0x1 goto 0x81ED40B
                                            msgbox 0x8295689 MSG_KEEPOPEN '"I enjoy strong battles, come again..."
                                            release
                                            end

                                            '---------------
                                            #org 0x1ED3DF
                                            msgbox 0x829576B MSG_KEEPOPEN '"You're strong, I wish to register\..."
                                            setvar 0x8004 0x25C
                                            special 0x1E9
                                            registernav 0x25C
                                            release
                                            end

                                            '---------------
                                            #org 0x1ED40B
                                            msgbox 0x82956FF MSG_KEEPOPEN '"You're strong, I wish to register\..."
                                            setvar 0x8004 0x25C
                                            special 0x1E9
                                            registernav 0x25C
                                            release
                                            end


                                            '---------
                                            ' Strings
                                            '---------
                                            #org 0x29563A
                                            = Show me your power[.]\nBattle me now trainer.\pI will see if you are worthy!

                                            #org 0x29566F
                                            = I will see if you are worthy!

                                            #org 0x295689
                                            = I enjoy strong battles, come again\nand challenge me once more,\lI wish to see how your\lpower grows.

                                            #org 0x2957D7
                                            = Come on, battle with me!

                                            #org 0x2957F0
                                            = Hmm[.]\nIt has been a long time since I lost a battle, so\nI can accept this loss with grace.\pI am still upset about losing!

                                            #org 0x29580C
                                            = Hmm[.]\nIt has been a long time since I lost a battle, so\nI can accept this loss with grace.\pI am still upset about losing!

                                            #org 0x29576B
                                            = You're strong, I wish to register\nyou in my POKéNAV!\lMaybe I will win next time[.]\pOkay, sure, lets do this!

                                            #org 0x2956FF
                                            = You're strong, I wish to register\nyou in my POKéNAV!\lMaybe I will win next time[.]\pOkay, sure, lets do this!


                                            What am I doing wrong? Why is the text getting all weirdly mixed up despite putting things in correctly?
                                            This looks like a case of messing with compiled scripts.

                                            1) Use '#Dynamic 0x800000' and '#org @BlankPointers' when scripting, do not put your own offsets in.
                                            2) Once compiled make sure not to add or remove bytes of the script, as it will change any close scripts as well by erasing or changing their information.

                                            Quote:
                                            Originally Posted by FrozenInfernoZX View Post
                                            I'm new here and I am starting to get the hang of basic scripting. However, there are a few tidbits of information that is not registering with me yet. What do I add to my script in order for it to not appear again? I think it has something to do with setvar, but I'm not sure. This script is activated when stepped on.
                                            Spoiler:
                                            #org 0x816FB75
                                            '-----------------------------------
                                            lockall
                                            setvar 0x4001 0x3
                                            jump 0x816FB81

                                            #org 0x816FB81
                                            '-----------------------------------
                                            textcolor BLUE
                                            applymovement 0x3 0x81A75E9 ' look_down end
                                            pauseevent 0x0
                                            checkflag FR_BADGE_8
                                            if true jump 0x816FBAB ' Flag is set
                                            msgbox 0x819E3ED ' Route 74 is filled w...
                                            callstd MSG_NOCLOSE ' Non-closing message
                                            closemsg
                                            applymovement PLAYER 0x816FC2D ' walk_right end
                                            pauseevent 0x0
                                            releaseall
                                            end

                                            #org 0x816FBAB
                                            '-----------------------------------
                                            textcolor BLUE
                                            applymovement PLAYER 0x8740189 ' look_up end
                                            pauseevent 0x0
                                            msgbox 0x819E43D ' Oh, so you're on you...
                                            callstd MSG_NOCLOSE ' Non-closing message
                                            closemsg
                                            applymovement 0x3 0x816FC26 ' walk_right walk_righ...
                                            pauseevent 0x0
                                            disappear 0x3
                                            releaseall
                                            end


                                            #org 0x819E3ED
                                            = Route 74 is filled with scary\nstrong Pok\emon.\pYou should stay home.

                                            #org 0x819E43D
                                            = Oh, so you're on your way\nto becoming a Pok\emon master?\pYou have some strong Pok\emon\non your team.\pYou shouldn't have a hard time\nthen.\pWell, later dude!\pGood luck!

                                            #org 0x81A75E9
                                            M look_down end

                                            #org 0x816FC2D
                                            M walk_right end

                                            #org 0x8740189
                                            M look_up end

                                            #org 0x816FC26
                                            M walk_right walk_right walk_right walk_right walk_right walk_right walk_right walk_right end
                                            Set the script tile variable to 4001 and value to 0 (assuming that's what the value should be when you first step on the tile) and this should be fine. If that doesn't seem to be working try using a larger value, perhaps 5000. Some lower variables reset or are influenced by flags and things.
                                            __________________
                                              #7075    
                                            Old July 14th, 2012 (10:20 PM). Edited July 14th, 2012 by PoppycockKing.
                                            PoppycockKing's Avatar
                                            PoppycockKing PoppycockKing is offline
                                               
                                              Join Date: Sep 2011
                                              Posts: 3
                                              Having some trouble permanently disappearing some sprites from the map using hidesprite/setflag on the Person ID.

                                              Spoiler:
                                              #dynamic 0x800000

                                              #org @start
                                              lock
                                              applymovement 0x01 @express1
                                              applymovement 0x02 @express1
                                              applymovement 0x03 @express1
                                              pause 0x30
                                              msgbox @express4 0x6
                                              applymovement 0x01 @moveup1
                                              waitmovement 0x0
                                              msgbox @challenge1 0x6
                                              trainerbattle 0x3 0x0 0x0 @after1
                                              msgbox @retreat1 0x6
                                              hidesprite 0x1
                                              applymovement 0x02 @moveup2
                                              waitmovement 0x0
                                              msgbox @challenge2 0x6
                                              trainerbattle 0x3 0x02 0x0 @after2
                                              msgbox @retreat1 0x6
                                              hidesprite 0x2
                                              applymovement 0x03 @moveup3
                                              waitmovement 0x0
                                              msgbox @challenge3 0x6
                                              trainerbattle 0x3 0x03 0x0 @after3
                                              msgbox @retreat2 0x6
                                              hidesprite 0x3
                                              setflag 0x1001
                                              setvar 0x4051 0x1
                                              release
                                              end



                                              Not including the strings because they're just simple text and raws that work perfectly fine.

                                              For the purpose of presentation, all three sprites have a Person ID of 1001. (I have run it with separate ID's for each sprite but it comes to the same result) Everything in the event scripts perfectly, but as soon as the script is done and I take one step forward, all the sprites reappear. Not to mention that they don't disappear when leaving and reentering the room. I've used other hacks/clean roms to compare my scripts to but it seems like I'm doing everything I'm supposed to. Although, I am using JPAN's engine if that means anything.
                                              __________________
                                              Outrageous. Shameless. Flamboyant.
                                              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 11:18 PM.