Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Reload this Page [Tutorial] diegoisawesome's MEGA-HUGE 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.



Reply
 
Thread Tools
  #276    
Old September 9th, 2009 (05:26 PM).
Sunnysunsunny's Avatar
Sunnysunsunny Sunnysunsunny is offline
Sun shall be beastly...
 
Join Date: Aug 2009
Location: Somewhere ON the Rainbow
Gender: Male
Nature: Relaxed
Posts: 1
Map connecters are the first I chose to learn XD
__________________
Bored with the old stuff. Need new graphics... Still, I am going to work on my Pokemon Deep Sea.

Reply With Quote
  #277    
Old September 11th, 2009 (07:47 AM).
Haku.'s Avatar
Haku. Haku. is offline
(FLAME)...H....A...K..U
 
Join Date: Jan 2008
Location: Singapore :D
Gender: Male
Nature: Quiet
Posts: 386
Send a message via Windows Live Messenger to Haku.
Hmm A Request From me.Is There Anyway to make a make an earthquake,make it's flag to setflag 0x(blblabla) and after defeating the evil guys the map resets to normal?? like can i use

checkflag 0x...
if 0x1 goto @battle
release
end

#org @battle
pokemonbattle or whatsoever..
msgbox
fadescreen
clearflag
release
end

is that anyway i could make it happen?
Reply With Quote
  #278    
Old September 13th, 2009 (03:18 PM).
kesco1101 kesco1101 is offline
 
Join Date: Aug 2009
Posts: 3
Great tut. The only thing i really don't understand is the variable part
Reply With Quote
  #279    
Old September 14th, 2009 (02:16 PM).
Cello's Avatar
Cello Cello is offline
Tonight!
Crystal Tier
 
Join Date: Aug 2009
Location: get the mascot involved
Age: 24
Gender: Male
Nature: Jolly
Posts: 1,498
This is an amazing guide, it's helped me learn all of my XSE scripting so far. However I have one tiny tiny question;
When using the \c color command, how do you use that correctly?

Like, for example:
\c[orange_fr]You received a Pokémon!

Would that be correct?
__________________
Yeah Football Fan!
Reply With Quote
  #280    
Old September 14th, 2009 (03:19 PM).
ProjectGale's Avatar
ProjectGale ProjectGale is offline
 
Join Date: Sep 2009
Gender: Male
Nature: Brave
Posts: 5
Quote originally posted by Cello:
This is an amazing guide, it's helped me learn all of my XSE scripting so far. However I have one tiny tiny question;
When using the \c color command, how do you use that correctly?

Like, for example:
\c[orange_fr]You received a Pokémon!

Would that be correct?
You can either write it as [orange_fr]You received a Pokémon! or \c\h05You received a Pokémon!
Reply With Quote
  #281    
Old September 16th, 2009 (07:00 PM).
Bayonetta's Avatar
Bayonetta Bayonetta is offline
 
Join Date: Apr 2009
Posts: 34
Does anyone know what does "special 0x13D" do in fr?
Reply With Quote
  #282    
Old September 18th, 2009 (10:23 PM).
G Deoxys's Avatar
G Deoxys G Deoxys is offline
Beginner Rom Hacker
 
Join Date: Aug 2009
Location: Internet
Gender: Male
Nature: Timid
Posts: 21
hey how do i make this script work?

#Dynamic 0xoffset

#org @start
lock
faceplayer
checkflag 0x828
if 0x0 goto @give
if 0x1 goto @sry
release
end

#org @give
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
setflag 0x828
msgbox @yay
boxset 0x6
release
end

#org @sry
msgbox @sorry
boxset 0x6
end

#org @yay
= You got Bulbasaur!

#org @sorry
= I can't give you anymore.
Reply With Quote
  #283    
