Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Reload this Page [Tutorial] XSE Scripting Tutorial

Notices
For all updates, view the main page.

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.



Closed Thread
 
Thread Tools
  #226    
Old October 5th, 2008 (07:37 PM).
Darthatron's Avatar
Darthatron Darthatron is offline
巨大なトロール。
Silver Tier
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Posts: 1,152
Quote originally posted by Daniel A.:
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.
__________________
あなた は しきしゃ です
わたし は ばか です
  #227    
Old October 6th, 2008 (08:30 AM).
torferno lvl-X's Avatar
torferno lvl-X torferno lvl-X is offline
learning asm
 
Join Date: Sep 2008
Gender:
Nature: Relaxed
Posts: 152
Nice tut i'll use it to help me
__________________
The best hacks ever:
Spoiler:




I'm a spriter for



Insert new pokemon WITHOUT removing old ones up to 25!
Tom's PokePet

Charizard the level 36 Charizard!

For All GBC hackers!
  #228    
Old October 8th, 2008 (04:30 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
Crystal Tier
 
Join Date: Jun 2006
Posts: 1,314
Quote originally posted by Tamerhaidar:
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.
__________________
  #229    
Old October 8th, 2008 (11:52 AM).
nick11202 nick11202 is offline
 
Join Date: Jul 2007
Gender:
Nature: Adamant
Posts: 17
once again hackmew makes another great thing
  #230    
Old October 12th, 2008 (11:49 AM).
hot_kage's Avatar
hot_kage hot_kage is offline
I am like a rose cute and calm
 
Join Date: Oct 2008
Location: Long Beach , California
Age: 22
Gender:
Nature: Naughty
Posts: 35
Quote originally posted by nick11202:
once again hackmew makes another great thing
i know XSE to me is much better than pokescript
  #231    
Old October 13th, 2008 (05:47 PM).
Lady Berlitz's Avatar
Lady Berlitz Lady Berlitz is offline
Cinnamon ♪
 
Join Date: May 2007
Location: An igloo in Canada
Nature: Adamant
Posts: 1,774
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.
__________________
_█████████_
_█▄█████▄█_
_█▼▼▼▼▼▼▼█_
██_______██
_█▲▲▲▲▲▲▲█_
_█████████_
_██_____██_
  #232    
Old October 13th, 2008 (05:55 PM).
Darthatron's Avatar
Darthatron Darthatron is offline
巨大なトロール。
Silver Tier
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Posts: 1,152
Quote originally posted by Infernal Contraption:
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.
__________________
あなた は しきしゃ です
わたし は ばか です
  #233    
Old October 13th, 2008 (06:08 PM).
Lady Berlitz's Avatar
Lady Berlitz Lady Berlitz is offline
Cinnamon ♪
 
Join Date: May 2007
Location: An igloo in Canada
Nature: Adamant
Posts: 1,774
Thanks. Strangely, I figured that out before you even answered...

Also, have any commands, such as the "START" icon or smileys, been discovered yet?
__________________
_█████████_
_█▄█████▄█_
_█▼▼▼▼▼▼▼█_
██_______██
_█▲▲▲▲▲▲▲█_
_█████████_
_██_____██_
  #234    
Old October 13th, 2008 (06:43 PM).
Darthatron's Avatar
Darthatron Darthatron is offline
巨大なトロール。
Silver Tier
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Posts: 1,152
Quote originally posted by Infernal Contraption:
Thanks. Strangely, I figured that out before you even answered...

Also, have any commands, such as the "START" icon or smileys, been discovered yet?
Yes, check out this thread. It's really helpful.

http://www.pokecommunity.com/showthread.php?t=143521
__________________
あなた は しきしゃ です
わたし は ばか です
  #235    
Old October 14th, 2008 (12:51 PM).
Lady Berlitz's Avatar
Lady Berlitz Lady Berlitz is offline
Cinnamon ♪
 
Join Date: May 2007
Location: An igloo in Canada
Nature: Adamant
Posts: 1,774
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:
Quote:
B1="
B2=["]
But I don't really understand it.
__________________
_█████████_
_█▄█████▄█_
_█▼▼▼▼▼▼▼█_
██_______██
_█▲▲▲▲▲▲▲█_
_█████████_
_██_____██_
  #236    
Old October 18th, 2008 (12:18 PM).
ANARCHit3cht's Avatar
ANARCHit3cht ANARCHit3cht is offline
Call me Archie!
 
Join Date: Sep 2008
Posts: 2,108
I can not compile my script. It says the that word 'lock' is unknown.
__________________
click it?
  #237    
Old October 19th, 2008 (03:58 PM).
Ryousha's Avatar
Ryousha Ryousha is offline
Waiting for PokeSpe HG/SS
 
Join Date: Jun 2007
Location: Somewhere
Age: 19
Nature: Naive
Posts: 955
Send a message via Windows Live Messenger to Ryousha
Hey Darthatron. What's the codes for the pointy arrows?

to show where they go?
  #238    
Old October 20th, 2008 (02:23 AM). Edited October 20th, 2008 by HackMew.
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
Crystal Tier
 
Join Date: Jun 2006
Posts: 1,314
Quote originally posted by Infernal Contraption:
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"

Quote originally posted by Ryousha:
Hey Darthatron. What's the codes for the pointy arrows?

to show where they go?
I think you're talking about [U], [D], [L] and [R], aren't you?

Edit: That "u" should be "U" instead. The forum recognized it as the underline tag.
__________________
  #239    
Old October 21st, 2008 (11:57 PM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL 0m3GA ARS3NAL is offline
Im comin' home...
Silver Tier
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Posts: 1,816
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...
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #240    
Old October 22nd, 2008 (12:50 PM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
Crystal Tier
 
Join Date: Jun 2006
Posts: 1,314
Quote originally posted by 0m3GA AR$3NAL:
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.
__________________
  #241    
Old October 22nd, 2008 (06:49 PM).
cyberblade cyberblade is offline
 
Join Date: Oct 2008
Gender:
Posts: 9
I did exactly what the tutoriaal said for a basic talking script and when i talk to the guy it makes VBA turn to a red screen heres the script

Code:
#Dynamic 0x34EB8C

#ORG @Main
Lock
FacePlayer
Message @Speak
BoxSet 0x6
Release
End

#ORG @Speak
= Lets GO! /nHaha your slow.
Any help would be very much appreciated.
  #242    
Old October 22nd, 2008 (07:05 PM).
Darthatron's Avatar
Darthatron Darthatron is offline
巨大なトロール。
Silver Tier
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Posts: 1,152
Quote originally posted by cyberblade:
I did exactly what the tutoriaal said for a basic talking script and when i talk to the guy it makes VBA turn to a red screen heres the script

Code:
#Dynamic 0x34EB8C

#ORG @Main
Lock
FacePlayer
Message @Speak
BoxSet 0x6
Release
End

#ORG @Speak
= Lets GO! /nHaha your slow.
Any help would be very much appreciated.
It would seem your ROM is corrupt. Try putting the script into a new offset, and if it still happens, then you'll need to start again (unless you have back ups).
__________________
あなた は しきしゃ です
わたし は ばか です
  #243    
Old October 23rd, 2008 (12:26 AM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL 0m3GA ARS3NAL is offline
Im comin' home...
Silver Tier
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Posts: 1,816
Quote originally posted by HackMew:
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.
Oh... thanks Hackmew for the information... I dont know why I never though of that... heh, and I am glad to hear that the guide is going well! I cant wait to read it!
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #244    
Old October 23rd, 2008 (12:35 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is offline
Team Rocket Grunt would like to battle!
ModeratorCS
 
Join Date: Nov 2007
Location: Leicester, UK
Posts: 3,714
Quote originally posted by cyberblade:
I did exactly what the tutoriaal said for a basic talking script and when i talk to the guy it makes VBA turn to a red screen heres the script

Code:
#Dynamic 0x34EB8C

#ORG @Main
Lock
FacePlayer
Message @Speak
BoxSet 0x6
Release
End

#ORG @Speak
= Lets GO! /nHaha your slow.
Any help would be very much appreciated.
Wouldn't this work:

Spoiler:

#dynamic 0x34EB8C

#org @start
lock
faceplayer
message @speak
boxset 0x6
release
end

#org @speak
= Lets GO![B]\p[\b]Hahaha!\nYou're slow!

Just copy and paste that and try it out!
Edits in bold (not the decapitalization). Also, no need to do:
BoxSet 0x6
Just do:
boxset 0x6
Or even go Dec:
boxset 6

And the such - basically, no need for caps unless it's LASTRESULT and a couple of other comnands.

Hope I helped.

Also, thanks Dartharon! Your (and I'm speaking quite late, now, but) tutorial was the first one clear enough for me to understand the compilation system on XSE and also how a message box works. Now I rely on my notepad infront of me! Thanks! (But, I have to admit, it's kinda short...)
__________________

"Develop amnesia conveniently and forget everything you've heard!"
spheal clicker | rom hacking | pokémon gaia
staff antagonists collab 2015
  #245    
Old October 23rd, 2008 (02:04 AM).
cyberblade cyberblade is offline
 
Join Date: Oct 2008
Gender:
Posts: 9
Zaangoose Now it doesn't talk when i used your corrected script. Frustrating...
  #246    
Old October 23rd, 2008 (02:13 AM).
エロカメ エロカメ is offline
 
Join Date: Oct 2008
Gender:
Posts: 38
Try this:
Spoiler:
#dynamic 0x34EB8C

#org @main
lock
faceplayer
message @speak
callstd 0x6
release
end

#org @speak
= Lets GO!/nHaha your slow.


or

Spoiler:
#dynamic 0x34EB8C

#org @main
message @speak
callstd 0x2
release
end

#org @speak
= Lets GO!/nHaha your slow.
  #247    
Old October 23rd, 2008 (05:19 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
Crystal Tier
 
Join Date: Jun 2006
Posts: 1,314
Quote originally posted by cyberblade:
I did exactly what the tutoriaal said for a basic talking script and when i talk to the guy it makes VBA turn to a red screen heres the script

Code:
#Dynamic 0x34EB8C

#ORG @Main
Lock
FacePlayer
Message @Speak
BoxSet 0x6
Release
End

#ORG @Speak
= Lets GO! /nHaha your slow.
It's not "/n" but "\n".
Before trying anything else, try compiling this to a clean ROM:

Spoiler:

#dynamic 0x700000

#org @main
message @speak
boxset 0x2
release
End

#org @speak
= Lets GO!\nHaha your slow.


If everything's working fine, try doing the same on your ROM.
If it worked on the clean ROM, it has to work on your ROM as well.
If it didn't, then it's mostly likely your ROM got corrupted or something.
__________________
  #248    
Old October 24th, 2008 (01:15 PM).
cyberblade cyberblade is offline
 
Join Date: Oct 2008
Gender:
Posts: 9
I still dont see the text when i talk to the person.
  #249    
Old October 31st, 2008 (08:48 PM).
Elitomknee's Avatar
Elitomknee Elitomknee is offline
Pokemon Qwertyuiop Creator
 
Join Date: Oct 2008
Location: Lavender Town
Gender:
Posts: 13
I don't get the adding to ROM part...
__________________

Hacks I Support:







Other:

^Link^
  #250    
Old October 31st, 2008 (09:36 PM).
Darthatron's Avatar
Darthatron Darthatron is offline
巨大なトロール。
Silver Tier
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Posts: 1,152
Quote originally posted by Elitomknee:
I don't get the adding to ROM part...
Try a different guide then, because I can't explain it any better than this. Sorry.
__________________
あなた は しきしゃ です
わたし は ばか です
Closed Thread
Quick Reply

Sponsored Links

You may also like.. (Beta)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 09:43 PM.