• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Archive] Script help thread

Status
Not open for further replies.
  • 683
    Posts
    18
    Years
    -kills self-

    Okay I need help YET AGAIN.

    Spoiler:


    Everything goes perfectly until movement2. It freezes right before the person moves. @_@ I messed around with it like 50 times and I can't figure it out.
     

    machomuu

    Stuck in Hot Girl Summer
  • 10,507
    Posts
    16
    Years
    -kills self-

    Okay I need help YET AGAIN.

    Spoiler:


    Everything goes perfectly until movement2. It freezes right before the person moves. @_@ I messed around with it like 50 times and I can't figure it out.

    Which game are you hacking?
     
  • 31
    Posts
    16
    Years
    • Seen Apr 27, 2016
    ok im having a problem with this script

    Code:
    #dynamic 0x80000C
    '-----------------------
    #org 0x800000
    lock
    faceplayer
    checkflag 0x299
    if 0x1 goto 0x8800029
    msgbox 0x8800055 '"I Cant take \ncare of my \nBULBASAU..."
    callstd 0x5
    compare LASTRESULT 0x1
    if 0x1 goto 0x8800034
    msgbox 0x88000C4 '"IIm sure somebody else would\nlike ..."
    callstd 0x6
    release
    end
    '-----------------------
    #org 0x800029
    msgbox 0x880008F '"Hows my Bulbasuar doing?"
    callstd 0x6
    release
    end
    '-----------------------
    #org 0x800034
    givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox 0x88000A9 '"You received a Bulbasaur."
    callstd 0x6
    waitfanfare
    setflag 0x299
    release
    end
     
    '---------
    ' Strings
    '---------
    #org 0x800055
    = I cant take care of my \pBULBASAUR.\pYou can have it.
    #org 0x8000C4
    = Im sure somebody else would\nlike to have it.
    #org 0x80008F
    = Hows my Bulbasuar doing?
    #org 0x8000A9
    = You received a Bulbasaur.

    Wen i go and talk to the girl if i say yes the game frezzes. and if i say no it says put ???????? in iteams poket??
     

    Likewise

    Bye.
  • 724
    Posts
    16
    Years
    -kills self-

    Okay I need help YET AGAIN.

    Spoiler:


    Everything goes perfectly until movement2. It freezes right before the person moves. @_@ I messed around with it like 50 times and I can't figure it out.
    Assuming that your trying to move an event thats person ID is 0003, you should have done this:
    "applymovement 0x0003 @movement2"
    I might be wrong though, I'm just learning too so repost if it doesn't work.
     

    Vrai

    can you feel my heart?
  • 2,896
    Posts
    15
    Years
    • Age 29
    • Seen Oct 24, 2022
    Assuming that your trying to move an event thats person ID is 0003, you should have done this:
    "applymovement 0x0003 @movement2"
    I might be wrong though, I'm just learning too so repost if it doesn't work.

    I don't believe that is what the person ID is for. The person ID is for assigning it to a flag so that the person will disappear when the flag is set.
     
  • 31
    Posts
    16
    Years
    • Seen Apr 27, 2016
    Can Someone Help me?? i would like to put Pokegear in pokemon fire red but i have no clue how to? is there a way that can?
     

    Vrai

    can you feel my heart?
  • 2,896
    Posts
    15
    Years
    • Age 29
    • Seen Oct 24, 2022
    Can Someone Help me?? i would like to put Pokegear in pokemon fire red but i have no clue how to? is there a way that can?

    That requires major ASM scripting. Maybe you should learn how to normally script first.
     

    HackMew

    Mewtwo Strikes Back
  • 1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    Yes but you CAN use it to move the person event.

    As long as the People ID is the same as as the person number. Which doesn't make sense anyway...
    Forget about that: People ID = flag.

    And chrisdurer... if you don't know the difference between static and dynamic offsets, or how to handle both, then stick with dynamic.
     
    Last edited:
  • 31
    Posts
    16
    Years
    • Seen Apr 27, 2016
    does anyone know how to make a person talk to you ant then they walk away and disapear for the rest of the game?

    this is the code that i have
    Code:
    '-----------------------
    #org 0x800944
    lock
    faceplayer
    checkflag 0x827
    if 0x0 goto 0x8800957
    if 0x1 goto 0x8800972
    end
    '-----------------------
    #org 0x800957
    msgbox 0x8800972 '"im leaving"
    callstd 0x6
    closeonkeypress
    compare 0x4001 0x0
    applymovement MOVE_PLAYER 0x880097F
    waitmovement 0x0
    release
    end
    '-----------------------
    #org 0x800972
    
    '-----------
    ' Movements
    '-----------
    #org 0x80097F
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 60 'Hide
    #raw FE 'End of Movements
    
    '---------
    ' Strings
    '---------
    #org 0x800972
    = im leaving
     
    Last edited:

    voltachu

    in training pokemon hacker
  • 29
    Posts
    15
    Years
    • Seen Nov 8, 2016
    erm well i need help with scriptingi have the scripts but i cant figure out how to get them into the game can someone please help ???
     

    Thrace

    @tion
  • 1,048
    Posts
    17
    Years
    • Seen Oct 2, 2016
    does anyone know how to make a person talk to you ant then they walk away and disapear for the rest of the game?

    this is the code that i have
    Code:
    '-----------------------
    #org 0x800944
    lock
    faceplayer
    checkflag 0x827
    if 0x0 goto 0x8800957
    if 0x1 goto 0x8800972
    end
    '-----------------------
    #org 0x800957
    msgbox 0x8800972 '"im leaving"
    callstd 0x6
    closeonkeypress
    compare 0x4001 0x0
    applymovement MOVE_PLAYER 0x880097F
    waitmovement 0x0
    release
    end
    '-----------------------
    #org 0x800972
    
    '-----------
    ' Movements
    '-----------
    #org 0x80097F
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 60 'Hide
    #raw FE 'End of Movements
    
    '---------
    ' Strings
    '---------
    #org 0x800972
    = im leaving
    applymovement works like this:

    Spoiler:


    Here is an example

    Spoiler:


    That will make the person whose Person Event Number is 1 move forward 4 spaces. 0xfe is necessary to tell the script that the movement data has ended so is necessary at the end of every movement data.

    erm well i need help with scriptingi have the scripts but i cant figure out how to get them into the game can someone please help ???
    What script editor are you using? What problems are you encountering?
     

    Likewise

    Bye.
  • 724
    Posts
    16
    Years
    '-----------------------
    #org 0x71E529
    faceplayer
    checkflag 0x1002
    if 0x1 goto 0x871E6DE
    givepokemon 0x55 0x5 0x1 0x0 0x0 0x0
    msgbox 0x871E599 '"Dad: What do you want!\nCan't you s..."
    callstd 0x6
    applymovement MOVE_PLAYER 0x871E635
    waitmovement 0x0
    applymovement 0x3 0x871E63C
    waitmovement 0x0
    msgbox 0x871E63F '"You got an Eevee!"
    callstd 0x6
    applymovement MOVE_PLAYER 0x871E652
    waitmovement 0x0
    msgbox 0x871E658 '"Dad:I can't beleive you're already\..."
    callstd 0x6
    applymovement MOVE_PLAYER 0x871E6D4
    waitmovement 0x0
    applymovement 0x1011 0x871E6D8
    waitmovement 0x0
    setflag 0x1010
    setflag 0x1020
    setflag 0x1002
    release
    end

    '-----------------------
    #org 0x71E6DE
    release
    end


    '-----------
    ' Movements
    '-----------
    #org 0x71E635
    #raw 13 'Step Right (Normal)
    #raw 11 'Step Up (Normal)
    #raw 11 'Step Up (Normal)
    #raw 11 'Step Up (Normal)
    #raw 3 'Face Right
    #raw FE 'End of Movements

    #org 0x71E63C
    #raw 60 'Hide
    #raw FE 'End of Movements

    #org 0x71E652
    #raw 10 'Step Down (Normal)
    #raw 10 'Step Down (Normal)
    #raw 10 'Step Down (Normal)
    #raw 12 'Step Left (Normal)
    #raw FE 'End of Movements

    #org 0x71E6D4
    #raw 11 'Step Up (Normal)
    #raw 0 'Face Down
    #raw FE 'End of Movements

    #org 0x71E6D8
    #raw 13 'Step Right (Normal)
    #raw 13 'Step Right (Normal)
    #raw 10 'Step Down (Normal)
    #raw 13 'Step Right (Normal)
    #raw 60 'Hide
    #raw FE 'End of Movements


    '---------
    ' Strings
    '---------
    #org 0x71E599
    = Dad: What do you want!\nCan't you see that I'm working?\lOh it's you!\lAs you know, it is time give you\lyour first pokemon!\lYour pokemon is on the desk.

    #org 0x71E63F
    = You got an Eevee!

    #org 0x71E658
    = Dad:I can't beleive you're already\ngoing on your first journey!\pDad:Now if you will excuse me\nsome feild work to do.

    It works perfectly until the last movement, the NPC wont work, and I double checked the person ID and it's right.
     

    Vrai

    can you feel my heart?
  • 2,896
    Posts
    15
    Years
    • Age 29
    • Seen Oct 24, 2022
    It works perfectly until the last movement, the NPC wont work, and I double checked the person ID and it's right.

    You have an "8" in front of the pointer to the applymovement.

    Remove it, and it should work perfectly.
     
  • 31
    Posts
    16
    Years
    • Seen Apr 27, 2016
    applymovement works like this:

    Spoiler:


    Here is an example

    Spoiler:


    That will make the person whose Person Event Number is 1 move forward 4 spaces. 0xfe is necessary to tell the script that the movement data has ended so is necessary at the end of every movement data.


    What script editor are you using? What problems are you encountering?

    ok i get the person event number from advanced map? and if so just say the person event number is 4 i would put in

    #org @start
    applymovement 0x4 @moveHere
    waitmovement 0
    end

    #org @moveHere
    #raw 0x11 0x11 0x11 0x11 0xfe[/spoiler]

    ??
    and im using XSE and the problem is that everytime i talk to the guy it makes me move and hide instead of the other person.
     
  • 31
    Posts
    16
    Years
    • Seen Apr 27, 2016
    ok well now the guy moves and hides untill i leave and come back. then hes there again. how do i fix that?
     
    Status
    Not open for further replies.
    Back
    Top