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

Draconius GO
Closed Thread
 
Thread Tools
  #2376    
Old October 11th, 2009 (5:59 PM).
panthers4091 panthers4091 is offline
     
    Join Date: Oct 2009
    Gender: Male
    Posts: 31
    Game: Fire Red
    Type: walk onto script
    Editor: XSE
    Script:
    Spoiler:

    #dynamic 0x71B1C4

    #org @start
    checkflag 0x900
    if 0x1 goto @done
    setflag 0x900
    applymovement 0xFF @move1
    pause 0x30
    msgbox @talk1 0x6
    applymovement 0x0 @move2
    waitmovement 0x0
    msgbox @talk2 0x6
    applymovement 0x0 @move3
    applymovement 0xFF @move4
    waitmovement 0x0
    hidesprite 0x5
    warp 0x4 0x0 0x2 0x0 0x0
    release
    end

    #org @done
    release
    end

    #org @move1
    #raw 0x62
    #raw 0xFE

    #org @move2
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x12
    #raw 0x11
    #raw 0x02
    #raw 0xFE

    #org @move3
    #raw 0x10
    #raw 0x13
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x13
    #raw 0x13
    #raw 0x10
    #raw 0x60
    #raw 0xFE

    #org @move4
    #raw 0x13
    #raw 0x10
    #raw 0x13
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x13
    #raw 0x13
    #raw 0x10
    #raw 0x60
    #raw 0xFE

    #org @talk1
    = blah

    #org @talk2
    = blah

    Ok so what happens in this is an npc goes towards the player, says something, then they walk off the map.
    It works except:
    I set a flag and such so the script couldn't be run more than once, but it still is.
    Also, the hidesprite doesn't work (using people ID), I come back to the map and they are still there.
    How can I fix those two problems?

    Also in same rom, here is a level script:
    Spoiler:

    '---------------
    #org 0x71ADA4
    #raw 0x2
    #raw pointer 0x871ADAA
    #raw 0x0

    '---------------
    #org 0x71ADAA
    #raw word 0x7000
    #raw word 0x0
    #raw pointer 0x871B088
    #raw word 0x0

    '---------------
    #org 0x71B088
    applymovement 0x0 0x871B0A9
    applymovement MOVE_PLAYER 0x871B0B7
    waitmovement 0x0
    setvar 0x7000 0x1
    hidesprite 0x5
    warp 0x3 0x0 0x1 0x0 0x0
    setfarbyte 0x13 0x10101010
    setbyte2 0x10 0x13
    setfarbyte 0x10 0x10FFFE60
    setfarbyte 0x13 0x10101010
    setbyte2 0x10 0x13
    setfarbyte 0x10 0x4FFE60
    nop

    '-----------
    ' Movements
    '-----------
    #org 0x71B0A9
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x60 'Hide
    #raw 0xFE 'End of Movements

    #org 0x71B0B7
    #raw 0x10 'Step Down (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x60 'Hide
    #raw 0xFE 'End of Movements

    For this one, you enter the map and continue to follow someone out of another door.
    The problem again is the hide sprite not working.
    Also IDK about those setbytes and such, they just appear and I have to delete them every time to compile correctly.

    Relevant Advertising!

      #2377    
    Old October 12th, 2009 (10:24 AM).
    Larvitar170's Avatar
    Larvitar170 Larvitar170 is offline
    Noobie hacker
       
      Join Date: Jul 2009
      Location: Kentucky.
      Gender: Male
      Nature: Modest
      Posts: 66
      Fire Red
      Xse
      Give pokemon
      Spoiler:
      #dynamic 0x727C2C

      #org @Start
      checkflag 0x828
      if 0x1 goto @done
      msgbox @1 0x5
      Compare LASTRESULT 0x1
      if 0x1 goto @take
      showpokepic 0xB3 0xA 0x3
      msgbox @2 0x6
      release
      end

      #org @take
      givepokemon 0xB3 0x5 0x0 0x0 0x0 0x0
      fanfare 0x13E
      msgbox @3 0x4
      waitfanfare
      closeonkeypress
      setflag 0x828
      msgbox @4 0x5
      compare LASTRESULT 0x1
      if 0x1 gosub @name
      hidesprite 0x800F
      msgbox @5 0x6
      release
      end

      #org @name
      countpokemon
      subvar 0x800D 0x1
      copyvar 0x8004 0x800D
      fadescreen 0x1
      special 0x166
      waitstate
      return


      #org @done
      msgbox @6 0x6
      release
      end


      #org @1
      = Would you like the Electric Pokemon\nMareep?

      #org @2
      = That's fine.\pTake your time.

      #org @3
      = [black_fr]You received a Mareep!

      #org @4
      = [black_fr]Would you like to give a\nnickname to Mareep?

      #org @5
      = Take great care of\nMareep.

      #org @6
      = I already gave you a Pokemon.


      Ok. It gives me the pokemon, which is great. My issue is in the nickname, where it goes to an unknown pokemon, and the hidesprite, and the show pokemon picture. The hidesprite works, then comes back as soon as you move. The pokemon Picture never comes up.
      __________________
      Current project: Pokemon Mud Brown (Working Title, will be changed.)
      No link because I haven't made a page for it yet.
      Team: Myself as mapper, scripter, and spriter.Brandinokthx as spriter.

        #2378    
      Old October 12th, 2009 (11:49 AM). Edited October 12th, 2009 by Lyzo.
      Lyzo's Avatar
      Lyzo Lyzo is offline
      On vacation
         
        Join Date: Mar 2007
        Location: The Netherlands
        Age: 22
        Gender: Male
        Nature: Bold
        Posts: 252
        Quote:
        Originally Posted by Larvitar170 View Post
        Fire Red
        Xse
        Give pokemon
        Spoiler:
        #dynamic 0x727C2C

        #org @Start
        checkflag 0x828
        if 0x1 goto @done
        msgbox @1 0x5
        Compare LASTRESULT 0x1
        if 0x1 goto @take
        showpokepic 0xB3 0xA 0x3
        msgbox @2 0x6
        release
        end

        #org @take
        givepokemon 0xB3 0x5 0x0 0x0 0x0 0x0
        fanfare 0x13E
        msgbox @3 0x4
        waitfanfare
        closeonkeypress
        setflag 0x828
        msgbox @4 0x5
        compare LASTRESULT 0x1
        if 0x1 gosub @name
        hidesprite 0x800F
        msgbox @5 0x6
        release
        end

        #org @name
        countpokemon
        subvar 0x800D 0x1
        copyvar 0x8004 0x800D
        fadescreen 0x1
        special 0x166
        waitstate
        return


        #org @done
        msgbox @6 0x6
        release
        end


        #org @1
        = Would you like the Electric Pokemon\nMareep?

        #org @2
        = That's fine.\pTake your time.

        #org @3
        = [black_fr]You received a Mareep!

        #org @4
        = [black_fr]Would you like to give a\nnickname to Mareep?

        #org @5
        = Take great care of\nMareep.

        #org @6
        = I already gave you a Pokemon.


        Ok. It gives me the pokemon, which is great. My issue is in the nickname, where it goes to an unknown pokemon, and the hidesprite, and the show pokemon picture. The hidesprite works, then comes back as soon as you move. The pokemon Picture never comes up.
        Code:
        #dynamic 0x727C2C
        
        #org @Start
        checkflag 0x828
        if 0x1 goto @done
        msgbox @1 0x5
        showpokepic 0xB3 0xA 0x3
        Compare LASTRESULT 0x1
        if 0x1 goto @take
        msgbox @2 0x6
        release
        end
        
        #org @take
        givepokemon 0xB3 0x5 0x0 0x0 0x0 0x0
        fanfare 0x13E
        hidepokepic
        msgbox @3 0x4
        waitfanfare
        closeonkeypress
        setflag 0x828
        msgbox @4 0x5
        compare LASTRESULT 0x1
        if 0x1 gosub @name
        hidesprite 0x800F
        msgbox @5 0x6
        release
        end
        
        #org @name
        countpokemon
        subvar 0x800D 0x1
        copyvar 0x8004 0x800D
        fadescreen 0x1
        special 0x166
        waitstate
        return
        
        
        #org @done
        msgbox @6 0x6
        release
        end
        
        
        #org @1
        = Would you like the Electric Pokemon\nMareep?
        
        #org @2
        = That's fine.\pTake your time.
        
        #org @3
        = [black_fr]You received a Mareep!
        
        #org @4
        = [black_fr]Would you like to give a\nnickname to Mareep?
        
        #org @5
        = Take great care of\nMareep.
        
        #org @6
        = I already gave you a Pokemon.
        Ok, your Show Pokemon Picture problem has been highlighted and corrected, as for the reason that the overworld may reappear is mabye because the Person ID doesn't have a set flag on it yet? Just change the Person ID to 828 and it will be fixed.
        I have no idea why the naming isn't working...

        Quote:
        Originally Posted by panthers4091 View Post
        Game: Fire Red
        Type: walk onto script
        Editor: XSE
        Script:
        Spoiler:

        #dynamic 0x71B1C4

        #org @start
        checkflag 0x900
        if 0x1 goto @done
        setflag 0x900
        applymovement 0xFF @move1
        pause 0x30
        msgbox @talk1 0x6
        applymovement 0x0 @move2
        waitmovement 0x0
        msgbox @talk2 0x6
        applymovement 0x0 @move3
        applymovement 0xFF @move4
        waitmovement 0x0
        hidesprite 0x5
        warp 0x4 0x0 0x2 0x0 0x0
        release
        end

        #org @done
        release
        end

        #org @move1
        #raw 0x62
        #raw 0xFE

        #org @move2
        #raw 0x11
        #raw 0x11
        #raw 0x11
        #raw 0x11
        #raw 0x11
        #raw 0x12
        #raw 0x11
        #raw 0x02
        #raw 0xFE

        #org @move3
        #raw 0x10
        #raw 0x13
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x13
        #raw 0x13
        #raw 0x10
        #raw 0x60
        #raw 0xFE

        #org @move4
        #raw 0x13
        #raw 0x10
        #raw 0x13
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x10
        #raw 0x13
        #raw 0x13
        #raw 0x10
        #raw 0x60
        #raw 0xFE

        #org @talk1
        = blah

        #org @talk2
        = blah

        Ok so what happens in this is an npc goes towards the player, says something, then they walk off the map.
        It works except:
        I set a flag and such so the script couldn't be run more than once, but it still is.
        Also, the hidesprite doesn't work (using people ID), I come back to the map and they are still there.
        How can I fix those two problems?

        Also in same rom, here is a level script:
        Spoiler:

        '---------------
        #org 0x71ADA4
        #raw 0x2
        #raw pointer 0x871ADAA
        #raw 0x0

        '---------------
        #org 0x71ADAA
        #raw word 0x7000
        #raw word 0x0
        #raw pointer 0x871B088
        #raw word 0x0

        '---------------
        #org 0x71B088
        applymovement 0x0 0x871B0A9
        applymovement MOVE_PLAYER 0x871B0B7
        waitmovement 0x0
        setvar 0x7000 0x1
        hidesprite 0x5
        warp 0x3 0x0 0x1 0x0 0x0
        setfarbyte 0x13 0x10101010
        setbyte2 0x10 0x13
        setfarbyte 0x10 0x10FFFE60
        setfarbyte 0x13 0x10101010
        setbyte2 0x10 0x13
        setfarbyte 0x10 0x4FFE60
        nop

        '-----------
        ' Movements
        '-----------
        #org 0x71B0A9
        #raw 0x13 'Step Right (Normal)
        #raw 0x13 'Step Right (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x13 'Step Right (Normal)
        #raw 0x13 'Step Right (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x60 'Hide
        #raw 0xFE 'End of Movements

        #org 0x71B0B7
        #raw 0x10 'Step Down (Normal)
        #raw 0x13 'Step Right (Normal)
        #raw 0x13 'Step Right (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x13 'Step Right (Normal)
        #raw 0x13 'Step Right (Normal)
        #raw 0x10 'Step Down (Normal)
        #raw 0x60 'Hide
        #raw 0xFE 'End of Movements

        For this one, you enter the map and continue to follow someone out of another door.
        The problem again is the hide sprite not working.
        Also IDK about those setbytes and such, they just appear and I have to delete them every time to compile correctly.
        As for you... I'm not excactly sure how you're using the Level Script. But make sure you did it correctly and go through this tutorial(bottom part about level scripts, there are 2 parts).
        I already see that you're missing a "setvar".
        __________________


        Thank you The Blueprint !!!
          #2379    
        Old October 12th, 2009 (12:11 PM).
        panthers4091 panthers4091 is offline
           
          Join Date: Oct 2009
          Gender: Male
          Posts: 31
          I did include a setvar:
          setvar 0x7000 0x1

          And I followed a different tutorial but one that had all of the same steps.

          The first script is not a level script, just a script event that you walk over.
            #2380    
          Old October 12th, 2009 (4:04 PM). Edited October 12th, 2009 by bloodrose.
          bloodrose bloodrose is offline
             
            Join Date: Feb 2009
            Posts: 1
            hi, sorry if im requesting help right off the bat, but this script won't work for me.
            the problem is when i enter the map, everything is black.
            Game: Ruby
            Type: Talking Script
            Editor: XSE
            Script:
            Spoiler:
            #dynamic 0x2220AE
            #org @start
            lock
            faceplayer
            msgbox @1 0x5
            compare 0x800D 0x1
            if 0x1 goto @check
            msgbox @2 0x6
            release
            end
            #org @check
            checkitem 0x10A 0x1
            compare 0x800D 0x1
            if 0x1 goto @got
            msgbox @6 0x6
            release
            end
            #org @got
            msgbox @4 0x6
            closeonkeypress
            showmoney 0x00 0x00 0x00
            givemoney 0xDAC0 0x0
            removeitem 0xD 0x1
            msgbox @3 0x6
            release
            end
            #org @1
            = Do you have any STOCK TICKET's?
            #org @2
            = Oh.\nCome back when you do.
            #org @3
            = There! I Have Cashed the TICKET,\nto $56,000.
            #org @4
            = ...................................\n...................................
            #org @6
            = Uhh,\nI'm Sorry but you don't seem to\lhave any STOCKS..
            __________________
            ---
            Pokemon Empyreal Sun
            [5.3%]
              #2381    
            Old October 12th, 2009 (10:44 PM).
            RainbowNebula's Avatar
            RainbowNebula RainbowNebula is offline
            Colour
            • Crystal Tier
             
            Join Date: Apr 2009
            Location: UK
            Gender: Male
            Nature: Lonely
            Posts: 679
            Help, I Have NO Expirience In Scripting But I Wanna Insert A Script, But A-Map Is Asking Me For All These Offsets And I Dunno What To Do
            Sorry For Being A Meganoob
            Please Help
              #2382    
            Old October 13th, 2009 (5:46 AM).
            Larvitar170's Avatar
            Larvitar170 Larvitar170 is offline
            Noobie hacker
               
              Join Date: Jul 2009
              Location: Kentucky.
              Gender: Male
              Nature: Modest
              Posts: 66
              Quote:
              Originally Posted by Get Out Of My Bath,Poliwag View Post
              Help, I Have NO Expirience In Scripting But I Wanna Insert A Script, But A-Map Is Asking Me For All These Offsets And I Dunno What To Do
              Sorry For Being A Meganoob
              Please Help
              Go here. http://www.pokecommunity.com/showthread.php?t=164276
              __________________
              Current project: Pokemon Mud Brown (Working Title, will be changed.)
              No link because I haven't made a page for it yet.
              Team: Myself as mapper, scripter, and spriter.Brandinokthx as spriter.

                #2383    
              Old October 14th, 2009 (8:24 AM).
              RainDogg54's Avatar
              RainDogg54 RainDogg54 is offline
              Crown of Love
                 
                Join Date: Oct 2009
                Location: arkansas
                Gender: Male
                Nature: Calm
                Posts: 54
                I just recently started scripting so forgive me if I'm doing this completely wrong.

                I'm trying to make a script that won't let the player walk pass a certain point until he gets a Pokemon.
                It's just supposed to make the player move 1 space left and display a message saying you can't go into the tall grass without a Pokemon.
                Code:
                #org $script
                lock
                message $warning
                $warning 1 = I shouldn't go into the tall grass without a POKEMON..
                boxset 6
                applymovement 0xFF $move
                $move 1 ; #binary 0x02 0xFE
                pausemove 0x0000
                release
                end
                But it this script just crashes my game and I don't know why.
                Can someone tell me what I'm doing wrong and help me out? Thanks in advance
                __________________
                Hacks I support:
                Spoiler:




                Currently working on my first hack:Pokemon Blue Islands

                PokePet:
                Spoiler:
                Dylan's PokePet

                A level 43 Corsola!


                  #2384    
                Old October 14th, 2009 (11:49 AM).
                romancandle romancandle is offline
                   
                  Join Date: Oct 2009
                  Gender: Male
                  Nature: Adamant
                  Posts: 72
                  Code:
                  #org $script
                  lock
                  message $warning
                  $warning 1 = I shouldn't go into the tall grass without a POKEMON..
                  boxset 6
                  applymovement 0xFF $move
                  $move 1 ; #binary 0x02 0xFE
                  pausemove 0x0000
                  release
                  end
                  What program are you using? I use XSE, and if you don't any my help doesn't work, sorry.

                  First off, things like $warning and $move should be moved down under the original script (put in #org $warning and then the message, and #org $move and then the action.)

                  2. Moving. After #org $move, use #raw instead of #binary. The 0x02 and 0xFE work

                  3. Instead of pausemovement, use waitmovement.

                  4. If you want to wait to make them get a pokemon, you need to check the givepokemon script for a setflag code. If you're directly replacing the Oak stops you script, you'll have to dig around (or ask another question) for the flag number.

                  That should cover it.

                  Now, my question: Whats the variable or flag for Oak giving you a pokemon? If no flag or variable, how (in directions, not code) would I change it so a script like above would click off when Oak hands you a pokemon?
                    #2385    
                  Old October 14th, 2009 (12:41 PM).
                  RainDogg54's Avatar
                  RainDogg54 RainDogg54 is offline
                  Crown of Love
                     
                    Join Date: Oct 2009
                    Location: arkansas
                    Gender: Male
                    Nature: Calm
                    Posts: 54
                    Quote:
                    Originally Posted by romancandle View Post
                    Code:
                    #org $script
                    lock
                    message $warning
                    $warning 1 = I shouldn't go into the tall grass without a POKEMON..
                    boxset 6
                    applymovement 0xFF $move
                    $move 1 ; #binary 0x02 0xFE
                    pausemove 0x0000
                    release
                    end
                    What program are you using? I use XSE, and if you don't any my help doesn't work, sorry.
                    I use poketscript not XSE but i don't think it matters.
                    Quote:
                    First off, things like $warning and $move should be moved down under the original script (put in #org $warning and then the message, and #org $move and then the action.)
                    Ok so do you mean I should put this?
                    Code:
                    #org $warning
                    message $warning
                    $warning 1 = I shouldn't go into the tall grass without a POKEMON..
                    and then do the same with $move?

                    Sorry I'm very new at this I'm still learning.

                    And I'm going to add the checkflag after I get this part of the script working
                    __________________
                    Hacks I support:
                    Spoiler:




                    Currently working on my first hack:Pokemon Blue Islands

                    PokePet:
                    Spoiler:
                    Dylan's PokePet

                    A level 43 Corsola!


                      #2386    
                    Old October 14th, 2009 (12:43 PM).
                    cooley's Avatar
                    cooley cooley is offline
                    ///Keepin' it simple
                    • Silver Tier
                     
                    Join Date: Feb 2007
                    Location: United States
                    Age: 23
                    Gender: Male
                    Nature: Impish
                    Posts: 1,150
                    Quote:
                    Originally Posted by romancandle View Post
                    [code]
                    Now, my question: Whats the variable or flag for Oak giving you a pokemon? If no flag or variable, how (in directions, not code) would I change it so a script like above would click off when Oak hands you a pokemon?
                    The Flag is 0x828. That activates the Pokémon menu when you are given a Pokémon. So you would use it like this:

                    givepokemon PKMN_CHARMANDER 0x5 ITEM_ORANBERRY
                    setflag 0x828
                    //
                    fanfare 0x13E
                    //msgbox @received_poke 0x4
                    //waitfanfare
                    release
                    end


                    The "//" indicate optional, but optimal commands for a givepokemon script.

                    And the easiest way to check off whether Prof. Oak gives you a Pokémon is to use Setflag, or if you're advanced, setvar. But setflag is easier to understand.. So you pick a flag (eg. 1000) and use it: "setflag 0x1000".

                    Now, just doing that is just... useless Lol. You'd have to check it with checkflag;

                    checkflag 0x1000
                    if 0x1(true) goto @gave_poke


                    Simple enough, right?

                    Quote:
                    Originally Posted by RainDogg54 View Post
                    I use poketscript not XSE but i don't think it matters.
                    Ok so do you mean I should put this?
                    Code:
                    #org $warning
                    message $warning
                    $warning 1 = I shouldn't go into the tall grass without a POKEMON..
                    and then do the same with $move?

                    Sorry I'm very new at this I'm still learning.

                    And I'm going to add the checkflag after I get this part of the script working
                    Using XSE over Pokescript does matter.. It's the amount of help you'll get as a beginner, and the ease of using one as a beginner. But you're choice is your choice. Right click, compile in Notepad < XSE compiling on spot with one click of a button

                    Code:
                    #org $warning
                     $warning 1 = I shouldn't go into the tall grass without a POKEMON..
                    This would be right. But I'll allow romancandle to help you more, because I don't know pokescript that well. :\
                    __________________

                      #2387    
                    Old October 14th, 2009 (2:53 PM).
                    panthers4091 panthers4091 is offline
                       
                      Join Date: Oct 2009
                      Gender: Male
                      Posts: 31
                      Do certain flags not work? I tried using the numbers 7 and 900 among others in the person ID field, and the person did not disappear after a setflag line (yes I had a hidesprite working).
                      Then, ONLY changing the flag and ID to others (20, 28, 29, 2A), it worked perfectly.
                        #2388    
                      Old October 14th, 2009 (2:58 PM).
                      cooley's Avatar
                      cooley cooley is offline
                      ///Keepin' it simple
                      • Silver Tier
                       
                      Join Date: Feb 2007
                      Location: United States
                      Age: 23
                      Gender: Male
                      Nature: Impish
                      Posts: 1,150
                      Quote:
                      Originally Posted by panthers4091 View Post
                      Do certain flags not work? I tried using the numbers 7 and 900 among others in the person ID field, and the person did not disappear after a setflag line (yes I had a hidesprite working).
                      Then, ONLY changing the flag and ID to others (20, 28, 29, 2A), it worked perfectly.
                      That's exactly how it is. Some of the flags, are used by the game already.
                      Check you're XSE guide to see which ones are in use, meaning anyone not listed, is available to you. And there are many..
                      __________________

                        #2389    
                      Old October 14th, 2009 (2:59 PM).
                      NarutoActor's Avatar
                      NarutoActor NarutoActor is offline
                      The rocks cry out to me
                      • Silver Tier
                       
                      Join Date: Jan 2009
                      Location: Brooklyn/Marlboro
                      Age: 24
                      Gender: Female
                      Nature: Bashful
                      Posts: 1,979
                      this is not a script help this is a simple question
                      check pksv flag list maby it was already set
                      __________________
                      ~There are those people who understand hex, F the rest
                        #2390    
                      Old October 14th, 2009 (3:36 PM).
                      romancandle romancandle is offline
                         
                        Join Date: Oct 2009
                        Gender: Male
                        Nature: Adamant
                        Posts: 72
                        Quote:
                        Originally Posted by RainDogg54 View Post
                        I use poketscript not XSE but i don't think it matters.
                        Ok so do you mean I should put this?
                        Code:
                        #org $warning
                        message $warning
                        $warning 1 = I shouldn't go into the tall grass without a POKEMON..
                        and then do the same with $move?

                        Sorry I'm very new at this I'm still learning.

                        And I'm going to add the checkflag after I get this part of the script working
                        As Cooley kindly pointed out:
                        Code:
                        #org $warning
                        $warning 1 = I shouldn't go into the tall grass with a POKEMON..
                        This is the correct way to do messages. The 2nd $warning (left of the 1) is not necessary, but it won't hurt (from my experience). You'll need to expand the first #org though. Like this:
                        Spoiler:

                        #org $start
                        lock
                        message $warning 0x6
                        release
                        end

                        #org $warning
                        1 = I shouldn't go into the tall grass with a POKEMON..

                        The 0x6 makes it a normal textbox message.

                        Move Script:
                        Spoiler:

                        The move script will look like:
                        Code:
                        #org $move
                        #raw 0x02 0xFE
                        or
                        Code:
                        #org $move
                        #raw 0x02
                        #raw 0xFE
                        Both are correct, and if you use the first style, when you compile the script to the ROM, at least in XSE, it'll automatically convert it to the 2nd style.


                        Let us know if you need help with the flag part too
                          #2391    
                        Old October 16th, 2009 (9:21 AM).
                        trebornosliw's Avatar
                        trebornosliw trebornosliw is offline
                        Learning
                           
                          Join Date: Jul 2009
                          Age: 25
                          Gender: Male
                          Nature: Adamant
                          Posts: 523
                          Well, it's been awhile since I posted here...
                          Alright, this is a very, very basic XSE roadblock script. The only problem I have is that the applymovement doesn't work, so there's really no point to the script. I've already set the unknown and var number to the correct values (0003 and 4050), so I'm not sure what the problem is.
                          Script:
                          Spoiler:

                          #dynamic 0x800000
                          #org @noleave
                          checkflag 0x1001
                          if 0x1 goto @done
                          msgbox @notyet 0x6
                          applymovement 0xFF @stepaway
                          releaseall
                          end
                          #org @done
                          end
                          #org @notyet
                          = ...better see Gardevoir first...
                          #org @stepaway
                          #raw 0x10
                          #raw 0xFE
                          __________________
                          Credit for my avatar goes to the Lego company.
                            #2392    
                          Old October 16th, 2009 (12:12 PM).
                          Satoshi Ookami's Avatar
                          Satoshi Ookami Satoshi Ookami is offline
                          Memento Mori
                          • Gold Tier
                           
                          Join Date: Jul 2008
                          Location: Abyss of Time, Great Seal
                          Age: 25
                          Gender: Male
                          Nature: Calm
                          Posts: 14,508
                          Ya don't have waitmovement 0x0 after applymovement.
                          __________________
                          ROM hacking FAQ - Read before asking how to play a hack.

                          Anime List | PSN Trophy List
                            #2393    
                          Old October 16th, 2009 (1:11 PM).
                          cooley's Avatar
                          cooley cooley is offline
                          ///Keepin' it simple
                          • Silver Tier
                           
                          Join Date: Feb 2007
                          Location: United States
                          Age: 23
                          Gender: Male
                          Nature: Impish
                          Posts: 1,150
                          Spoiler:

                          #dynamic 0x800000

                          #org @noleave
                          checkflag 0x1001
                          if 0x1 goto @done
                          msgbox @notyet 0x6
                          closeonkeypress
                          pause 0x3
                          applymovement 0xFF @stepaway
                          waitmovement 0x0
                          setflag 0x1001
                          releaseall
                          end

                          #org @done
                          release
                          end

                          #org @notyet
                          = ...Better see Gardevoir first...

                          #org @stepaway
                          #raw 0x10
                          #raw 0xFE

                          Well I kind of fixed your script, with some advice from Ash493. So try it now.
                          __________________

                            #2394    
                          Old October 16th, 2009 (4:53 PM). Edited October 17th, 2009 by trebornosliw.
                          trebornosliw's Avatar
                          trebornosliw trebornosliw is offline
                          Learning
                             
                            Join Date: Jul 2009
                            Age: 25
                            Gender: Male
                            Nature: Adamant
                            Posts: 523
                            Okay, I'll try it that way. Thanks!
                            EDIT: LOL, Cooley, you know better! The script worked alright, but you added setflag! It's a roadblock, so I don't want to setflag with this script. Bad Cooley!
                            Seriously though, thanks. This was enlightening.
                            __________________
                            Credit for my avatar goes to the Lego company.
                              #2395    
                            Old October 17th, 2009 (8:26 AM).
                            Spherical Ice's Avatar
                            Spherical Ice Spherical Ice is offline
                            • Crystal Tier
                             
                            Join Date: Nov 2007
                            Location: Bristol, UK
                            Age: 19
                            Posts: 5,235
                            Script Type: Trainerbattle, Applymovement, Msgbox
                            Script Editor: eXtreme Script Editor [XSE]
                            Script Problem: After the battle, the game freezes.
                            Script:
                            Spoiler:
                            #dynamic 0x800000

                            #org @start
                            checkflag 0x8E8
                            if 0x1 goto @end
                            msgbox @1 0x6
                            applymovement 0xFF @player1
                            waitmovement 0x0
                            applymovement 0x0 @rival1
                            applymovement 0xFF @player2
                            waitmovement 0x0
                            msgbox @2 0x6
                            applymovement 0x0 @rival2
                            waitmovement 0x0
                            trainerbattle 0x0 0x146 0x0 @before @after
                            msgbox @3 0x6
                            applymovement 0x0 @rival3
                            waitmovement 0x0
                            hidesprite 0x0
                            setflag 0x200
                            setflag 0x8E8
                            release
                            end

                            #org @end
                            release
                            end

                            #org @1
                            = removed

                            #org @2
                            = removed

                            #org @before
                            = removed

                            #org @after
                            = removed

                            #org @3
                            = removed

                            #org @player1
                            #raw 0x62
                            #raw 0xFE

                            #org @player2
                            #raw 0x03
                            #raw 0xFE

                            #org @rival1
                            #raw 0x11
                            #raw 0x11
                            #raw 0x11
                            #raw 0x11
                            #raw 0x11
                            #raw 0x11
                            #raw 0x11
                            #raw 0x11
                            #raw 0x02
                            #raw 0xFE

                            #org @rival2
                            #raw 0x27
                            #raw 0xFE

                            #org @rival3
                            #raw 0x0
                            #raw 0x10
                            #raw 0x10
                            #raw 0x10
                            #raw 0x10
                            #raw 0x10
                            #raw 0x10
                            #raw 0x10
                            #raw 0x10
                            #raw 0x10
                            #raw 0x10
                            #raw 0xFE

                            Comments: I removed the text because... I don't really know why, as I'm going to release screenshots with them in anyway. But, meh, it shortens the scripts length, so who cares?
                            __________________

                            A Pokemon that is discriminated!
                            Support squirtle and make it everyone's favourite.
                              #2396    
                            Old October 17th, 2009 (9:48 AM).
                            Samike360's Avatar
                            Samike360 Samike360 is offline
                            Lover of May
                               
                              Join Date: Mar 2009
                              Location: ATL
                              Gender:
                              Nature: Bold
                              Posts: 397
                              Quote:
                              Originally Posted by Spherical Ice View Post
                              Script Type: Trainerbattle, Applymovement, Msgbox
                              Script Editor: eXtreme Script Editor [XSE]
                              Script Problem: After the battle, the game freezes.
                              Script:
                              Spoiler:
                              #dynamic 0x800000

                              #org @start
                              checkflag 0x8E8
                              if 0x1 goto @end
                              msgbox @1 0x6
                              applymovement 0xFF @player1
                              waitmovement 0x0
                              applymovement 0x0 @rival1
                              applymovement 0xFF @player2
                              waitmovement 0x0
                              msgbox @2 0x6
                              applymovement 0x0 @rival2
                              waitmovement 0x0
                              trainerbattle 0x1 0x146 0x0 @before @after @later

                              #org @later

                              msgbox @3 0x6
                              applymovement 0x0 @rival3
                              waitmovement 0x0
                              hidesprite 0x0
                              setflag 0x200
                              setflag 0x8E8
                              release
                              end

                              #org @end
                              release
                              end

                              #org @1
                              = removed

                              #org @2
                              = removed

                              #org @before
                              = removed

                              #org @after
                              = removed

                              #org @3
                              = removed

                              #org @player1
                              #raw 0x62
                              #raw 0xFE

                              #org @player2
                              #raw 0x03
                              #raw 0xFE

                              #org @rival1
                              #raw 0x11
                              #raw 0x11
                              #raw 0x11
                              #raw 0x11
                              #raw 0x11
                              #raw 0x11
                              #raw 0x11
                              #raw 0x11
                              #raw 0x02
                              #raw 0xFE

                              #org @rival2
                              #raw 0x27
                              #raw 0xFE

                              #org @rival3
                              #raw 0x0
                              #raw 0x10
                              #raw 0x10
                              #raw 0x10
                              #raw 0x10
                              #raw 0x10
                              #raw 0x10
                              #raw 0x10
                              #raw 0x10
                              #raw 0x10
                              #raw 0x10
                              #raw 0xFE

                              Comments: I removed the text because... I don't really know why, as I'm going to release screenshots with them in anyway. But, meh, it shortens the scripts length, so who cares?
                              For these kind of trainerbattles, with the script continueing after the battle, I always use trainerbattle 0x1 instead of 0x0, and I think that's your problem. Try the changes made in bold that I added to the above script and see if that helps.
                              __________________





                              Please warm my eggs...I'll be sure to return the favor

                              From now one, if you haven't contacted me yet....I will not accept hacks unless they are at least in progressing hacks. So if you want my help, get some screenshots first.
                                #2397    
                              Old October 17th, 2009 (11:04 AM).
                              bigtukker bigtukker is offline
                                 
                                Join Date: Mar 2009
                                Gender:
                                Posts: 71
                                Game: Fire Red
                                Type: Trigger
                                Editor: Pokescript
                                Script:
                                Spoiler:
                                #org $script
                                lock
                                checkflag 0x828
                                if 0x01 goto $flag
                                applymovement 12 $move
                                $move 1 ; #binary 0x62 0x18 0x18 0x18 0x18 0xFE
                                pausemove 0x0000
                                message $talk
                                $talk 1 = Hello there.\nI heard from my collegue\lProfessor Oak, that you are\nbeginning your journey.\pI've got some help from\nProf. Oak, Prof. Birch and Prof. Elm\lto get these starters for you.\pSo choose wisely.
                                msgbox 6
                                release
                                end

                                #org $flag
                                end

                                Screenshots and/or Videos: Can't give you pics yet because of 15 post lock
                                  #2398    
                                Old October 17th, 2009 (11:15 AM).
                                Spherical Ice's Avatar
                                Spherical Ice Spherical Ice is offline
                                • Crystal Tier
                                 
                                Join Date: Nov 2007
                                Location: Bristol, UK
                                Age: 19
                                Posts: 5,235
                                And the problem is..?

                                I suggest using XSE, as more people understand it = more people can help you with it.
                                __________________

                                A Pokemon that is discriminated!
                                Support squirtle and make it everyone's favourite.
                                  #2399    
                                Old October 17th, 2009 (11:19 AM). Edited October 17th, 2009 by bigtukker.
                                bigtukker bigtukker is offline
                                   
                                  Join Date: Mar 2009
                                  Gender:
                                  Posts: 71
                                  I made a script tile after oaks door
                                  When I go through that door, nothing happens and when i step up and down, the game freezes...

                                  I made a XSE script too:

                                  '---------------
                                  #org 0x80145B
                                  checkflag 0x828
                                  if 0x1 goto 0x8801480
                                  applymovement 0x9 0x8801481
                                  msgbox 0x8801487 MSG_NORMAL '"Hello there.\nI heard from my coll..."
                                  release
                                  end

                                  '---------------
                                  #org 0x801480
                                  end


                                  '---------
                                  ' Strings
                                  '---------
                                  #org 0x801487
                                  = Hello there.\nI heard from my collegue\lProfessor Oak, that you are\nbeginning your journey.\pI've got some help from\nProf. Oak, Prof. Birch and Prof. Elm\lto get these starters for you.\pSo choose wisely.


                                  '-----------
                                  ' Movements
                                  '-----------
                                  #org 0x801481
                                  #raw 0x62 'Exclamation Mark (!)
                                  #raw 0x10 'Step Down (Normal)
                                  #raw 0x10 'Step Down (Normal)
                                  #raw 0x10 'Step Down (Normal)
                                  #raw 0x10 'Step Down (Normal)
                                  #raw 0xFE 'End of Movements
                                    #2400    
                                  Old October 17th, 2009 (12:11 PM).
                                  Spherical Ice's Avatar
                                  Spherical Ice Spherical Ice is offline
                                  • Crystal Tier
                                   
                                  Join Date: Nov 2007
                                  Location: Bristol, UK
                                  Age: 19
                                  Posts: 5,235
                                  On the script tile set the first Unknown to (I think) 003 and the Var Number (1st one) 4050. Should work.
                                  __________________

                                  A Pokemon that is discriminated!
                                  Support squirtle and make it everyone's favourite.
                                  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 1:43 AM.