• 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

4
Posts
9
Years
    • Seen Oct 24, 2014
    #org 0x8007A6
    playsong 0x11A 0x0
    applymovement 0x3 0x8800769
    applymovement MOVE_PLAYER 0x8800775
    waitmovement 0xFF
    waitmovement 0x3
    msgbox 0x88006CF MSG_NORMAL '"Hi im professor ***** but i'm not\..."
    applymovement 0x3 0x880078E
    waitmovement 0x3
    hidesprite 0x3
    setvar 0x2000 0x1
    setflag 0x1206
    fadesong 0x12C
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x8006CF
    = Hi im professor ***** but i'm not\none lol. Welcome to my\lvillage this is where i study...\lAnyway i'm meant to give you your\lfirst pokemon so follow me!


    '-----------
    ' Movements
    '-----------
    #org 0x800769
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x4A 'Jump in Place (Facing Down/Up)

    #org 0x800775
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0xFE 'End of Movements

    #org 0x80078E
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0xFE 'End of Movements

    Hey guys this is an event i have created i have a problem with it though... When i step on the script tile the event does not activate at all the game just continues can someone please tell me how to fix, thanks... oh btw it's for pokemon RUBY
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    Code:
    #org 0x8007A6
    playsong 0x11A 0x0
    applymovement 0x3 0x8800769
    applymovement MOVE_PLAYER 0x8800775
    waitmovement 0xFF
    waitmovement 0x3
    msgbox 0x88006CF MSG_NORMAL '"Hi im professor ***** but i'm not\..."
    applymovement 0x3 0x880078E
    waitmovement 0x3
    hidesprite 0x3
    setvar 0x2000 0x1
    setflag 0x1206
    fadesong 0x12C
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x8006CF
    = Hi im professor ***** but i'm not\none lol. Welcome to my\lvillage this is where i study...\lAnyway i'm meant to give you your\lfirst pokemon so follow me!
    
    
    '-----------
    ' Movements
    '-----------
    #org 0x800769
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x4A 'Jump in Place (Facing Down/Up)
    
    #org 0x800775
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0xFE 'End of Movements
    
    #org 0x80078E
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x08 'Step Down (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x0B 'Step Right (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0xFE 'End of Movements

    Hey guys this is an event i have created i have a problem with it though... When i step on the script tile the event does not activate at all the game just continues can someone please tell me how to fix, thanks... oh btw it's for pokemon RUBY

    First, I suggest you wrap your code inside a
    Code:
     tag, like this...[/FONT][/COLOR][/B]
    [HTML][CODE]-insert code here-
    [/HTML]

    Anyway, try and putting these values on your script tile.
    Spoiler:
     
    4
    Posts
    9
    Years
    • Seen Oct 24, 2014
    Sorry where do i put the code command im really new to this. this is my first movement script as well so i don't really know what to do i put the script on both the actual script
    event and the player as well on advance map is that what im meant to do... il take a screenshot if you want, thanks
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    Sorry where do i put the code command im really new to this. this is my first movement script as well so i don't really know what to do i put the script on both the actual script
    event and the player as well on advance map is that what im meant to do... il take a screenshot if you want, thanks

    I wasn't clear on my post. Sorry about that.

    Anyway, your script is the green script tile on Advance Map, right?
    If so, then click on that tile and put the values I showed on the screenshot that I posted on my previous post. ;)
     
    4
    Posts
    9
    Years
    • Seen Oct 24, 2014
    Yep, do i do that for both the person script and the actual script tile and yes it is the green script tile il take a screenshot of advance map if you want... Oh and sorry if im wasting your time im just really desperate i've been trying to hard to get this to work
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    Yep, do i do that for both the person script and the actual script tile and yes it is the green script tile il take a screenshot of advance map if you want... Oh and sorry if im wasting your time im just really desperate i've been trying to hard to get this to work

    well, i think i found the problem after scanning your script (not skimming this time).
    Code:
    ...
    #org 0x800769
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x09 'Step Up (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x0A 'Step Left (Normal)
    #raw 0x4A 'Jump in Place (Facing Down/Up)

    You forgot this line...
    Code:
    ...
    #raw 0xFE 'End of Movements

    Also...

    Code:
    ...
    waitmovement 0xFF
    waitmovement 0x3
    ...

    You'll only need one waitmovement code after applymovements, so you can get rid of [waitmovement 0x3].
     
    4
    Posts
    9
    Years
    • Seen Oct 24, 2014
    Ohh thanks for the values it actually set off my event which im extremely happy about :) before i just walked over the tile and nothign happened at all no game freeze at all much appreciated! :D. Anyway, my script is totally wrong in so many ways basically what im trying to do is when i hop out of the truck like the original event on pokemon ruby when your mum says stuff, but instead professor birch greets me and takes me to his lab where i get to choose my first pokemon. Sorry for my bad grammar btw. :P

    Pretty much like the Professor oak thing when you leave the town if you know what i mean on Fire Red
     
    Last edited by a moderator:
    5
    Posts
    11
    Years
    • Seen Jul 21, 2016
    Hello the message box don't pop up...
    This is my script:
    #dynamic 0x800000

    #org @start
    lock
    faceplayer
    msgbox @talk1 0x6
    release
    end

    #org @talk1
    = Heey Tom!\nHet is gelukt\pHier vind je alle andere starters!
     
    5
    Posts
    11
    Years
    • Seen Jul 21, 2016
    Can some one help me?
    My script don't work. i have no idee what is wrong:
    #dynamic 0x800000

    #org @start
    lock
    faceplayer
    msgbox @talk1 0x6
    release
    end

    #org @talk1
    = Heey Tom!\nHet is gelukt\pHier vind je alle andere starters!
     

    Blah

    Free supporter
    1,924
    Posts
    11
    Years
  • Can some one help me?
    My script don't work. i have no idee what is wrong:
    #dynamic 0x800000

    #org @start
    lock
    faceplayer
    msgbox @talk1 0x6
    release
    end

    #org @talk1
    = Heey Tom!\nHet is gelukt\pHier vind je alle andere starters!

    Weird it compiles for me in XSE version 1.0.0
    I think in the newer versions it'd be:

    msgbox @talk
    callstd 0x6

    I'm not sure, maybe they're both fine :o
     
    5
    Posts
    11
    Years
    • Seen Jul 21, 2016
    i have a other one...

    have a pokeball but get a hypno lvl 37 i want a Poliwhirl lvl 25 and i want a waterstone get a wepear berry...
    this is my script:
    #dynamic 0x800015

    #org @start
    hidesprite 6
    msgbox @talk1
    boxset 6
    fanfare 0x13e
    givepokemon 0x61 0x25 0x97 0x0 0x0 0x0
    waitfanfare
    setflag 0x1251
    release
    end

    #org @talk1
    = \v\h01 krijgt een Poliwhirl

    nevermind
     
    Last edited:

    MindMementoX

    Rival
    6
    Posts
    10
    Years
    • Seen Jan 15, 2020
    --SOLVED!--

    Hello :D I'd just like to ask something reaaaally quick since I'm tired and I'm about to go to sleep.

    So I was waddling in the internet when I got the bright idea of making my pokemon game (which I tried 100 times before but they all ended up in failures...), so I started scripting with XSE thinking it was super easy, and.... nothing worked.

    It's pretty much like this: I follow all of the instructions in this tutorial, and I even sometimes copy and paste some scripts to test my problem, but naww, once I save and go test the game out, all of the person events simply just "beep" and do absolutely nothing :)

    This is a great tutorial but my IQ must be way too low to understand how my GODDA-- my treacherous Advance Map and XSE fail to... well, script...?

    I use the latest Advance map (duh), Pokemon Emerald, and... what more? Well I just copy pasted the basic message box script from this tutorial to the game and it still just bleeps. Yes, I compiled and everything blah bluh bleh, But something isn't working.

    If anyone can help, I appreciate you for your assistance even if it might not solve the problem. Thank you!

    PS: Memento, failing in everything since 199... wait what?

    *EDIT after almsot closing the web page and going to sleep* And yes, I do know I should've gone to the other pages and F3 for people that have the same problems and not make more trouble posts that have been answered, but c'mon, I'm lazy AND sleepy. There's no worse combination. I did google but since ROM hacking isn't mainstream, google flipped me away and now I'm here. Thank you. Now, if I could get some sleep I'd be really happy... ...

    SECOND EDIT: I found the problem. Somehow my XSE was ****ing it up so I changed into the version... 1.11 I believe? I had 1.0.0 so if it's not working for someone and you're using Advance Map 1.92, try this. Heads up for Flareon destiny gold or whatever his name was for the help :D This message can be deleted, I'm just leaving it here so if someone comes on and reads this, it might help them.
     
    Last edited:
    5
    Posts
    11
    Years
    • Seen Jul 21, 2016
    Hello :D I'd just like to ask something reaaaally quick since I'm tired and I'm about to go to sleep.

    So I was waddling in the internet when I got the bright idea of making my pokemon game (which I tried 100 times before but they all ended up in failures...), so I started scripting with XSE thinking it was super easy, and.... nothing worked.

    It's pretty much like this: I follow all of the instructions in this tutorial, and I even sometimes copy and paste some scripts to test my problem, but naww, once I save and go test the game out, all of the person events simply just "beep" and do absolutely nothing :)

    This is a great tutorial but my IQ must be way too low to understand how my GODDA-- my treacherous Advance Map and XSE fail to... well, script...?

    I use the latest Advance map (duh), Pokemon Emerald, and... what more? Well I just copy pasted the basic message box script from this tutorial to the game and it still just bleeps. Yes, I compiled and everything blah bluh bleh, But something isn't working.

    If anyone can help, I appreciate you for your assistance even if it might not solve the problem. Thank you!

    PS: Memento, failing in everything since 199... wait what?

    *EDIT after almsot closing the web page and going to sleep* And yes, I do know I should've gone to the other pages and F3 for people that have the same problems and not make more trouble posts that have been answered, but c'mon, I'm lazy AND sleepy. There's no worse combination. I did google but since ROM hacking isn't mainstream, google flipped me away and now I'm here. Thank you. Now, if I could get some sleep I'd be really happy... ...
    Try a script like this one:

    #dynamic 0x800000

    #org @script
    lock
    faceplayer
    msgbox @tekst
    boxset 6
    release
    end

    #org @tekst
    = Tekst
     
    3
    Posts
    9
    Years
  • Step 14:
    There should be a minimum of three parts to the script: two things with pointers and your script that you made. In the second part, there should be a pointer to your script. Under it, there should be a #raw word 0x(random number). Replace the random number with 0. Compile it and test it out in the game.

    Please add to that step that you have to compile everything even if everything looks alright in the decompiled offset.
    Because every damn tutorial forgot to mention that and I wasted my time for days -.-"
     
    Back
    Top