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

Sierra's MEGA-HUGE XSE Scripting Tutorial

G Deoxys

Beginner Rom Hacker
21
Posts
14
Years
  • hey how do i make this script work?

    #Dynamic 0xoffset

    #org @start
    lock
    faceplayer
    checkflag 0x828
    if 0x0 goto @give
    if 0x1 goto @sry
    release
    end

    #org @give
    givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    waitfanfare
    setflag 0x828
    msgbox @yay
    boxset 0x6
    release
    end

    #org @sry
    msgbox @sorry
    boxset 0x6
    end

    #org @yay
    = You got Bulbasaur!

    #org @sorry
    = I can't give you anymore.
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • hey how do i make this script work?

    #Dynamic 0xoffset

    #org @start
    lock
    faceplayer
    checkflag 0x828
    if 0x1 goto @sry
    givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    waitfanfare
    setflag 0x828
    msgbox @yay 0x6
    release
    end

    #org @sry
    msgbox @sorry 0x6
    end

    #org @yay
    = You got Bulbasaur!

    #org @sorry
    = I can't give you anymore.

    A few things, first off, I hope you know that "offset" is actually going to be a number, like 0x800000...

    2nd;
    checkflag 0x828
    if 0x0 goto @give
    if 0x1 goto @sry
    is incorrect, you only need to define one of the 2, so I'll modify your script a little... Edits will be in the quote, in BOLD RED. (EXCEPT for things I remove, since I can't highlight stuff that isn't there.)

    The only other thing wrong is the "boxset" command isn't used anymore, and is now a part of msgbox, so if you use boxset 0x6, now just add an 0x6 after the message's pointer...

    Try the script out now...
    (ALSO, if you don't know how to insert a script, read a tutorial, or Press F2 in XSE...)
     

    G Deoxys

    Beginner Rom Hacker
    21
    Posts
    14
    Years
  • ok, thanks for the help!!!!

    A few things, first off, I hope you know that "offset" is actually going to be a number, like 0x800000...

    2nd;
    checkflag 0x828
    if 0x0 goto @give
    if 0x1 goto @sry
    is incorrect, you only need to define one of the 2, so I'll modify your script a little... Edits will be in the quote, in BOLD RED. (EXCEPT for things I remove, since I can't highlight stuff that isn't there.)

    The only other thing wrong is the "boxset" command isn't used anymore, and is now a part of msgbox, so if you use boxset 0x6, now just add an 0x6 after the message's pointer...

    Try the script out now...
    (ALSO, if you don't know how to insert a script, read a tutorial, or Press F2 in XSE...)
    i put it in and when i go to talk to the person i click "a" and they don't say anything?
     
    Last edited:

    DawnRyder

    I cannot believe I'm back -.-
    79
    Posts
    14
    Years
    • Seen Nov 12, 2011
    Toon Link said:
    What is the script to set the national pokedex in emerald?

    #org @givendex
    lock
    faceplayer
    msgbox @dexgive 0x2
    callstd 0x4
    special 0x1F3
    release
    end


    #org @dexgive
    = Here is a National Pokédex.
     

    ME0W

    Still busy working on my hack.
    22
    Posts
    14
    Years
    • Seen Oct 16, 2009
    Man! This tutorial really helped me a lot!
    Thanks dude! Your the man!

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    I like CHANSEY.. :)
     

    ME0W

    Still busy working on my hack.
    22
    Posts
    14
    Years
    • Seen Oct 16, 2009
    Thanks for the guide again! Now, I can use some coomands
    that I never knew I can use!
     
    31
    Posts
    14
    Years
    • Seen Sep 6, 2013
    Excellent guide, I've been using things from it for a while but just thought you deserved a post.
     
    1
    Posts
    14
    Years
    • Seen Sep 14, 2010
    1. For the trainer battle, how do you change the pokemon the trainer is battling with? Does it depend on what trainer ID you're using?
    2. How do you change what Prof. Oak would say OUTSIDE and INSIDE the lab?
     
    31
    Posts
    14
    Years
    • Seen Sep 6, 2013
    1. For the trainer battle, how do you change the pokemon the trainer is battling with? Does it depend on what trainer ID you're using?
    2. How do you change what Prof. Oak would say OUTSIDE and INSIDE the lab?

    The trainer ID determines the trainer you face, and therefore the pokemon. Download a tool if you want to change it.

    To change what people say, open up the preexisting scripts and change them.
     
    3
    Posts
    14
    Years
    • Seen Dec 21, 2009
    What is wrong with this script :( when i click on the npc i hear the sound of the messageboxx but the message box itself doesnt show here is the script

    #dynamic 0x6B0A02
    #org @start
    msgbox @hello 0x2
    end

    #org @hello
    = Hello\nMy name is Battousai
     

    Chevalier

    Réveiller
    21
    Posts
    14
    Years
  • Great guide! Huge help on countless problems except for a few things.

    The most obvious problem that I've encountered is having to do with movement.

    Example:
    Overworld tries to pass Person A, Person A stops Overworld *doesn't lead him anywhere or makes him take a step back* and engages in a conversation. Then Person A walks off screen.
    This event only happens once.

    I realize that some of it is explained but as far I've read, and I've read the guide thoroughly, it doesn't mention how to go about this.

    Thanks in advance.
     
    Back
    Top