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

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.

Razer Rage

Beginning Hacker
126
Posts
16
Years
    • Seen Jul 1, 2012
    Is it possible to add custom multi-choice menus with XSE, and if not, then with ASM? And, of course, if so, how would one go about doing that? :P
     

    Razer Rage

    Beginning Hacker
    126
    Posts
    16
    Years
    • Seen Jul 1, 2012
    The only way you can customize them is to edit them manually with A-Text or with a Hex Editor.

    And here I was thinking it was something complex. :P That should meet my needs, I think. But that leads to two new questions:

    Can I add/subtract options from existing multi-choice menus, and can I add new multi-choice menus into the game?

    I'm guessing that just about anything is possible with ASM, yes?

    Thanks for your help. :)
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • And here I was thinking it was something complex. :P That should meet my needs, I think. But that leads to two new questions:

    Can I add/subtract options from existing multi-choice menus, and can I add new multi-choice menus into the game?

    I'm guessing that just about anything is possible with ASM, yes?

    Thanks for your help. :)

    I think you can add more, but you need to repoint the Table, and then you can add as many as you need... well... up to a total of 255...
    I forgot where the data is located, but there IS a tutorial here on the forums.
    (Don't think that everything requires ASM, cause in reality, not that many things do...)
     

    Co500

    Nostalgia Edition
    563
    Posts
    15
    Years
  • I didnt script this myself but its a level script in my hack but when it finishes weird symbols appeare and the box for buying coins at the game corner appear,

    Spoiler:
     

    HackMew

    Mewtwo Strikes Back
    1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    I didnt script this myself but its a level script in my hack but when it finishes weird symbols appeare and the box for buying coins at the game corner appear,

    Spoiler:

    Also thanks to AM, most people misunderstand what level scripts actually are. For example, that's just a part of the level script. To post the full one, enable the Professional Header View (Ctrl+H) then go to the Header Tab, and copy the Map Script offset. At this point, open XSE, load the ROM. Paste the offset you just copied, enable the Level Script option (the button near the decompile one) and decompile. That's it.
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • Also thanks to AM, most people misunderstand what level scripts actually are. For example, that's just a part of the level script. To post the full one, enable the Professional Header View (Ctrl+H) then go to the Header Tab, and copy the Map Script offset. At this point, open XSE, load the ROM. Paste the offset you just copied, enable the Level Script option (the button near the decompile one) and decompile. That's it.

    Yeah, I was always confused by that too... I guess you could call the smaller ones Level Snippets, and the Full one the Level Script

    The Code format being

    Level Script
    ---Level Snippet
    -----Actual Code
    ---Level Snippet
    -----Actual code...

    And so on an so forth, am I right?
     

    HackMew

    Mewtwo Strikes Back
    1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    Yeah, I was always confused by that too... I guess you could call the smaller ones Level Snippets, and the Full one the Level Script

    The Code format being

    Level Script
    ---Level Snippet
    -----Actual Code
    ---Level Snippet
    -----Actual code...

    And so on an so forth, am I right?

    Kinda, but there's not always actual code. There could be a Level Sub-snippet (as in type 02 and 04).
     

    Samike360

    Lover of May
    397
    Posts
    15
    Years
  • Yes, HackMew was right, but I got it fixed now. This is the third time this has happened with that script....to fix it, con11, click header and then go to the script under "map scripts" and click ctrl+h. Copy the offset in the box that says "script offset" and load the map using level script and decompile buttons in XSE. Where it says "#raw word 0xFFFF" change it to "#raw word 0x0" and compile it.

    Does anybody know why it keeps chanign the #raw word back to 0xFFFF?
     

    HackMew

    Mewtwo Strikes Back
    1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    Does anybody know why it keeps chanign the #raw word back to 0xFFFF?

    Yes. It's Advance Map. You might want to go XSE-only for level script editing, so you can be 100% sure it won't become 0xFFFF again.
     

    Co500

    Nostalgia Edition
    563
    Posts
    15
    Years
  • there is a new problem, samike made a script to battle TR but when it goes black to the battle screen it stays black

    Spoiler:
     

    Xatoku

    Game Developer
    451
    Posts
    15
    Years
  • there is a new problem, samike made a script to battle TR but when it goes black to the battle screen it stays black

    Spoiler:

    I think you'll need a call script, i bolded it.
     

    Samike360

    Lover of May
    397
    Posts
    15
    Years
  • I think you'll need a call script, i bolded it.

    That is unneccesary, since the trainer battle command calls that part anyway.

    The script works fine now, at least it works fine on my computer, I don't see what the problem is.
     
    1
    Posts
    14
    Years
    • Seen Jul 22, 2009
    please help...

    Hi I had my first try at scripting; a encounter with some spearo. To the best of my knowledge I see no reason that the code should not work...

    Code:
    #org $script
    message $talk1
    $talk1 1 = A pidgey, Its mine!
    boxset 6
    applymovement 1 $move1
    $move1 1 ; #binary 0x4E 0x4E 0x4F 0x1E 1e 1e 1e 1e 1e 0xFE
    pausemove 0x0000
    message $talk2
    $talk2 1 = NO! It got away come back!
    boxset 6
    applymovement 0xFF $move2
    $move2 1 ; #binary 0x01 0x1E 1e 0x02 0x1F 1f 1f 1f 1f 1f 1f 1f 0xFE
    pausemove 0x0000
    applymovement 0xFF $move3
    $move3 1 ; #binary 0x01 0x1E 1e 1e 1e 1e 1e 1e 1e 1e 1e 0xFE
    pausemove 0x0000
    message $talk3
    $talk3 1 = I will get you this time!
    boxset 6
    applymovement 2 $move4
    $move4 1 ; #binary 0x52 0x52 0x52 0x52 0xFE
    pausemove 0x0000
    message $talk4
    $talk4 1 = Wait no its a spearo!
    boxset 6
    applymovement 3 $move5
    $move5 1 ; #binary 0x03 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0xFE
    pausemove 0x0000
    applymovement 4 $move6
    $move6 1 ; #binary 0x02 0x1F 1f 1f 1f 1f 1f 1f 1f 1f 0xFE
    pausemove 0x0000
    message $talk5
    $talk5 1 = Someone help there are to maney!
    boxset 6
    message $talk6
    $talk6 1 = im... dead.
    boxset 6
    applymovement 6 $move7
    $move7 1 ; #binary 0x04 0x1D 1d 1d 1d 1d 1d 1d 0xFE
    pausemove 0x0000
    applymovement 6 $move8
    $move8 1 ; #binary 0x04 0x1D 1d 1d 1d 1d 1d 1d 0x02 0x1F 1f 0x01 0xFE
    pausemove 0x0000
    message $talk6
    $talk6 Leave them allone you stupid birds! \p Go starmi!
    boxset 6
    applymovement 2 $move9
    $move9 1 ; #binary 0x53 0x53 0x53 0x1E 1e 1e 1e 1e 1e 0xFE
    pausemove 0x0000
    applymovement 3 $move10
    $move10 1 ; #binary 0x53 0x53 0x53 0x1E 1e 1e 1e 1e 1e 0xFE
    pausemove 0x0000
    applymovement 4 $move11
    $move11 1 ; #binary 0x53 0x53 0x53 0x1E 1e 1e 1e 1e 1e 0xFE
    pausemove 0x0000
    message $talk7
    $talk7 Ha Ha I win! \p Oh no... \n are you ok? \p you and your pokemon look hurt... \p quick take my bike to the pokemon center \n I will stop the Spearo chasing you \p GO!
    boxset 6
    release
    end

    I made sure that all of the people are labled the right names and the code seems fine but it first of all skips the;
    Code:
    applymovement 3 $move5
    $move5 1 ; #binary 0x03 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0xFE
    pausemove 0x0000
    part. And then it will not run anything after the "Im dead" message.

    If anyone has any idea how to help me I have no idea what is wrong...
     

    BananasGoMoo

    Pokemon Electrum
    149
    Posts
    15
    Years
  • Hi I had my first try at scripting; a encounter with some spearo. To the best of my knowledge I see no reason that the code should not work...

    Code:
    #org $script
    message $talk1
    $talk1 1 = A pidgey, Its mine!
    boxset 6
    applymovement 1 $move1
    $move1 1 ; #binary 0x4E 0x4E 0x4F 0x1E 1e 1e 1e 1e 1e 0xFE
    pausemove 0x0000
    message $talk2
    $talk2 1 = NO! It got away come back!
    boxset 6
    applymovement 0xFF $move2
    $move2 1 ; #binary 0x01 0x1E 1e 0x02 0x1F 1f 1f 1f 1f 1f 1f 1f 0xFE
    pausemove 0x0000
    applymovement 0xFF $move3
    $move3 1 ; #binary 0x01 0x1E 1e 1e 1e 1e 1e 1e 1e 1e 1e 0xFE
    pausemove 0x0000
    message $talk3
    $talk3 1 = I will get you this time!
    boxset 6
    applymovement 2 $move4
    $move4 1 ; #binary 0x52 0x52 0x52 0x52 0xFE
    pausemove 0x0000
    message $talk4
    $talk4 1 = Wait no its a spearo!
    boxset 6
    applymovement 3 $move5
    $move5 1 ; #binary 0x03 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0xFE
    pausemove 0x0000
    applymovement 4 $move6
    $move6 1 ; #binary 0x02 0x1F 1f 1f 1f 1f 1f 1f 1f 1f 0xFE
    pausemove 0x0000
    message $talk5
    $talk5 1 = Someone help there are to maney!
    boxset 6
    message $talk6
    $talk6 1 = im... dead.
    boxset 6
    applymovement 6 $move7
    $move7 1 ; #binary 0x04 0x1D 1d 1d 1d 1d 1d 1d 0xFE
    pausemove 0x0000
    applymovement 6 $move8
    $move8 1 ; #binary 0x04 0x1D 1d 1d 1d 1d 1d 1d 0x02 0x1F 1f 0x01 0xFE
    pausemove 0x0000
    message $talk6
    $talk6 Leave them allone you stupid birds! \p Go starmi!
    boxset 6
    applymovement 2 $move9
    $move9 1 ; #binary 0x53 0x53 0x53 0x1E 1e 1e 1e 1e 1e 0xFE
    pausemove 0x0000
    applymovement 3 $move10
    $move10 1 ; #binary 0x53 0x53 0x53 0x1E 1e 1e 1e 1e 1e 0xFE
    pausemove 0x0000
    applymovement 4 $move11
    $move11 1 ; #binary 0x53 0x53 0x53 0x1E 1e 1e 1e 1e 1e 0xFE
    pausemove 0x0000
    message $talk7
    $talk7 Ha Ha I win! \p Oh no... \n are you ok? \p you and your pokemon look hurt... \p quick take my bike to the pokemon center \n I will stop the Spearo chasing you \p GO!
    boxset 6
    release
    end
    I made sure that all of the people are labled the right names and the code seems fine but it first of all skips the;
    Code:
    applymovement 3 $move5
    $move5 1 ; #binary 0x03 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0xFE
    pausemove 0x0000
    part. And then it will not run anything after the "Im dead" message.

    If anyone has any idea how to help me I have no idea what is wrong...
    thats written in pokescript, and if you are using XSE you shouldnt be scripting like that.

    and its spelled spearow
     

    NarutoActor

    The rocks cry out to me
    1,974
    Posts
    15
    Years
  • I read a lot of tutorials and thought I had it I dont see anything wrong in the script
    Spoiler:

    can some one please help PM me or just replie
     

    Samike360

    Lover of May
    397
    Posts
    15
    Years
  • I read a lot of tutorials and thought I had it I dont see anything wrong in the script
    Spoiler:

    can some one please help PM me or just replie

    Use Xse. Pksv is very buggy and XSE is much better, ask anyone on this forum and they will tell you the same.
     

    MC Blaze

    The Breeder
    34
    Posts
    14
    Years
    • Seen Aug 21, 2010
    Hey, umm... I need help with a script to enable the national dex in Fire red. This is what I got

    Spoiler:


    For some reason it doesn't work. I put it on one of the aides so he could give it to me at the begining, but I can't. Please, any help would be cool
     

    Samike360

    Lover of May
    397
    Posts
    15
    Years
  • Hey, umm... I need help with a script to enable the national dex in Fire red. This is what I got

    Spoiler:


    For some reason it doesn't work. I put it on one of the aides so he could give it to me at the begining, but I can't. Please, any help would be cool

    Use the magnifying glass in A-map and find an offset above 800000. Then, put that offset instead of @nacional and switch #dynamic to #dynamic 0x800000.
     
    Status
    Not open for further replies.
    Back
    Top