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

XSE Scripting Tutorial

Status
Not open for further replies.

0m3GA ARS3NAL

Im comin' home...
1,816
Posts
16
Years
  • Fair enough. I agree with you on that last bit (I already said that I do) but you still haven't explained how you can compile a script to the WRAM (or anything other than the ROM, for that matter). Please, enlighten me.

    Well it isn't technically RAM... XD
    It's stuff the RAM reads from.
    I admit I made a little mistake there, lol.
    In any case, you really should just start at 0x800000 and work down... THat is the point I have been trying to get across.
     

    BlazingCobaltX

    big mood. bye
    1,260
    Posts
    14
    Years
    • Age 26
    • Seen Jun 19, 2019
    When I write my script, it gives me an error: Unknown keyword: lock on line 4. Why?
     

    G Deoxys

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

    #Dynamic 0x800000

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

    --------------------------------
    can somebody tell me how i actually make this work?
     
    Last edited:

    0m3GA ARS3NAL

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

    #Dynamic 0x800000

    #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
    release
    end

    #org @yay
    = You got Bulbasaur!

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

    --------------------------------
    can somebody tell me how i actually make this work?

    Added a release in the script, it should work fine.
    There are no problems with it, if you have not figured out how to insert it properly, please read the guide that comes with XSE. (Open XSE and press F2)
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • i read most of it and it didn't tell me...

    The guide is not going to baby you into doing it, it gives you MORE than enough information needed to learn to do it yourself.)
    There are plenty of tutorials here on PC, if you don't have the initiative to at least look around for a bit, then you are not ready to ROM hack.

    But since you are probably going to complain that you cant find it, I'll tell you how to do it.

    There are 2 ways you can do this.
    I will tell you the way I do it.


    First of all, make sure this script is saved as an RBC file. (Do so by putting it into XSE and saving it...)
    Now, click;
    Tools
    then click Batch Compiler.

    Now, first, find the ROM you want to insert the script into.
    Next, navigate to the folder where you saved the script.

    Finally, select your script, and hit compile.

    Now look for @start in the window that appeared, it should be easy to find.
    Next to it should be an offset, copy that into the "Script Offset" place in A-Map.

    Now simply make sure the person is configured to actually RUN the script...
    (The first "Unknown" setting when you have a person highlighted in A-Map, should be set to 03)

    And there you go.
     

    rokrdude

    POKEMON : SINNOH QUEST CREATOR
    135
    Posts
    14
    Years
    • Seen Oct 2, 2016
    I want to make national dex (instead of normal region pokedex) available at the start of ruby game

    What changes should i do in the script?


    Originally Posted by Forgotten Memory


    PokéScript
    #raw 0x11 0x02 0x00 0x6B 0x02 0x02 0x11 0x03 0x01 0x6B 0x02 0x02
    #raw 0x11 0xDA 0xBE 0x4E 0x02 0x02 0x11 0x67 0x5A 0x6A 0x02 0x02

    XSE
    writebytetooffset 0x2 0x2026B00
    writebytetooffset 0x3 0x2026B01
    writebytetooffset 0xDA 0x2024EBE
    writebytetooffset 0x67 0x2026A5A


    Not 100% sure but i think the xse commands are not valid for new version

    Also i am using advance map and xse and Script editor but i am not able to find the script where pokedex menu is activated.

    Pls some can tell me the correct commands and where to place it to activate national dex in Ruby at the start!!!!
     
    Last edited:

    ArcticLucario

    Pokecenter mod team spritist
    24
    Posts
    14
    Years
  • um, how do I start up the program, I can't find the opener tool for this, just alot of files
    please help, I clicked on xse but it wont work, please help
     

    altariaking

    Needs NO VMs...
    1,087
    Posts
    14
    Years
  • how would I make a script where at the beggining of the gamr you are watching a battle and then when it ends you are back in your room watching tv, and then it says "...and we have a new pokemon league champion! thanks for watching!"
     
    21
    Posts
    14
    Years
    • Seen Apr 5, 2010
    hey, i may have missed it on some other pages. but is there an applymovement script. i cant remember how to do it.
    and how do you change the direction??
    oh and Artic Lucario you may have to get a new version
     
    Last edited:

    Ps:hi

    mr.MEGA HACK
    9
    Posts
    14
    Years
  • I am having trouble with script as well. here is mine:

    #dynamic 0x800000
    #org @begin
    lock
    faceplayer
    message @llama
    boxset 6
    message @ok
    boxset 6
    message @next
    boxset 6
    release
    end
    #org @llama
    = Man:did you ever wonder how cool the\nsea is?
    #org @ok
    = Man:I mean, just look at it.\nfilled with so many different\lpokemon.\lThanks for listenning to me. have\lthis.
    #org @next
    = You Receaved a \lmysterious...\lpokemon?
    fanfare 0x13E
    givepokemon 0x1 0x9 0x0 0x0 0x0 0x0
    setflag 0x828


    HELP PLEASE!!!
     

    Omega Zero

    Is back...
    444
    Posts
    14
    Years
  • I am having trouble with script as well. here is mine:

    #dynamic 0x800000
    #org @begin
    lock
    faceplayer
    message @llama
    boxset 6
    message @ok
    boxset 6
    message @next
    boxset 6
    release
    end
    #org @llama
    = Man:did you ever wonder how cool the\nsea is?
    #org @ok
    = Man:I mean, just look at it.\nfilled with so many different\lpokemon.\lThanks for listenning to me. have\lthis.
    #org @next
    = You Receaved a \lmysterious...\lpokemon?
    fanfare 0x13E
    givepokemon 0x1 0x9 0x0 0x0 0x0 0x0
    setflag 0x828


    HELP PLEASE!!!
    There are no such thing as boxsets anymore.. and besides everything is nearly in the wrong place lemme fix it up :)

    #dynamic 0x800000
    #org @begin
    lock
    faceplayer
    message @llama 0x6
    message @ok 0x6
    message @next 0x6
    fanfare 0x13E
    givepokemon 0x1 0x9 0x0 0x0 0x0 0x0
    setflag 0x828
    release
    end
    #org @llama
    = Man:did you ever wonder how cool the\nsea is?
    #org @ok
    = Man:I mean, just look at it.\nfilled with so many different\lpokemon.\lThanks for listenning to me. have\lthis.
    #org @next
    = You Receaved a \lmysterious...\lpokemon?

    There try that..
     

    Ps:hi

    mr.MEGA HACK
    9
    Posts
    14
    Years
  • There are no such thing as boxsets anymore.. and besides everything is nearly in the wrong place lemme fix it up :)

    #dynamic 0x800000
    #org @begin
    lock
    faceplayer
    message @llama 0x6
    message @ok 0x6
    message @next 0x6
    fanfare 0x13E
    givepokemon 0x1 0x9 0x0 0x0 0x0 0x0
    setflag 0x828
    release
    end

    #org @llama
    = Man:did you ever wonder how cool the\nsea is?
    #org @ok
    = Man:I mean, just look at it.\nfilled with so many different\lpokemon.\lThanks for listenning to me. have\lthis.
    #org @next
    = You Receaved a \lmysterious...\lpokemon?

    There try that..[/QUOTE]
    so far it didn't work. The person doesn't talk. I'll try a non-hacked with rom and see if that works.

    EDIT:
    I just needed to upgrade XSE thanks!
     
    Last edited:

    Dude_flibble_07

    Whaddya mean your not me dad?
    4
    Posts
    16
    Years
    • Seen Jan 9, 2010
    hey, need a bit of help. when I click compile, it comes up with a log and when I test things out, nothing has changed unless I ovewrite another script. can anyone help?
     

    Ps:hi

    mr.MEGA HACK
    9
    Posts
    14
    Years
  • hey, need a bit of help. when I click compile, it comes up with a log and when I test things out, nothing has changed unless I ovewrite another script. can anyone help?
    Could you please post a screen shot? I might be able to help you.
     
    Last edited:
    1
    Posts
    14
    Years
    • Seen Jun 6, 2010
    hello im new here i wanted to make my own hack i have a problem with this scritp
    #dynamic 0x800000


    #org @1
    checkflag 0x828
    if 0x1 goto @done
    msgbox @want 0x5 '"So, you chose Exeggcute?"
    compare LASTRESULT 0x1
    if 0x1 goto @yes
    end

    #org @want
    = So, you chose Exeggcute?

    #org @yes
    givepokemon 0x66 0x5 0x0 0x0 0x0 0x0
    msgbox @take 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @name
    setflag 0x828
    Special 0x16F

    #org @name
    Special 0x166

    #org @done
    msgbox @have 0x2

    #org @have
    = You've already taken a Pokemon!

    #org @take
    = Do you want to give your\nPokemon a name?
    im using xse and it gives me error 13
     

    gallade234

    spriter, legendarypokemontamer
    19
    Posts
    14
    Years
  • i need help

    i have a problem when trying to compile my script to my rom a message appeareds saying "too less parameters on line 4 the correct number is 2" can any one tell me how to fix this here's the script
    #Dynamic 0x800000

    #ORG @Main
    Lock
    Faceplayer
    Checkflag 0x828
    if 0x1 goto @done
    Msgbox @Give 0x6
    Givepokemon 0x19 0x20 0xCA 0x0 0x0 0x0
    Release
    end

    #ORG @Give
    = Hi i rescued this\p pokemon from team\p rocket do you want it?!

    #ORG @done
    Msgbox @alreadygot 0x6
    Release
    end
     
    Status
    Not open for further replies.
    Back
    Top