• 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

32
Posts
15
Years
    • Seen Feb 2, 2012
    Can you add how to make a script. Like Where you have to chose hitmonlee or hitmonchan.
    Because I really need help with that. So could you please add it to your tutorial :)
     

    Binary

    え?
    3,977
    Posts
    16
    Years
    • Seen Apr 7, 2014
    Can you add how to make a script. Like Where you have to chose hitmonlee or hitmonchan.
    Because I really need help with that. So could you please add it to your tutorial :)

    In truth, it is already included in the tutorial. You'll just have to find out how to make the script.
    And I'd also like to note that there is a thread for all your scripting problems.

    Edit:
    @Irish Chameleon:

    Spoiler:


    There's no need for the "if 0x0 goto..." the script simply continues in the same header if the flag isn't set
    And you should make your pointers simple. They're way too confusing.
     

    TehHepticOne

    Pokemon fanatic?!
    7
    Posts
    14
    Years
  • Hey guys,

    I was just wondering if there is anything wrong with my script. It keeps giving an error about an unknown error:

    Unknown keyword "
    setvar" at line 10.

    Here is the script:

    HTML:
    #dynamic 0x800898
    
    #org @start
    lock
    checkflag 0x200
    if 0x1 goto @release
    setvar 0x8004 0x3
    setvar 0x8005 12
    setvar 0x8006 12
    setvar 0x8007 3
    special 0x136
    waitspecial
    pause 0x40
    apply movement 0xFF @move0
    applymovement 0x1 @move1
    waitmovement 0x1
    applymovement 0x2 @move2
    waitmovement 0x2
    msgbox @Hey 0x6
    applymovement 0x1 @move3
    waitmovement 0x1
    applymovement 0x2 @move4
    waitmovement 0x2
    applymovement 0xFF @move5
    warp 0x3 0x0 0xFF 0x18 0x14
    setflag 0x200
    release
    end
    
    
    #org @release
    release
    end
    
    #org @move0
    #raw 0x65 0xFE
    
    #org @move1
    #raw 0x62 0x1E 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1F 0x1F 0x1F 0x1F 0x1E 0x02 0xFE
    
    #org @move2 
    #raw 0x1E 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x01 0xFE
    
    @Hey
    = Henry: Oi!\nGuys!\nWhat just happened?\nWas it an earthquake?\pPeter: It couldn't have been.\nWe don't get those around here\pHenry: Then what could it be?\pPeter: Let's go check it out.
    
    #org @move3
    #raw 0x1D 0x1D 0x1D 0x1F 0x1D 0x60 0xFE
    
    #org @move4
    #raw 0x1D 0x1D 0x1D 0x1D 0x60 0xFE
    
    #org @move5
    #raw 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE


    Line ten is "setvar 0x8007 3"
    Any Ideas?? Greatly appreciated~

    BTW I'm making an earthquake script
     
    10
    Posts
    14
    Years
  • Thanks Binary helps a lot :)

    and I make my pointers long and weird to make sure i never use it again by accident in another script :):):)
    very helpful advice though :)
     

    tinix

    PearlShipper & C Programmer
    86
    Posts
    14
    Years
  • Hey guys,

    I was just wondering if there is anything wrong with my script. It keeps giving an error about an unknown error:

    Unknown keyword "
    setvar" at line 10.

    Here is the script:

    Code:
    #dynamic 0x800898
    
    #org @start
    lock
    checkflag 0x200
    if 0x1 goto @release
    setvar 0x8004 0x3
    setvar 0x8005 [COLOR=DarkOrange]0x[/COLOR]12
    setvar 0x8006 [COLOR=DarkOrange]0x[/COLOR]12
    setvar 0x8007 [COLOR=DarkOrange]0x[/COLOR]3
    special 0x136
    waitspecial
    pause 0x40
    apply movement 0xFF @move0
    applymovement 0x1 @move1
    waitmovement 0x1
    applymovement 0x2 @move2
    waitmovement 0x2
    msgbox @Hey 0x6
    applymovement 0x1 @move3
    waitmovement 0x1
    applymovement 0x2 @move4
    waitmovement 0x2
    applymovement 0xFF @move5
    warp 0x3 0x0 0xFF 0x18 0x14
    setflag 0x200
    release
    end
    
    
    #org @release
    release
    end
    
    #org @move0
    #raw 0x65 0xFE
    
    #org @move1
    #raw 0x62 0x1E 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1F 0x1F 0x1F 0x1F 0x1E 0x02 0xFE
    
    #org @move2 
    #raw 0x1E 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x01 0xFE
    
    @Hey
    = Henry: Oi!\nGuys!\nWhat just happened?\nWas it an earthquake?\pPeter: It couldn't have been.\nWe don't get those around here\pHenry: Then what could it be?\pPeter: Let's go check it out.
    
    #org @move3
    #raw 0x1D 0x1D 0x1D 0x1F 0x1D 0x60 0xFE
    
    #org @move4
    #raw 0x1D 0x1D 0x1D 0x1D 0x60 0xFE
    
    #org @move5
    #raw 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE
    Line ten is "setvar 0x8007 3"
    Any Ideas?? Greatly appreciated~

    BTW I'm making an earthquake script

    IDK what causes unknown keyword (keyword=command) error here but try rewriting the line also i`ve noticed some missing 0xes i`ve written them in orange at quote
     

    Darkest Shade of Light

    Pokémon Midnight Sun
    298
    Posts
    14
    Years
  • Hey guys,

    I was just wondering if there is anything wrong with my script. It keeps giving an error about an unknown error:

    Unknown keyword "
    setvar" at line 10.

    Here is the script:

    HTML:
    #dynamic 0x800898
    
    #org @start
    lock
    checkflag 0x200
    if 0x1 goto @release
    setvar 0x8004 0x3
    setvar 0x8005 0x12
    setvar 0x8006 0x12
    setvar 0x8007 0x3
    special 0x136
    waitspecial
    pause 0x40
    applymovement 0xFF @move0
    applymovement 0x1 @move1
    waitmovement 0x1
    applymovement 0x2 @move2
    waitmovement 0x2
    msgbox @Hey 0x6
    applymovement 0x1 @move3
    waitmovement 0x1
    applymovement 0x2 @move4
    waitmovement 0x2
    applymovement 0xFF @move5
    warp 0x3 0x0 0xFF 0x18 0x14
    setflag 0x200
    release
    end
    
    
    #org @release
    release
    end
    
    #org @move0
    #raw 0x65 0xFE
    
    #org @move1
    #raw 0x62
    #raw 0x1E
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1E
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1E
    #raw 0x02
    #raw 0xFE
    
    #org @move2 
    #raw 0x1E
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x01
    #raw 0xFE
    
    @Hey
    = Henry: Oi!\nGuys!\nWhat just happened?\nWas it an earthquake?\pPeter: It couldn't have been.\nWe don't get those around here\pHenry: Then what could it be?\pPeter: Let's go check it out.
    
    #org @move3
    #raw 0x1D 0x1D 0x1D 0x1F 0x1D 0x60 0xFE
    
    #org @move4
    #raw 0x1D 0x1D 0x1D 0x1D 0x60 0xFE
    
    #org @move5
    #raw 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE
    Line ten is "setvar 0x8007 3"
    Any Ideas?? Greatly appreciated~

    BTW I'm making an earthquake script
    Look at tinix's post, and also, I fixed every problem I could see. Try just copy/pasting now.
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • That is because waitspecial isn't a command... use waitstate
    (A good way to tell if the command you are typing is correct... type the command and press space, if the yellow box saying "No Parameters Required" pops up, it is a command... waitspecial isn't one.)
     

    Darkest Shade of Light

    Pokémon Midnight Sun
    298
    Posts
    14
    Years
  • Hey guys,

    I was just wondering if there is anything wrong with my script. It keeps giving an error about an unknown error:

    Unknown keyword "
    setvar" at line 10.

    Here is the script:

    HTML:
    #dynamic 0x800898
    
    #org @start
    lock
    checkflag 0x200
    if 0x1 goto @release
    setvar 0x8004 0x3
    setvar 0x8005 0x12
    setvar 0x8006 0x12
    setvar 0x8007 0x3
    special 0x136
    waitstate
    pause 0x40
    applymovement 0xFF @move0
    applymovement 0x1 @move1
    waitmovement 0x1
    applymovement 0x2 @move2
    waitmovement 0x2
    msgbox @Hey 0x6
    applymovement 0x1 @move3
    waitmovement 0x1
    applymovement 0x2 @move4
    waitmovement 0x2
    applymovement 0xFF @move5
    warp 0x3 0x0 0xFF 0x18 0x14
    setflag 0x200
    release
    end
    
    
    #org @release
    release
    end
    
    #org @move0
    #raw 0x65
    #raw 0xFE
    
    #org @move1
    #raw 0x62
    #raw 0x1E
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1E
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1E
    #raw 0x02
    #raw 0xFE
    
    #org @move2 
    #raw 0x1E
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x01
    #raw 0xFE
    
    @Hey
    = Henry: Oi!\nGuys!\nWhat just happened?\nWas it an earthquake?\pPeter: It couldn't have been.\nWe don't get those around here\pHenry: Then what could it be?\pPeter: Let's go check it out.
    
    #org @move3
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0x1F
    #raw 0x1D
    #raw 0x60
    #raw 0xFE
    
    #org @move4
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0x60
    #raw 0xFE
    
    #org @move5
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0xFE
    There are no errors here anymore, I am about 99.999999... percent sure I got them all, including "waitspecial." Fixed all movements, and all that...
     

    Binary

    え?
    3,977
    Posts
    16
    Years
    • Seen Apr 7, 2014
    Spoiler:


    Besides that part, everything's right.
    Man, you guys should post in the script help thread -.-
     
    29
    Posts
    14
    Years
    • Seen Jul 25, 2012
    Hlp!

    I made a script to get a guy to give you a pokemon as you walk out of pallet town and this is what i got
    Spoiler:


    But when i do the game will freeze when he starts walkin toward me
    or will freeze when he starts talking

    i did the unknown and Var thing just like the pic showed but i cant get it
     

    Binary

    え?
    3,977
    Posts
    16
    Years
    • Seen Apr 7, 2014
    @pringles_king:

    Spoiler:
     

    Konekodemon

    The Master of Pokemon Breeding
    2,074
    Posts
    17
    Years
    • Age 39
    • NC
    • Seen Nov 20, 2023
    How do I tell what codes are for what area in the game and for what people?
     

    Binary

    え?
    3,977
    Posts
    16
    Years
    • Seen Apr 7, 2014
    @Pearlone: Script please and maybe you overwrote a used offset.
     

    Pearlone

    Beginning Mapper Spriter
    79
    Posts
    17
    Years
    • Seen Jan 9, 2017
    #Dynamic 0x800010

    #ORG @main
    Lock
    FacePlayer
    Message @Speak
    BoxSet 0x6
    Release
    End
    release
    end

    #org @Speak
    = Hi, I'm Andy.\n I came from Johto.
     
    Back
    Top