• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.
You're missing the Message Type param. So, just change that line to either...
Code:
 giveitem 0x44 0x1 0x0
for the message "Player obtained Rare Candy."
Or change it to...
Code:
 giveitem 0x44 0x1 0x1
for the message "Player found Rare Candy."

K ty, The compile was successful though in game the message box doesn't come and the player freezes

EDIT:We have to put the XXXXXX in #Dynamic 0xXXXXXX as the offset in Advance Map, right?
 
K ty, The compile was successful though in game the message box doesn't come and the player freezes

EDIT:We have to put the XXXXXX in #Dynamic 0xXXXXXX as the offset in Advance Map, right?

No, when you compile a script, you should get a popup that has all the Dynamic values. You need to select the main one, copy it. That's the value you need to put in AMap.

[PokeCommunity.com] XSE Scripting Tutorial
 
And change the #dynamic 0x71B15C to another.
Like #dynamic 0x800000
Find another offset that holds more bytes(free space)

Wrong. There's no real need to change the #dynamic offset since XSE would scan the whole ROM, starting from its value.
Finding free space is XSE's job, not yours.
The only reason to change the #dynamic offset would be to speed up the free space research.
But speed gains aren't going to be dramatic anyway (especially with the coming updated version).
 
Wrong. There's no real need to change the #dynamic offset since XSE would scan the whole ROM, starting from its value.
Finding free space is XSE's job, not yours.
The only reason to change the #dynamic offset would be to speed up the free space research.
But speed gains aren't going to be dramatic anyway (especially with the coming updated version).

Thanks for clearing that.
I have a question, in XSE and I think PKSV, I saw a command called loadbytefrompointer, and writebytetooffset.
What are the job of these two?
Does it have to do with the RAM thing of the rom?
 
I have a question, How do I assign a person to say the text? like once we compile it, where is the script offset so we can add it advance map?

EDIT:

YES YES YES YES!!
SCRIPTING FINALLY WORKSS!!!

I'm GONNA FALL IN LOVE!
JEEZ, THANKS!!! SO MUCH!!
 
Last edited:
I have a question, How do I assign a person to say the text? like once we compile it, where is the script offset so we can add it advance map?

EDIT:

YES YES YES YES!!
SCRIPTING FINALLY WORKSS!!!

I'm GONNA FALL IN LOVE!
JEEZ, THANKS!!! SO MUCH!!

Does that mean I don't need to answer your question...? D: Because I posted the answer like 3 posts up. >_>
 
Thanks for clearing that.
I have a question, in XSE and I think PKSV, I saw a command called loadbytefrompointer, and writebytetooffset.
What are the job of these two?
Does it have to do with the RAM thing of the rom?

Yes, they do have to do with the "RAM thing" of the ROM.
In particular, writebytetooffset will write a byte to a specific offset into RAM memory.
loadbytefrompointer will get a byte from a pointer and load it in the specified memory bank instead.
Needless to say you're not really going to use them under normal circumstances.
 
This is a quite useful tutorial. It doesn't give much away, but basics can be very useful.

I'm just curious, but what boxset is a signpost message?
That's a pretty basic question. I've never scripted much in the past.
 
This is a quite useful tutorial. It doesn't give much away, but basics can be very useful.

I'm just curious, but what boxset is a signpost message?
That's a pretty basic question. I've never scripted much in the past.
Code:
BoxSet 0x3

That is the signpost boxset. ^^
 
Thanks. Strangely, I figured that out before you even answered...

Also, have any commands, such as the "START" icon or smileys, been discovered yet?
 
Hello there, I have another question. Sorry for the bother.

I wrote a tiny script, and I put this: "text".
The problem is, the first " is the sprites used for the ending ", if you know what I mean.

I found this:
B1="
B2=["]
But I don't really understand it.
 
Hello there, I have another question. Sorry for the bother.

I wrote a tiny script, and I put this: "text".
The problem is, the first " is the sprites used for the ending ", if you know what I mean.

I found this:
But I don't really understand it.

Here's an example directly taken from the original games:

Code:
#org 0x18DC47
= ["]The lovely and sweet\nCLEFAIRY"


Hey Darthatron. What's the codes for the pointy arrows?

to show where they go?

I think you're talking about , [D], [L] and [R], aren't you?

Edit: That "u" should be "U" instead. The forum recognized it as the underline tag.
 
Last edited:
Does anybody have any information on the release of the XSE total guide? (The one that is currently released with XSE is quite small... I desire a more... informative updated version.)
I only want to know a release date, so I can mark my calendar! ^_^ Or even a preview version. (Cant blame a guy for asking right?)

Also, does anyone know the numbers for the XSE command in emerald,
registernav. I would like to know what the different trainer numbers would be...
 
Does anybody have any information on the release of the XSE total guide? (The one that is currently released with XSE is quite small... I desire a more... informative updated version.)
I only want to know a release date, so I can mark my calendar! ^_^ Or even a preview version. (Cant blame a guy for asking right?)

Also, does anyone know the numbers for the XSE command in emerald,
registernav. I would like to know what the different trainer numbers would be...

Yes, I do. The guide is going on pretty good.
Since the guide is strictly connected to XSE, I'm not able to give you any possible release date so far.

Talking about registernav, there's no reason why the different trainer numbers should be different from the ones used by trainerbattle, for example.
 
Status
Not open for further replies.
Back
Top