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
  #5251    
Old February 9th, 2011 (11:01 PM).
fizzmaister's Avatar
fizzmaister fizzmaister is offline
     
    Join Date: Jan 2008
    Posts: 20
    Quote:
    Originally Posted by Tropical Sunlight View Post
    I have, but there were a lot of calls to different offsets. Is that it?
    Take a look at the scientist that revives fossils in the Cinnabar lab. That mess of code should have everything that you need.

    Relevant Advertising!

      #5252    
    Old February 9th, 2011 (11:08 PM).
    spidermight340 spidermight340 is offline
    Advanced Trainer
       
      Join Date: Aug 2009
      Age: 25
      Gender: Male
      Nature: Relaxed
      Posts: 27
      what is the script so you need to talk to a certain person to proceed
      __________________
      Check out My Custom Pokemon Maps at : spidermight.webs.com/
        #5253    
      Old February 9th, 2011 (11:24 PM).
      destinedjagold's Avatar
      destinedjagold destinedjagold is offline
      Oh Hai Thar~
      • Silver Tier
       
      Join Date: May 2007
      Location: Philippines
      Age: 26
      Gender: Male
      Nature: Careful
      Posts: 8,508
      Quote:
      Originally Posted by spidermight340 View Post
      what is the script so you need to talk to a certain person to proceed
      you need to use the setflag and checkflag commands.
      how? tutorials are made for you in the Tutorials section.
      __________________


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

        #5254    
      Old February 10th, 2011 (1:50 AM).
      Mana's Avatar
      Mana Mana is offline
      • Platinum Tier
       
      Join Date: Jan 2009
      Location: UK
      Gender: Female
      Posts: 10,005
      Can anyone see why the text in this level script would not show? I've just started hacking again and it's thrown me off.

      The script is implemented properly, it does start, move the sprites, then finish but no messages are shown.


      From A-Map:
      Spoiler:
      '-----------------------
      #org 0x800000
      lock
      setvar 0x7000 0x1
      applymovement MOVE_PLAYER 0x8800033
      waitmovement 0x0
      msgbox 0x880003B '"Hero, before you continue your\njou..."
      applymovement 0x1 0x8800038
      waitmovement 0x0
      applymovement 0x2 0x8800038
      waitmovement 0x0
      msgbox 0x8800087 '"Approach the Pokémon which most ref..."
      release
      end


      '-----------
      ' Movements
      '-----------
      #org 0x800033
      #raw 2 'Face Left
      #raw 3 'Face Right
      #raw 0 'Face Down
      #raw FE 'End of Movements

      #org 0x800038
      #raw 10 'Step Down (Normal)
      #raw FE 'End of Movements


      '---------
      ' Strings
      '---------
      #org 0x80003B
      = Hero, before you continue your\njourney you must pick your loyal\lpartner.

      #org 0x800087
      = Approach the Pokémon which most reflects you.


      Original:
      Spoiler:

      #org @start
      lock
      setvar 0x7000 0x1
      applymovement 0xFF @Move1
      waitmovement 0x0
      msgbox @Talk1 0x6
      applymovement 0x1 @Move2
      waitmovement 0x0
      applymovement 0x2 @Move2
      waitmovement 0x0
      msgbox @Talk2 0x6
      release
      end

      #org @Move1
      #raw 0x2 0x3 0x0 0xFE

      #org @Move2
      #raw 0x10 0xFE

      #org @Talk1
      = Hero, before you continue your\njourney you must pick your loyal\lpartner.

      #org @Talk2
      = Approach the Pokémon which most reflects you.
        #5255    
      Old February 10th, 2011 (9:19 AM).
      Nerketur's Avatar
      Nerketur Nerketur is offline
      PokéScripter
         
        Join Date: Nov 2010
        Location: Cyberspace
        Gender: Male
        Nature: Quirky
        Posts: 103
        Quote:
        Originally Posted by SwiftSign View Post
        Can anyone see why the text in this level script would not show? I've just started hacking again and it's thrown me off.

        The script is implemented properly, it does start, move the sprites, then finish but no messages are shown.


        From A-Map:
        Spoiler:
        '-----------------------
        #org 0x800000
        lock
        setvar 0x7000 0x1
        applymovement MOVE_PLAYER 0x8800033
        waitmovement 0x0
        msgbox 0x880003B //Missing type parameter '"Hero, before you continue your\njou..."
        applymovement 0x1 0x8800038
        waitmovement 0x0
        applymovement 0x2 0x8800038
        waitmovement 0x0
        msgbox 0x8800087 //Missing type parameter '"Approach the Pokémon which most ref..."
        release
        end


        '-----------
        ' Movements
        '-----------
        #org 0x800033
        #raw 2 'Face Left
        #raw 3 'Face Right
        #raw 0 'Face Down
        #raw FE 'End of Movements

        #org 0x800038
        #raw 10 'Step Down (Normal)
        #raw FE 'End of Movements


        '---------
        ' Strings
        '---------
        #org 0x80003B
        = Hero, before you continue your\njourney you must pick your loyal\lpartner.

        #org 0x800087
        = Approach the Pokémon which most reflects you.


        Original:
        Spoiler:

        #org @start
        lock
        setvar 0x7000 0x1
        applymovement 0xFF @Move1
        waitmovement 0x0
        msgbox @Talk1 0x6 // HAS type parameter.
        applymovement 0x1 @Move2
        waitmovement 0x0
        applymovement 0x2 @Move2
        waitmovement 0x0
        msgbox @Talk2 0x6 // HAS type parameter
        release
        end

        #org @Move1
        #raw 0x2 0x3 0x0 0xFE

        #org @Move2
        #raw 0x10 0xFE

        #org @Talk1
        = Hero, before you continue your\njourney you must pick your loyal\lpartner.

        #org @Talk2
        = Approach the Pokémon which most reflects you.
        The original is fine, Compiled version is NOT. Try compiling it, then replacing the script offset in Advance Map with the script offset that you get when you compile in XSE. Or, if you want to save space, at the very top of the script put "#removeall <oldoffset>" So, in your case, it would be "#removeall 0x800000" This works, because "removeall" basically COMPLETELY deletes (All movements, scripts, strings, and items involved) the script that was previously at that offset. (Assuming it has an "end" at the end of it.) Of course, this only works if you're using XSE, and it's only guaranteed to work if you're using the latest version of XSE.
        __________________
        Want my help in PokéScripting? PM me =)
        I use XSE v1.1.1 (HackMew = awesome) and Advance Map 1.92.
        Thanks to Diego and HackMew for their tutorials, helping me learn how to script!

        Hacks I support 100% (MUST SEE!):


        Very well made hacks:

        My work:
        Figuring out scripting in PMD
        Entire script map of LeafGreen
        PMDSE (Pokémon Mystery Dungeon Script Editor)
          #5256    
        Old February 10th, 2011 (9:52 AM).
        Mana's Avatar
        Mana Mana is offline
        • Platinum Tier
         
        Join Date: Jan 2009
        Location: UK
        Gender: Female
        Posts: 10,005
        Quote:
        Originally Posted by Nerketur View Post


        The original is fine, Compiled version is NOT. Try compiling it, then replacing the script offset in Advance Map with the script offset that you get when you compile in XSE. Or, if you want to save space, at the very top of the script put "#removeall <oldoffset>" So, in your case, it would be "#removeall 0x800000" This works, because "removeall" basically COMPLETELY deletes (All movements, scripts, strings, and items involved) the script that was previously at that offset. (Assuming it has an "end" at the end of it.) Of course, this only works if you're using XSE, and it's only guaranteed to work if you're using the latest version of XSE.
        Actually, that script offset is right, as clicking 'open script' makes it show the version before converting to the level script, which I did correctly.

        Turns out the version of XSE I have rejects 'msgbox' and will only show 'message' commands instead. Problem solved.
          #5257    
        Old February 10th, 2011 (10:07 AM).
        Nerketur's Avatar
        Nerketur Nerketur is offline
        PokéScripter
           
          Join Date: Nov 2010
          Location: Cyberspace
          Gender: Male
          Nature: Quirky
          Posts: 103
          Quote:
          Originally Posted by Skara View Post
          AAAAAAAAAAAHHHHHH I WANT TO SCREAM!!!!

          I made this script, and since it doesn't want to do anything I assume this isn't correct?
          Spoiler:

          #org @start
          lock
          faceplayer
          msgbox @text ' Hm? oh, hey. Sorry, I closed my lab down.
          msgbox @text ' You can still have a POKéMON though, here.
          checkflag 0x0029
          if 0x1 jump :end
          setflag FR_POKEMON
          countpokemon
          compare LASTRESULT 6
          if == jump @noroom
          addpokemon CATERPIE 0x5 ORANBERRY 0 0 0
          setflag 0x0029
          storepokemon 0 CATERPIE
          message @get-msg
          fanfare 0x101
          showmsg
          waitfanfare
          waitbutton
          :end
          release
          end

          #org @noroom
          msgbox @noroom-msg
          callstd MSG_NOCLOSE
          release
          end
          callstd MSG_OBTAIN
          release
          end

          #org @text
          = Hm? oh, hey. Sorry, I closed my lab down.
          = You can still have a POKéMON though, here.
          #org @get-msg
          = You got a \v\h02!
          = And here's your POKéDEX...
          setflag 0x829
          = I'm Carp by the way, Professor Arty Carp /PWell, I'm out.
          disappear


          I need help like, now. My hack can't progress otherwise.
          Quote:
          Originally Posted by Skara View Post
          No tutorial, just PKSV generated.
          If that was from PKSV, then PKSV sucks. Hardcore. There are so many errors, it would not compile in XSE unbless you did this (Changed to be a bit more efficient):

          Code:
          #include stdpoke.rbh
          #include stditem.rbh
          
          #org @start
          lock
          faceplayer
          msgbox @text MSG_NORMAL ' Hm? oh, hey. Sorry, I closed my lab down.
          checkflag 0x0828
          if 0x1 goto @end
          countpokemon
          compare LASTRESULT 6
          if B_== goto @noroom
          addpokemon PKMN_CATERPIE 0x5 ITEM_ORANBERRY 0 0 0
          setflag 0x828
          hidesprite <Person event number of Professor> 
          storepokemon 0 PKMN_CATERPIE // Not sure about this command
          msgbox @getmsg MSG_KEEPOPEN
          fanfare 0x101
          waitfanfare
          closeonkeypress
          release
          end
          
          #org @end
          release
          end
          
          #org @noroom
          msgbox @noroommsg MSG_KEEPOPEN //Where is this message?
          release
          end
          
          #org @text
          = Hm? oh, hey. Sorry, I closed my lab down./pYou can still have a POKéMON though, here.
          
          #org @getmsg
          = You got a \v\h02!/pAnd here's your POKéDEX.../pI'm Carp by the way, Professor Arty Carp/pWell, I'm out.
          
          #org @noroommsg
          = You don't have room for this!
          Then, set the professor person ID to 0x828, and he/she will disappear for good after the event.

          Now, if you want the shortest possible script? You don't need to check when you get your first pokemon, and checking if it's run is pointless if they disappear. So the script becomes

          Code:
          #include stdpoke.rbh
          #include stditem.rbh
          
          #org @start
          lock
          faceplayer
          msgbox @text MSG_NORMAL ' Hm? oh, hey. Sorry, I closed my lab down.
          addpokemon PKMN_CATERPIE 0x5 ITEM_ORANBERRY 0 0 0
          setflag 0x828
          hidesprite <Person event number of Professor> 
          storepokemon 0 PKMN_CATERPIE // Not sure about this command
          msgbox @getmsg MSG_KEEPOPEN
          fanfare 0x101
          waitfanfare
          closeonkeypress
          release
          end
          
          #org @end
          release
          end
          
          #org @text
          = Hm? oh, hey. Sorry, I closed my lab down./pYou can still have a POKéMON though, here.
          
          #org @getmsg
          = You got a \v\h02!/pAnd here's your POKéDEX.../pI'm Carp by the way, Professor Arty Carp/pWell, I'm out.
          All the RED is changed areas. If it doesn't do what you want, then you fix the rest =) I hope I helped. Next time, learn XSE before trying to do anything. xD
          __________________
          Want my help in PokéScripting? PM me =)
          I use XSE v1.1.1 (HackMew = awesome) and Advance Map 1.92.
          Thanks to Diego and HackMew for their tutorials, helping me learn how to script!

          Hacks I support 100% (MUST SEE!):


          Very well made hacks:

          My work:
          Figuring out scripting in PMD
          Entire script map of LeafGreen
          PMDSE (Pokémon Mystery Dungeon Script Editor)
            #5258    
          Old February 11th, 2011 (4:59 PM).
          Koute Koute is offline
             
            Join Date: Feb 2011
            Gender: Male
            Posts: 3
            ok every time i try to put in a script to a event it never works, like i wanted to add another event to pallet town which i changed name to Birchwood Town it has a park and there was a boy that is gonna complain but thats not it when i open rom and go to that boy and talk to it the rom freezes HALP!
              #5259    
            Old February 12th, 2011 (5:16 AM).
            destinedjagold's Avatar
            destinedjagold destinedjagold is offline
            Oh Hai Thar~
            • Silver Tier
             
            Join Date: May 2007
            Location: Philippines
            Age: 26
            Gender: Male
            Nature: Careful
            Posts: 8,508
            Quote:
            Originally Posted by Koute View Post
            ok every time i try to put in a script to a event it never works, like i wanted to add another event to pallet town which i changed name to Birchwood Town it has a park and there was a boy that is gonna complain but thats not it when i open rom and go to that boy and talk to it the rom freezes HALP!
            It would be helpful if you included your script in your post.
            __________________


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

              #5260    
            Old February 12th, 2011 (5:38 AM).
            Koute Koute is offline
               
              Join Date: Feb 2011
              Gender: Male
              Posts: 3
              ok ill show my script its on XSE so....
              Code:
              '-----------------------
              #org 0x900000
              faceplayer
              faceplayer
              msgbox 0x899001C '"Whiney Boy: My mom won't let me go ..."
              callstd 0x6
              release
              end
              
              
              '---------
              ' Strings
              '---------
              #org 0x99001C
              = Whiney Boy: My mom won't let me go to the park!
                #5261    
              Old February 12th, 2011 (7:39 AM).
              metapod23's Avatar
              metapod23 metapod23 is offline
              Hardened Trainer
                 
                Join Date: Mar 2009
                Gender: Male
                Nature: Timid
                Posts: 673
                Quote:
                Originally Posted by djvbb12 View Post
                The setvar stuff is the result of me using part of someone elses script and my lack of understanding. I'd rather not destroy the Daycare...What I want to do seems simple enough and I feel like I shouldn't have to re-write part of the game just to remove two pokemon from the game.
                I just wanted to say that I (finally) understand how to do this with HackMew's routine

                I added it to my previous tutorial for releasing Pokemon with the daycare script:

                http://www.pokecommunity.com/showthread.php?p=5599198#asm

                ^ It's a much better way to release Pokemon you have no intention of having returned to you. I hadn't realized that special 0x9f stores the Pokemon's slot # in your party in the correct variable for HackMew's routine to work

                (Thanks to JPAN's study on the special commands for helping me with this )
                __________________
                  #5262    
                Old February 12th, 2011 (2:17 PM).
                DrFuji's Avatar
                DrFuji DrFuji is offline
                Heiki Hecchara‌‌
                • Crystal Tier
                 
                Join Date: Sep 2009
                Location: Downia-upside
                Age: 24
                Gender: Male
                Nature: Jolly
                Posts: 1,328
                Quote:
                Originally Posted by Koute View Post
                ok ill show my script its on XSE so....
                Code:
                '-----------------------
                #org 0x900000
                faceplayer
                faceplayer
                msgbox 0x899001C '"Whiney Boy: My mom won't let me go ..."
                callstd 0x6
                release
                end
                 
                 
                '---------
                ' Strings
                '---------
                #org 0x99001C
                = Whiney Boy: My mom won't let me go to the park!
                I'd suggest that you reread XSE's guide and this tutorial because there are a few problems in the way you constructed this script. Try this instead:

                Code:
                #org 0x800000
                lock
                faceplayer
                msgbox @talk 0x6
                release
                end
                 
                #org @talk
                = Whiney Boy: My mom won't let me\ngo to the park!
                Changes in red.
                __________________
                  #5263    
                Old February 12th, 2011 (5:15 PM).
                Koute Koute is offline
                   
                  Join Date: Feb 2011
                  Gender: Male
                  Posts: 3
                  ok but uh like i said the rom freezes
                    #5264    
                  Old February 13th, 2011 (3:05 AM).
                  masterquestmq's Avatar
                  masterquestmq masterquestmq is offline
                  Enthusiastic Rom Hacker
                     
                    Join Date: Nov 2010
                    Gender: Male
                    Posts: 125
                    2 questions I've checked many tutorials but some of them are rather different to each other.

                    1) When making a giveitem script do we always need have to set a flag so the player wont be given the same item again if he/she talks to the person?

                    2)msgbox 0x5

                    #dynamic 0x800000

                    #org @start
                    msgbox @question 0x5
                    end

                    #org @questoin
                    = Will you go?

                    In the scipt above how do i continue it, for example when the player says yes the person will then say thank you. do we need to do the command like this: if 0x0 goto @thankyou etc?


                    appreciate the clarification
                      #5265    
                    Old February 13th, 2011 (5:04 AM).
                    destinedjagold's Avatar
                    destinedjagold destinedjagold is offline
                    Oh Hai Thar~
                    • Silver Tier
                     
                    Join Date: May 2007
                    Location: Philippines
                    Age: 26
                    Gender: Male
                    Nature: Careful
                    Posts: 8,508
                    Quote:
                    Originally Posted by masterquestmq View Post
                    2 questions I've checked many tutorials but some of them are rather different to each other.

                    1) When making a giveitem script do we always need have to set a flag so the player wont be given the same item again if he/she talks to the person?

                    2)msgbox 0x5

                    #dynamic 0x800000

                    #org @start
                    msgbox @question 0x5
                    end

                    #org @questoin
                    = Will you go?

                    In the scipt above how do i continue it, for example when the player says yes the person will then say thank you. do we need to do the command like this: if 0x0 goto @thankyou etc?


                    appreciate the clarification
                    1. yes.
                    2. msgbox 0x5 is a command wherein it checks the PLAYER's response to the Yes/No options. An example...
                    Code:
                    #dynamic 0x800000
                    
                    #org @start
                    faceplayer
                    msgbox @1 0x5
                    compare lastresult 0x1
                    if 0x1 goto @yes
                    goto @no
                    end
                    
                    #org @1
                    = Will you go?
                    
                    #org @yes
                    message @2 0x6
                    release
                    end
                    
                    #org @no
                    release
                    end
                    
                    #org @2
                    = Thank you!
                    The msgbox 0x5 will ask the PLAYER a question. This will also automatically tell the ROM to pop-up the Yes/No options.
                    The compare lastresult are commands to tell the ROM if the PLAYER selected yes/0x1 or no/0x0...
                    The if 0x1 goto @yes will confirm if the PLAYER's input was a yes, and if it is, then it'll proceed to the @yes address. If not, then it'll move to the next line of the script.
                    __________________


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

                      #5266    
                    Old February 13th, 2011 (5:43 PM). Edited February 13th, 2011 by pizzaz007.
                    pizzaz007's Avatar
                    pizzaz007 pizzaz007 is offline
                    Why not?
                       
                      Join Date: Dec 2010
                      Location: Meh-ville
                      Gender: Male
                      Nature: Relaxed
                      Posts: 44
                      I really don't get all this #define stuff, or call, or @blah, because i've learned to just Write it down on notepad. like, i dont know why, but i think it is a lot easier to do it that way, than to use XSE, or whatever. Like here, here is a script that I quickly put together for my game.


                      Game: Pokemon W.I.P (fire red)
                      Editor: Notepad (lol)
                      Script:


                      Spoiler:
                      #org $pokedex
                      locK
                      faceplayer
                      checkflag 0x1249
                      if 0x01 goto $snatch
                      checkflag 0x1250
                      if 0x01 goto $tosh
                      checkflag 0x1251
                      if 0x01 goto $gain
                      checkflag 0x1252
                      if 0x01 goto $sim
                      checkflag 0x1253
                      if 0x01 goto $finally
                      checkflag 0x1254
                      if 0x01 goto $end
                      checkflag 0x1255
                      if 0x01 goto $end1
                      checkflag 0x1256
                      if 0x01 goto $end2
                      checkflag 0x1257
                      if 0x01 goto $end3
                      checkflag 0x1258
                      if 0x01 goto $thefrigginend
                      checkflag 0x1259
                      if 0x01 goto $foullump
                      message $foru
                      $foru 1 = To: \v\h01\lFrom: ...\l\v\h01: (I can't make out the\nrest...)
                      boxset 6
                      message $lulz
                      $lulz 1 = \v\h01: What is this?\nA package?\nFor me\nWhat's in it...?
                      boxset 6
                      fanfare 0x13E
                      message $pwnd
                      $pwnd 1 = \v\h01: It's a...\lPokédex and a POKéMON!
                      boxset 4
                      waitfanfare
                      pause 0x30
                      setflag 0x828
                      setflag 0x829
                      setflag 0x1249
                      release
                      end
                      #org $snatch
                      checkflag 0x1250
                      if 0x01 goto $tosh
                      message $pus
                      $pus 1 = \v\h01: There's more stuff in here?\lShoes?\nWhy are there shoes?
                      boxset 6
                      waitfanfare
                      pause 0x30
                      setflag 0x82F
                      setflag 0x1250
                      release
                      end
                      #org $tosh
                      checkflag 0x1251
                      if 0x01 goto $gain
                      message $nope
                      $nope 1 = Nothing else in here...
                      boxset 6
                      setflag 0x1251
                      release
                      end
                      #org $gain
                      checkflag 0x1252
                      if 0x01 goto $sim
                      message $nope1
                      $nope1 1 = Nothing else in here...
                      boxset 6
                      setflag 0x1252
                      release
                      end
                      #org $sim
                      checkflag 0x1253
                      if 0x01 goto $finally
                      message $nope2
                      $nope2 1 = Nothing else in here...
                      boxset 6
                      setflag 0x1253
                      release
                      end
                      #org $finally
                      checkflag 0x1254
                      if 0x01 goto $end
                      message $nope3
                      $nope3 1 = Nothing else in here...
                      boxset 6
                      setflag 0x1254
                      release
                      end
                      #org $end
                      checkflag 0x1255
                      if 0x01 goto $end1
                      message $done1234
                      $done1234 1 = \v\h01: Oh. There IS something\nelse in here...\lA POKéBAll and other materials...
                      boxset 6
                      giveitem 0x1D 0x05
                      giveitem 0x168 0x01
                      giveitem 0xDD 0x10
                      giveitem 0x6E 0x05
                      giveitem 0x03 0x05
                      giveitem 0x02 0x05
                      giveitem 0x04 0x05
                      setflag 0x1255
                      release
                      end
                      #org $end1
                      checkflag 0x1256
                      if 0x01 goto $end2
                      message $hag
                      $hag 1 = Nothing else in here.\lPromise.
                      boxset 6
                      setflag 0x1256
                      release
                      end
                      #org $end2
                      checkflag 0x1257
                      if 0x01 goto $end3
                      message $*************
                      $************* 1 = Nothing else in here.\lPromise.
                      boxset 6
                      setflag 0x1257
                      #org $end3
                      checkflag 0x1258
                      if 0x01 goto $thefrigginend
                      message $hag1
                      $hag1 1 = Nothing else in here.\lPromise.
                      boxset 6
                      setflag 0x1258
                      release
                      end
                      #org $thefrigginend
                      checkflag 0x1259
                      if 0x01 goto $foullump
                      message $hag2
                      $hag2 1 = OH! There is one more\nthing in here...
                      boxset 6
                      givepokemon 283 05 0x8B
                      message $birth
                      $birth 1 = \v\h01 recieved a MUDKIP! :D
                      setflag 0x1259
                      release
                      end
                      #org $foullump
                      message $tehballz
                      $tehballz 1 = There is nothing more\lSeriously. A MUDKIP was Jesus'\neaster egg.\nScrew off kid.
                      boxset 6
                      release
                      end


                      I know, it seems humongus, but i find it easier than using a script editor like XSE. And if anyone didn't know what all that meant, it's basically a give pokedex and pokemon script, running shoes, and a mudkip. Does anyone else use this method? If not, them im going to need to learn how to use XSE...

                      quick edit: Every time it says 'end' There should be a space there, but on here, i guess they're not shown.
                      __________________
                      Ohai! :3

                      I code in XSE, and Python, primarily.

                      If you ever want someone to talk to, just drop me a line!
                        #5267    
                      Old February 13th, 2011 (7:00 PM).
                      destinedjagold's Avatar
                      destinedjagold destinedjagold is offline
                      Oh Hai Thar~
                      • Silver Tier
                       
                      Join Date: May 2007
                      Location: Philippines
                      Age: 26
                      Gender: Male
                      Nature: Careful
                      Posts: 8,508
                      Quote:
                      Originally Posted by pizzaz007 View Post
                      ...
                      So, why are you posting this again?
                      Is there a problem with your script? Are you asking someone to rewrite it to XSE format? Or were you just asking if someone else is using this scripting format?
                      __________________


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

                        #5268    
                      Old February 13th, 2011 (7:18 PM).
                      pizzaz007's Avatar
                      pizzaz007 pizzaz007 is offline
                      Why not?
                         
                        Join Date: Dec 2010
                        Location: Meh-ville
                        Gender: Male
                        Nature: Relaxed
                        Posts: 44
                        Well, what i was trying to say was just: How do you use XSE mostly. I included something that i typed up using notepad and pokescript, compiled, and put into my game. But you are all using commands like #define, #dynamic, msgbox, and i'm getting confused because i only use the notepad. So how do you use, say, XSE, or any script editor for that reason.
                        __________________
                        Ohai! :3

                        I code in XSE, and Python, primarily.

                        If you ever want someone to talk to, just drop me a line!
                          #5269    
                        Old February 13th, 2011 (9:44 PM). Edited February 14th, 2011 by Demonicross.
                        Demonicross's Avatar
                        Demonicross Demonicross is offline
                           
                          Join Date: Feb 2011
                          Gender: Male
                          Posts: 1
                          Using Fire Red
                          editor Notepad to Pokescript
                          Trigger script
                          Spoiler:
                          #org $Getpkmn
                          Lockall
                          Checkflag 0x1204
                          If b_true goto $skip
                          Message $hey
                          Boxset 6
                          Applymovement 0xFF $move
                          $move 1 ; #binary 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1D 0x1F 0xFE
                          Pausemove 0x0000
                          Message $hey2
                          Boxset 6
                          Applymovement 0xFF $move1
                          $move1 1 ; #binary 0x0E 0x0E 0x0E 0x0E 0x0E 0x0D 0x02 0xFE
                          Message $hey3
                          boxset 6
                          Pausemove 0x0000
                          #raw 0x53 0x55 0x01
                          Message $Get
                          boxset 6
                          Applymovement 0xFF $move2
                          $move2 1 ; #binary 0x03 0x0F 0x0F 0xFE
                          Applymovement 0x01 $move3
                          $move3 1 ; #binary 0x0F 0x0F 0x0F 0xFE
                          pausemove 0x0000
                          Message $Pkmn
                          boxset 6
                          Applymovement 0x01 $move4
                          $move4 1 ; #binary 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0xFE
                          Pausemove 0x0000
                          #raw 0x53 0xEE 0x02
                          Setflag 0x1204
                          Releaseall
                          end

                          #org $skip
                          Releaseall
                          end

                          #org $hey
                          $hey 1 = Hey \v\h01 \p Over here I found something

                          #org $hey2
                          $hey2 1 = There is a pokemon over \nthere \p I think it is hurt

                          #org $hey3
                          $hey3 1 = Be careful \v\h01

                          #org $Get
                          $Get 1 = \c\h01\h04You picked up \nthe Kabuto

                          #org $Pkmn
                          $Pkmn 1 = That was really brave \pIt must be really hurt \p Lets take it to \nProf. Oak \p I will go on ahead


                          Here is what it shows in Pokescript after i've Compiled what i typed in notepad
                          Spoiler:

                          #org 0x880107B
                          '-----------------------------------
                          takefurniture 0x636F
                          releaseall
                          cleartrainerflag 0x6C6C
                          comparefarbytetofarbyte 0x612042B 0x80114301
                          jumpstd 0xF

                          In game Y/N box comes up and Freezes
                          ______________________
                          Edit: Wrote script into XSE But it Freezes upon standing on trigger
                          Spoiler:
                          '---------------
                          #org 0x71ADB4
                          lock
                          checkflag 0x4B4
                          if 0x1 goto 0x871B219
                          msgbox 0x871AE1B MSG_NORMAL '"Hey [player] \p Over here I found ..."
                          applymovement MOVE_PLAYER 0x871AE43
                          waitmovement 0xFF
                          msgbox 0x871B064 MSG_NORMAL '"There is a pokemon over \nthere \p..."
                          applymovement MOVE_PLAYER 0x871B09A
                          msgbox 0x871B0A2 MSG_NORMAL '"Be careful [player]"
                          waitmovement 0xFF
                          hidesprite 0x4B5
                          setflag 0x1205
                          msgbox 0x871B188 MSG_NORMAL '"[red_fr]You picked up \nthe Kabuto"
                          applymovement MOVE_PLAYER 0x871B1A7
                          applymovement 0x1 0x871B1AB
                          waitmovement 0xFF
                          msgbox 0x871B1AF MSG_NORMAL '"That was really brave \pIt must be..."
                          applymovement 0x1 0x871B211
                          waitmovement 0x1
                          updatecoins 0xD9 0xED Not sure where this came from
                          nop This was to be a hide script
                          '---------------Both ends disappeared
                          #org 0x71B219
                          return


                          '---------
                          ' Strings
                          '---------
                          #org 0x71AE1B
                          = Hey [player] \p Over here I found something

                          #org 0x71B064
                          = There is a pokemon over \nthere \p I think it is hurt

                          #org 0x71B0A2
                          = Be careful [player]

                          #org 0x71B188
                          = [red_fr]You picked up \nthe Kabuto

                          #org 0x71B1AF
                          = That was really brave \pIt must be really hurt \p Lets take it to \nProf. Oak \p I will go on ahead


                          '-----------
                          ' Movements
                          '-----------
                          #org 0x71AE43
                          #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 0x1D 'Step Down (Fast)
                          #raw 0x1F 'Step Left (Fast)
                          #raw 0xFE 'End of Movements

                          #org 0x71B09A
                          #raw 0xE 'Step Left (Slow)
                          #raw 0xE 'Step Left (Slow)
                          #raw 0xE 'Step Left (Slow)
                          #raw 0xD 'Step Up (Slow)
                          #raw 0xE 'Step Left (Slow)
                          #raw 0xE 'Step Left (Slow)
                          #raw 0xFE 'End of Movements

                          #org 0x71B1A7
                          #raw 0xB 'Step Right (Very Slow)
                          #raw 0xB 'Step Right (Very Slow)
                          #raw 0xFE 'End of Movements

                          #org 0x71B1AB
                          #raw 0x12 'Step Left (Normal)
                          #raw 0x12 'Step Left (Normal)
                          #raw 0xFE 'End of Movements

                          #org 0x71B211
                          #raw 0x20 'Step Right (Fast)
                          #raw 0x20 'Step Right (Fast)
                          #raw 0x20 'Step Right (Fast)
                          #raw 0x20 'Step Right (Fast)
                          #raw 0x20 'Step Right (Fast)
                          #raw 0x20 'Step Right (Fast)
                          #raw 0x20 'Step Right (Fast)
                          #raw 0xFE 'End of Movements
                            #5270    
                          Old February 15th, 2011 (10:16 PM).
                          eishiba eishiba is offline
                             
                            Join Date: Aug 2010
                            Gender: Male
                            Posts: 61
                            Why is it when I use this as a text script, the character saying it says nothing to me?
                            #org $text
                            lock
                            faceplayer
                            message $gls
                            $gls 1 = Hi! I'm Jason.
                            boxset 6
                            release
                            end
                              #5271    
                            Old February 16th, 2011 (12:38 AM).
                            Satoshi Ookami's Avatar
                            Satoshi Ookami Satoshi Ookami is offline
                            Memento Mori
                            • Gold Tier
                             
                            Join Date: Jul 2008
                            Location: Abyss of Time, Great Seal
                            Age: 24
                            Gender: Male
                            Nature: Calm
                            Posts: 14,479
                            Quote:
                            Originally Posted by eishiba View Post
                            Why is it when I use this as a text script, the character saying it says nothing to me?
                            #org $text
                            lock
                            faceplayer
                            message $gls
                            $gls 1 = Hi! I'm Jason.
                            boxset 6
                            release
                            end
                            If I were you I'd start using XSE instead of Pokescript
                            Pokescript is very buggy.
                            __________________
                            ROM hacking FAQ - Read before asking how to play a hack.

                            Anime List | PSN Trophy List
                              #5272    
                            Old February 16th, 2011 (8:49 AM).
                            eishiba eishiba is offline
                               
                              Join Date: Aug 2010
                              Gender: Male
                              Posts: 61
                              Quote:
                              Originally Posted by Ash493 View Post
                              If I were you I'd start using XSE instead of Pokescript
                              Pokescript is very buggy.
                              I have tried that to. I always get an error when I go batch compiler.


                              Spoiler:

                              lock
                              faceplayer
                              msgbox @talk 0x6
                              release
                              end

                              #org @talk
                              = (text u wanna insert)


                              This one in xse after trying to go to batch compiler tells me Erroe 13 type mismatch in my file on line 2. Missing #define or paramenter.


                              Spoiler:
                              #dynamic 0x800000
                              #org $text
                              lock
                              faceplayer
                              message $gls
                              $gls 1 = Hi! I'm Jason.
                              boxset 6
                              release
                              end


                              Using this one makes it tell me No #org directives were found.
                                #5273    
                              Old February 16th, 2011 (9:07 AM).
                              TheDarkShark TheDarkShark is offline
                              Metal Headed Hacker
                                 
                                Join Date: May 2010
                                Location: Germany
                                Gender: Male
                                Nature: Calm
                                Posts: 56
                                XSE won't understand the $s. You'll have to use @, also, it won't accept the text right under the msgbox command. Try using this instead:

                                Code:
                                #dynamic 0x800000
                                #org @text
                                lock
                                faceplayer
                                msgbox $gls 0x6
                                release
                                end
                                
                                #org @gls
                                = Hi! I'm Jason.
                                You really should read a tutorial about XSE scripting.
                                  #5274    
                                Old February 17th, 2011 (8:28 AM).
                                eishiba eishiba is offline
                                   
                                  Join Date: Aug 2010
                                  Gender: Male
                                  Posts: 61
                                  Quote:
                                  Originally Posted by TheDarkShark View Post
                                  XSE won't understand the $s. You'll have to use @, also, it won't accept the text right under the msgbox command. Try using this instead:

                                  Code:
                                  #dynamic 0x800000
                                  #org @text
                                  lock
                                  faceplayer
                                  msgbox $gls 0x6
                                  release
                                  end
                                  
                                  #org @gls
                                  = Hi! I'm Jason.
                                  You really should read a tutorial about XSE scripting.
                                  I had to change the $gls to @gls since now I know you can't use $. Ive looked at a few videos on youtube and they all used $ and it worked for them. But I still don't get anything. I compiled that very script, then burned it to the rom, and pasted the offset into a new person event and the person is there but they don't say anything.
                                    #5275    
                                  Old February 17th, 2011 (8:44 AM).
                                  Regeneration's Avatar
                                  Regeneration Regeneration is offline
                                  meow
                                  • Silver Tier
                                   
                                  Join Date: Nov 2010
                                  Location: Somewhere I Belong
                                  Gender: Male
                                  Nature: Calm
                                  Posts: 1,423
                                  Quote:
                                  Originally Posted by eishiba View Post
                                  I had to change the $gls to @gls since now I know you can't use $. Ive looked at a few videos on youtube and they all used $ and it worked for them. But I still don't get anything. I compiled that very script, then burned it to the rom, and pasted the offset into a new person event and the person is there but they don't say anything.
                                  Maybe the person in the video was using Pokescript, since it uses the $ sign. In XSE and PKSV, you'll have to use the @ sign.
                                  Closed Thread
                                  Quick Reply

                                  Sponsored Links
                                  Thread Tools

                                  Posting Rules
                                  You may not post new threads
                                  You may not post replies
                                  You may not post attachments
                                  You may not edit your posts

                                  BB code is On
                                  Smilies are On
                                  [IMG] code is On
                                  HTML code is Off

                                  Forum Jump


                                  All times are GMT -8. The time now is 9:10 PM.