Old September 18th, 2009 (10:31 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
Quote originally posted by G Deoxys:
hey how do i make this script work?

#Dynamic 0xoffset

#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.
A few things, first off, I hope you know that "offset" is actually going to be a number, like 0x800000...

2nd;
checkflag 0x828
if 0x0 goto @give
if 0x1 goto @sry
is incorrect, you only need to define one of the 2, so I'll modify your script a little... Edits will be in the quote, in BOLD RED. (EXCEPT for things I remove, since I can't highlight stuff that isn't there.)

The only other thing wrong is the "boxset" command isn't used anymore, and is now a part of msgbox, so if you use boxset 0x6, now just add an 0x6 after the message's pointer...

Try the script out now...
(ALSO, if you don't know how to insert a script, read a tutorial, or Press F2 in XSE...)
__________________
>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...

>
Reply With Quote
  #284    
Old September 18th, 2009 (11:00 PM). Edited September 18th, 2009 by G Deoxys.
G Deoxys's Avatar
G Deoxys G Deoxys is offline
Beginner Rom Hacker
 
Join Date: Aug 2009
Location: Internet
Gender: Male
Nature: Timid
Posts: 21
ok, thanks for the help!!!!

Quote originally posted by 0m3GA ARS3NAL:
A few things, first off, I hope you know that "offset" is actually going to be a number, like 0x800000...

2nd;
checkflag 0x828
if 0x0 goto @give
if 0x1 goto @sry
is incorrect, you only need to define one of the 2, so I'll modify your script a little... Edits will be in the quote, in BOLD RED. (EXCEPT for things I remove, since I can't highlight stuff that isn't there.)

The only other thing wrong is the "boxset" command isn't used anymore, and is now a part of msgbox, so if you use boxset 0x6, now just add an 0x6 after the message's pointer...

Try the script out now...
(ALSO, if you don't know how to insert a script, read a tutorial, or Press F2 in XSE...)
i put it in and when i go to talk to the person i click "a" and they don't say anything?
Reply With Quote
  #285    
Old September 25th, 2009 (02:33 PM).
Toon Link's Avatar
Toon Link Toon Link is offline
POKEMON TRAINER
 
Join Date: May 2009
Posts: 25
What is the script to set the national pokedex in emerald?
Reply With Quote
  #286    
Old September 25th, 2009 (02:46 PM).
DawnRyder DawnRyder is offline
I cannot believe I'm back -.-
 
Join Date: Aug 2009
Posts: 79
Quote originally posted by Toon Link:
What is the script to set the national pokedex in emerald?
#org @givendex
lock
faceplayer
msgbox @dexgive 0x2
callstd 0x4
special 0x1F3
release
end


#org @dexgive
= Here is a National Pokédex.
__________________
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.

Sorry guys, but I'm leaving Pokécommunity. I just don't have time for it. As of right now you will no longer be able to contact me.
Reply With Quote
  #287    
Old October 4th, 2009 (01:26 AM).
ME0W's Avatar
ME0W ME0W is offline
Still busy working on my hack.
 
Join Date: Aug 2009
Age: 19
Gender: Male
Nature: Calm
Posts: 22
Man! This tutorial really helped me a lot!
Thanks dude! Your the man!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I like CHANSEY..
Reply With Quote
  #288    
Old October 4th, 2009 (07:43 AM).
score_under's Avatar
score_under score_under is offline
I program the *other* ASM.
Crystal Tier
 
Join Date: Aug 2005
Location: Hertfordshire, England
Age: 22
Nature: Rash
Posts: 525
Quote originally posted by 0m3GA ARS3NAL:
Octadecimal (OCT, not used in ROM hacking...) 7
Actually, I'm sure you mean octal.
Octadecimal goes from 0 to H, and is pretty illogical to use when programming. Almost as illogical as using decimal.
__________________
Plz not to PM me, I don't come here often enough. Email if you need me
Reply With Quote
  #289    
Old October 11th, 2009 (11:40 PM).
ME0W's Avatar
ME0W ME0W is offline
Still busy working on my hack.
 
Join Date: Aug 2009
Age: 19
Gender: Male
Nature: Calm
Posts: 22
Thanks for the guide again! Now, I can use some coomands
that I never knew I can use!
__________________
Look at my new Title Screen!

Not bad don't you think?
My other one went nuts!
So I made a new one!

Quote:
Spoiler:

One of my favorite

quotes!


Mr. Flak: Oh, and Mr. Larkin, perhaps you'd
like to share with the rest of the class,
Patrick Henry's immortal last words.

Link Larkin: Kiss my ASS?

Man I love that!

Reply With Quote
  #290    
Old October 12th, 2009 (09:00 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 score_under:
Actually, I'm sure you mean octal.
Octadecimal goes from 0 to H, and is pretty illogical to use when programming. Almost as illogical as using decimal.
lol, yeah, meant Octal, lol, my bad
__________________
>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...

>
Reply With Quote
  #291    
Old October 31st, 2009 (07:16 AM).
panthers4091 panthers4091 is offline
 
Join Date: Oct 2009
Gender: Male
Posts: 31
Excellent guide, I've been using things from it for a while but just thought you deserved a post.
Reply With Quote
  #292    
Old October 31st, 2009 (09:14 PM).
jaykimo jaykimo is offline
 
Join Date: Oct 2009
Gender: Female
Posts: 1
1. For the trainer battle, how do you change the pokemon the trainer is battling with? Does it depend on what trainer ID you're using?
2. How do you change what Prof. Oak would say OUTSIDE and INSIDE the lab?
Reply With Quote
  #293    
Old October 31st, 2009 (09:24 PM).
panthers4091 panthers4091 is offline
 
Join Date: Oct 2009
Gender: Male
Posts: 31
Quote originally posted by jaykimo:
1. For the trainer battle, how do you change the pokemon the trainer is battling with? Does it depend on what trainer ID you're using?
2. How do you change what Prof. Oak would say OUTSIDE and INSIDE the lab?
The trainer ID determines the trainer you face, and therefore the pokemon. Download a tool if you want to change it.

To change what people say, open up the preexisting scripts and change them.
Reply With Quote
  #294    
Old November 8th, 2009 (10:54 AM).
StheB's Avatar
StheB StheB is offline
im a mapper not a scripter
 
Join Date: Dec 2008
Location: York,England
Age: 19
Posts: 6
Thanks your tutorial has help a lot
__________________

Reply With Quote
  #295    
Old November 23rd, 2009 (05:32 PM).
Necrid Necrid is offline
 
Join Date: Nov 2009
Gender: Male
Posts: 3
Is he using XSE 1.0.0 or 1.1.1?? sorry im new here XD
Reply With Quote
  #296    
Old November 24th, 2009 (02:33 AM).
sky_queen3's Avatar
sky_queen3 sky_queen3 is offline
Minusle Fangirl. ;)
 
Join Date: Feb 2009
Location: Australia
Age: 25
Gender: Female
Nature: Naive
Posts: 249
I love this tutorial, it helps me a lot.
__________________
Reply With Quote
  #297    
Old November 24th, 2009 (04:50 PM).
diegoisawesome's Avatar
diegoisawesome diegoisawesome is offline
Please understand
Silver Tier
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 18
Gender: Male
Nature: Quirky
Posts: 971
Quote originally posted by Necrid:
Is he using XSE 1.0.0 or 1.1.1?? sorry im new here XD
I'm using the latest XSE, 1.1.1. At the top of the thread, it says to update to the latest version.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Diego's Miscellaneous Patches
GBA Intro Manager
Reply With Quote
  #298    
Old November 24th, 2009 (09:11 PM).
Necrid Necrid is offline
 
Join Date: Nov 2009
Gender: Male
Posts: 3
What is wrong with this script when i click on the npc i hear the sound of the messageboxx but the message box itself doesnt show here is the script

#dynamic 0x6B0A02
#org @start
msgbox @hello 0x2
end

#org @hello
= Hello\nMy name is Battousai
Reply With Quote
  #299    
Old November 27th, 2009 (07:11 PM).
Chevalier's Avatar
Chevalier Chevalier is offline
Réveiller
 
Join Date: Nov 2009
Location: USA
Gender: Male
Nature: Adamant
Posts: 22
Great guide! Huge help on countless problems except for a few things.

The most obvious problem that I've encountered is having to do with movement.

Example:
Overworld tries to pass Person A, Person A stops Overworld *doesn't lead him anywhere or makes him take a step back* and engages in a conversation. Then Person A walks off screen.
This event only happens once.

I realize that some of it is explained but as far I've read, and I've read the guide thoroughly, it doesn't mention how to go about this.

Thanks in advance.
__________________
Dat New New Is Here



Check The Thread
Reply With Quote
  #300    
Old November 28th, 2009 (07:21 PM).
Jemzx's Avatar
Jemzx Jemzx is offline
Guardian Trainer
 
Join Date: Nov 2009
Gender: Male
Nature: Relaxed
Posts: 44
thank you, nice tutorial!
Reply With Quote
Reply
Quick Reply

Sponsored Links
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 12:05 AM.