• 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

ShinyBlaziken

Dragon-Master
66
Posts
14
Years
  • Okay, I fixed my problem on my own xD

    But now I've got another Problem
    I tried the "givepokemon" Script but it didn't work.
    XSE said that there is missing something at the "compare LASTRESULT 0x1" part.
    But what's missing there???
     
    Last edited:

    Sierraffinity

    Desperately trying to retire from ROM hacking
    1,069
    Posts
    16
    Years
  • Don't know why but it doesn't work for me...
    I wanted to make a sign so I made this:
    Code:
    '---------------
    #dynamic 0x800159
    
    
    #org @start
    msgbox @sign 0x3
    end
    
    #org @sign
    = Hi!
    When I clicked the Sign there didn't appear any text...

    Okay, I fixed my problem on my own xD

    But now I've got another Problem
    I tried the "givepokemon" Script but it didn't work.
    XSE said that there is missing something at the "compare LASTRESULT 0x1" part.
    But what's missing there???
    Replace LASTRESULT with 0x800D.
     

    ShinyBlaziken

    Dragon-Master
    66
    Posts
    14
    Years
  • Okay, thank you!!! ! :D

    Hmmm...
    Well the Script was okay but i don't get any Pokemon :D
    I talk to a guy but he always says "Are you taking good care of Charmander".
    Is it because I already have a Charmander?
    What do i have to change??
     
    Last edited:

    Sierraffinity

    Desperately trying to retire from ROM hacking
    1,069
    Posts
    16
    Years
  • Okay, thank you!!! ! :D

    Hmmm...
    Well the Script was okay but i don't get any Pokemon :D
    I talk to a guy but he always says "Are you taking good care of Charmander".
    Is it because I already have a Charmander?
    What do i have to change??
    Change the flag numbers. That was just an example flag #.
     

    TheDon

    Shedinja Enthusiast
    42
    Posts
    16
    Years
    • Seen Sep 25, 2018
    Question, does #dynamic 0x<offset> overwrite the designated offset? Or does it look for free space starting from the offset?
     

    TheDon

    Shedinja Enthusiast
    42
    Posts
    16
    Years
    • Seen Sep 25, 2018
    Is there a command that I can use in XSE or wherever to erase a certain script from an offset, then replace it with the new one that at the time, I just made? I tried the #remove before and after the #dynamic at the beginning of the script, but it didn't work.
     

    Pokepal17

    More cowbell~
    1,519
    Posts
    15
    Years
  • Is there a command that I can use in XSE or wherever to erase a certain script from an offset, then replace it with the new one that at the time, I just made? I tried the #remove before and after the #dynamic at the beginning of the script, but it didn't work.

    All the script should be is:

    #remove 0xoffset


    nothing else.
     

    TheDon

    Shedinja Enthusiast
    42
    Posts
    16
    Years
    • Seen Sep 25, 2018
    Meh. I go to compile it to the ROM, and it gives me "No dynamic start offset specified" after I take out the #dynamic command.
     

    ShinyBlaziken

    Dragon-Master
    66
    Posts
    14
    Years
  • I made this Script

    Code:
    #dynamic 0x803E28
    
    #org @start
    checkflag 0x209
    if 0x1 goto @done
    msgbox @1 0x5
    compare 0x800D 0x1
    if 0x1 goto @take
    msgbox @2 0x2
    release
    end
    
    #org @take
    givepokemon 0x382 0x5 0x199 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @3 0x4
    waitfanfare
    closeonkeypress
    setflag 0x209
    msgbox @4 0x5
    compare 0x800D 0x1
    if 0x1 gosub @name
    msgbox @5 0x6
    release
    end
    
    #org @name
    call 0x1A74EB
    return
    
    #org @done
    clearflag 0x209
    release
    end
    
    #org @1
    = [black_fr]There's a Pokeball on the table\nDo you want to take it?
    
    #org @2
    = [black_fr]You left the Pokeball on the table
    
    #org @3
    = [black_fr]You received Aron
    
    #org @4
    = [black_fr]Would you like to give a\nnickname to Aron?
    
    #org @5
    = DREW: Please take care of\nAron!

    At first there's the Question if I take the Pokeball or not. if I click "no" then "You left the Pokeball on the table" appears and nothing else happens.
    But if I click at "Yes" my game just freezes -.-
    I don't know why.
     

    Excalibur

    Sorry for my english...
    19
    Posts
    15
    Years
    • Seen Jan 11, 2015
    ShinyBlaziken, there is an error in your givepokemon command. The values must be in hex.
     

    Excalibur

    Sorry for my english...
    19
    Posts
    15
    Years
    • Seen Jan 11, 2015
    You can use Windows Calculator Advance Mode or XSE Calc.
    382 in hex = 17E and 199 in hex = C7.
     

    Excalibur

    Sorry for my english...
    19
    Posts
    15
    Years
    • Seen Jan 11, 2015
    Its not a script. Its a type of signpost. (06 Hidden Item)
     

    ShinyBlaziken

    Dragon-Master
    66
    Posts
    14
    Years
  • Hi,
    I've got another Problem now xDDD

    I made a Script but there appears the message "This tree looks like it can be CUT down" when I'm talking to the Person.

    Here's my script

    Code:
    #dynamic 0x8001F6
    
    #org @start
    lock
    faceplayer
    msgbox @speak 0x2
    applymovement 0x4 @move
    waitmovement 0x0
    release
    end
    
    #org @speak
    = [blue_fr]LINDSAY: Hi, this is my farm.\nI've got a lot of Pokemon here\pMy favorite is...\n[black_fr]JOHN: Lindsay!\pDon't say any other word!/n[blue_fr]LINDSAY: Oh..., Gotta go!
    
    #org @move
    #raw 0x20
    #raw 0x20
    #raw 0x20
    #raw 0x20
    #raw 0x0
    #raw 0xFE
     

    Wuggles

    Pokémon Omega
    101
    Posts
    17
    Years
    • Seen Nov 4, 2013
    Heya. first of all: nice tut! ;D

    I need a flexible kind of warp.
    A warp with vars in it like this:
    warp 0x7005 0x7006 0x7007 0x0 0x0
    Is it possible? because this gives me errors :/

    is there a way to use vars in warps?
    Thanks in Advance
     

    TheDon

    Shedinja Enthusiast
    42
    Posts
    16
    Years
    • Seen Sep 25, 2018
    Is there a command that I can use in XSE or wherever to erase a certain script from an offset, then replace it with the new one that at the time, I just made? I tried the #remove before and after the #dynamic at the beginning of the script, but it didn't work.

    Still looking for help with this. Thanks in advance.
     

    .Seth

    .explorer.
    1,644
    Posts
    15
    Years
  • I'm not saying anyone's breaking rules here, but there is a script help thread, you know.

    I've never really taken the time to comment on this tutorial (or did I? I dunno. :P), so I think I will.

    Overall, it's just a big translation of thethethethe's PokeScript tutorial, so really, it's not completely yours, but you gave credit, so I've no problem with that.

    All in all, there are a few errors here and there, but it's very useful, and even I, the author of a different XSE tutorial, find myself looking at this.
     
    Back
    Top