• 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.

KhaosKnight

The 1 and only Khaotic Hacker
  • 355
    Posts
    16
    Years
    • Seen May 28, 2015
    can i request a script here?


    This is a script help thread, you have to make your own scripts. Then if you are having trouble getting it to work, post the script here, and we will help.

    But no, no one will make a script for you in this thread
     

    NTA

    Where?
  • 264
    Posts
    16
    Years
    • Seen Feb 10, 2012
    This is a script help thread, you have to make your own scripts. Then if you are having trouble getting it to work, post the script here, and we will help.

    But no, no one will make a script for you in this thread

    is there a request thread script?
     

    KhaosKnight

    The 1 and only Khaotic Hacker
  • 355
    Posts
    16
    Years
    • Seen May 28, 2015
    is there a request thread script?

    As far as i know of no...if you really need a script, try to find a scripter to be apart of your hacking team

    But it would be alot better for you in the long run to learn scripting yourself. Its not that hard, it just takes practice and Trail-and-Error
     

    Quilava's Master

    Shattered Dreams '13
  • 694
    Posts
    16
    Years
    • Seen Aug 14, 2023
    Can someone help with this headbutt script
    it does everything except start a wild pokemon battle

    Code:
    #org $headbutt 
    #raw 0x7C 0x1D 0x00 
    compare LASTRESULT 0x06 
    if 1 jump $could
    #raw 0x9D 0x00 0x0D 0x80 
    #raw 0x7F 0x00 0x0D 0x80 
    #raw 0x82 0x01 0x1D 0x00 
    message $question 
    boxset 0x5 
    compare LASTRESULT 0x00
    if 1 jump $end 
    message $used
    boxset 0x6 
    #raw 0x68 
    #raw 0x9C 0x25 0x00 
    #raw 0x27 0x1BE06F
    
    #org $could 
    message $you 
    boxset 0x6 
    release 
    end
    
    #org $end
    release
    end
    
    #org $you
    $you 1 = This tree could be headbutted!
    
    #org $question
    $question 1 = This tree could have a Pokemon\nin it. Use HEADBUTT?
    
    #org $used 
    $used 1 = \v\h02 used \v\h03!
     
  • 152
    Posts
    15
    Years
    I have more help requests... lol... I know these are easy fixes... which is why im not sure whats wrong :/

    here is a video of what the husband does:

    https://www.youtube.com/watch?v=qvB0wM6JSJo

    now here is his script:

    Spoiler:

    flag 219=helped the lady find her mail.
    flag 220=he gave you the item.






    Also... Mary is a little messed up too >_>

    When you agree to help her out and say "yes" you will help. If you talk to her again, she asks you to help her AGAIN instead of just going to what should be said after you say yes. Yet again, easy fix im sure...
    her script:
    Spoiler:
    I figured I'd repost this since I've gotten no answers and I'm still stuck there :/ (been doing other things waiting for an answer)

    and I also have another question.......


    How do I make a script used in a pokemon center for nurse joy?

    Can I just take the offset from another nurse joy at a different pokemon center in the game and use it?

    I tried it... but this is what happens:

    https://www.youtube.com/watch?v=loJLTGNpKEw
     

    Quilava's Master

    Shattered Dreams '13
  • 694
    Posts
    16
    Years
    • Seen Aug 14, 2023
    QM, there's no wildbattle in the script.

    No i meant the tree value (like how there water rod and grass pokemon) i want to know how to activate a battle for pokemon listed in the tree section..
    basically if this were rock smash how would i make it so that you actually battle a pokemon
     

    KhaosKnight

    The 1 and only Khaotic Hacker
  • 355
    Posts
    16
    Years
    • Seen May 28, 2015
    No i meant the tree value (like how there water rod and grass pokemon) i want to know how to activate a battle for pokemon listed in the tree section..
    basically if this were rock smash how would i make it so that you actually battle a pokemon


    Wait do trees have wild poke battles in FR?
     

    KhaosKnight

    The 1 and only Khaotic Hacker
  • 355
    Posts
    16
    Years
    • Seen May 28, 2015
    I dont have a decompiler =\ if you do could you post a piece of the script (even though i am sure ive done most of what i needed to)


    By the looks of your previous script you use Pokescript, use XSE it is so much better, and it will make scripting SOooooo much easier:D

    but here is the rocksmash script from FR(sorry but it is decompiled with XSE:( )

    Code:
    '-----------------------
    #org 0x1BE00C
    special 0x187
    compare LASTRESULT 0x2
    if 0x1 goto 0x81A7AE0
    lockall
    checkflag 0x825
    if 0x0 goto 0x81BE091
    checkattack 0xF9
    compare LASTRESULT 0x6
    if 0x1 goto 0x81BE091
    setanimation 0x0 LASTRESULT
    bufferpokemon2 0x0 LASTRESULT
    bufferattack 0x1 0xF9
    msgbox 0x81BE09D '"This rock appears to be breakable.\..."
    callstd 0x5
    compare LASTRESULT 0x0
    if 0x1 goto 0x81BE09A
    msgbox 0x81BDFD7 '"[buffer1] used [buffer2]!"
    callstd 0x4
    closeonkeypress
    doanimation 0x25
    waitstate
    goto 0x81BE06F
    end
    '-----------------------
    #org 0x1A7AE0
    release
    end
    '-----------------------
    #org 0x1BE091
    msgbox 0x81BE0E2 '"It's a rugged rock, but a POKéMON\n..."
    callstd 0x3
    end
    '-----------------------
    #org 0x1BE09A
    closeonkeypress
    releaseall
    end
    '-----------------------
    #org 0x1BE06F
    applymovement LASTTALKED 0x81BE08F
    waitmovement 0x0
    hidesprite LASTTALKED
    special 0xAB
    compare LASTRESULT 0x0
    if 0x1 goto 0x81BE08D
    waitstate
    releaseall
    end
    '-----------------------
    #org 0x1BE08D
    releaseall
    end
    
    '-----------
    ' Movements
    '-----------
    #org 0x1BE08F
    #raw 68 'mov68
    #raw FE 'End of Movements
    
    '---------
    ' Strings
    '---------
    #org 0x1BE09D
    = This rock appears to be breakable.\nWould you like to use ROCK SMASH?
    #org 0x1BDFD7
    = [buffer1] used [buffer2]!
    #org 0x1BE0E2
    = It's a rugged rock, but a POKéMON\nmay be able to smash it.

    Now if you havent done this before, you can just change the "checkattack 0xF9" to Headbuts move number and alter the text and animation:D
     

    Quilava's Master

    Shattered Dreams '13
  • 694
    Posts
    16
    Years
    • Seen Aug 14, 2023
    thanks but no cigar...it still freezes all i did was change the attack that it checks to headbutt..thats all i changed
     

    score_under

    Inactive; Former ROM hack tool author, ❤️
  • 526
    Posts
    18
    Years
    Austinia: Try
    Code:
    #org $start
    lock
    faceplayer
    checkflag 0x218
    if 1 goto $true
    goto $false1
    ' You don't need the other if, because it will ALWAYS happen if the script reaches this point. Following that logic, you don't need release/end either, although PokeScript is bad at decompiling this and doesn't stop decompilation at a jump command. (Nor does XSE, last time I checked)
    
    #org $true
    message $2
    boxset 6
    applymovement 0x01 $move
    pausemove 0x0
    setflag 0x219
    release
    end
    
    #org $false
    message $3
    boxset 6
    release
    end
    
    #org $false1
    message $1
    boxset 5
    if 1 goto $true1
    goto $false
    
    #org $true1
    message $4
    boxset 6
    release
    end
    
    #org $move
    #raw 0x12 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x60 0xFE
    
    #org $1
    $1 1 =Someone took my mail!\pIt contained important documents!\nNobody is going to get past me\puntil my letters are found!\pWill you help me find them?
    
    #org $2
    $2 1 =You found my letters!\pThanks so much!\pYou may pass through now. I am\ngoing back to my house now if you\phappen to need me.
    
    #org $3
    $3 1 =Then I will find the theif with or\nwithout your help. \pNow go away!
    
    #org $4
    $4 1 =Thanks!\nMy name is Mary Melpson.\pThat is the name that will be\nprinted on the mail.\pNow go find it!

    I'm not sure if that will work, but at least the code is more correct and less pointlessly bulky.
     
  • 248
    Posts
    16
    Years
    • Seen Nov 22, 2014
    @Austinia

    For the problem with going to the false part instead of the true part even when you say yes.. score_under's code just misses something (in blue)

    For the problem with the wife asking you to help everytime.. (in red)

    This is assuming that:
    flag 218 = found the letter, will be delivered the next time you talk to her
    flag 219 = delivered the letter
    flag XXX = any unused flag (for preventing her to ask for your help each time you talk to her; just replace XXX with an unused flag)

    (if flag 218 is for another purpose, this won't work >.>)

    Austinia: Try
    Code:
    #org $start
    lock
    faceplayer
    checkflag 0x218
    if 1 goto $true
    [B][COLOR=red]checkflag 0xXXX[/COLOR][/B]
    [B][COLOR=#ff0000]if 1 goto $true1[/COLOR][/B]
    goto $false1
    ' You don't need the other if, because it will ALWAYS happen if the script reaches this point. Following that logic, you don't need release/end either, although PokeScript is bad at decompiling this and doesn't stop decompilation at a jump command. (Nor does XSE, last time I checked)
     
    #org $true
    message $2
    boxset 6
    applymovement 0x01 $move
    pausemove 0x0
    setflag 0x219
    release
    end
     
    #org $false
    message $3
    boxset 6
    release
    end
     
    #org $false1
    message $1
    boxset 5
    [COLOR=blue][B]compare lastresult 1[/B][/COLOR]
    if 1 goto $true1
    goto $false
     
    #org $true1
    [B][COLOR=red]setflag 0xX[/COLOR][COLOR=red]XX[/COLOR][/B]
    message $4
    boxset 6
    release
    end
     
    #org $move
    #raw 0x12 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x60 0xFE
     
    #org $1
    $1 1 =Someone took my mail!\pIt contained important documents!\nNobody is going to get past me\puntil my letters are found!\pWill you help me find them?
     
    #org $2
    $2 1 =You found my letters!\pThanks so much!\pYou may pass through now. I am\ngoing back to my house now if you\phappen to need me.
     
    #org $3
    $3 1 =Then I will find the theif with or\nwithout your help. \pNow go away!
     
    #org $4
    $4 1 =Thanks!\nMy name is Mary Melpson.\pThat is the name that will be\nprinted on the mail.\pNow go find it!

    I'm not sure if that will work, but at least the code is more correct and less pointlessly bulky.
     
    Status
    Not open for further replies.
    Back
    Top