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
  #376    
Old April 23rd, 2009 (05:24 AM).
kaka1918's Avatar
kaka1918 kaka1918 is offline
sorry im bad in english
Team Sinnoh
 
Join Date: Apr 2009
Location: algeria
Gender:
Nature: Calm
Posts: 27
Send a message via Windows Live Messenger to kaka1918
yes is very good tutoriel I can take it to make it in my site with a French translation (with credit )
  #377    
Old April 23rd, 2009 (06:22 AM).
falls's Avatar
falls falls is offline
 
Team Kalos
 
Join Date: Apr 2009
Location: Seattle WA
Age: 33
Gender:
Nature: Quiet
Posts: 6
Send a message via Windows Live Messenger to falls
not sure wat I am doing wrong. when i put it on a script event not a person event, i just walk right over it...
  #378    
Old May 4th, 2009 (04:41 PM).
Pokemon12345678901 Pokemon12345678901 is offline
Good Bye
Team Kalos
 
Join Date: Mar 2009
Nature: Quiet
Posts: 225
Hi the compile button is gray not blue and it not letting me click it. help
__________________
Good bye
  #379    
Old May 4th, 2009 (04:59 PM).
colcolstyles's Avatar
colcolstyles colcolstyles is offline
Yours truly
Team Hoenn
Crystal Tier
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Posts: 1,592
Quote originally posted by Pokemon12345678901:
Hi the compile button is gray not blue and it not letting me click it. help
Do you have a ROM loaded in XSE? If not, the Compile button will be unclickable.
__________________

Brother of Vrai
  #380    
Old May 6th, 2009 (02:20 PM).
spartan3572 spartan3572 is offline
Team Sinnoh
 
Join Date: May 2009
Gender:
Posts: 2
I am trying to make a person give you money, but once i compile the script, then i exit out and go back to it, the script is blank. I think there might be a problem with my script, can someone help me?

'---------------
#org 0x000000
lock
faceplayer
msgbox 0x000000 MSG_NORMAL '"Here have some money."
givemoney 00002710 MSG_OBTAIN
release
end

'---------
' Strings
'---------
#org 0x000000
= Here have some money.




also how do i tell how much money the person is giving?
  #381    
Old May 6th, 2009 (02:27 PM).
colcolstyles's Avatar
colcolstyles colcolstyles is offline
Yours truly
Team Hoenn
Crystal Tier
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Posts: 1,592
Quote originally posted by spartan3572:
I am trying to make a person give you money, but once i compile the script, then i exit out and go back to it, the script is blank. I think there might be a problem with my script, can someone help me?

'---------------
#org 0x000000
lock
faceplayer
msgbox 0x000000 MSG_NORMAL '"Here have some money."
givemoney 00002710 MSG_OBTAIN
release
end

'---------
' Strings
'---------
#org 0x000000
= Here have some money.




also how do i tell how much money the person is giving?
Don't compile it to '0x000000'. Try something around 0x800000. And for the text, don't put the same offset that you put at the top of the script. Add like 0x100 to it (so that'd be 0x800100 or whatever).
Or you could just use dynamic offsets...
__________________

Brother of Vrai
  #382    
Old May 7th, 2009 (05:39 PM). Edited May 8th, 2009 by Christos.
spartan3572 spartan3572 is offline
Team Sinnoh
 
Join Date: May 2009
Gender:
Posts: 2
thanks, i didnt compile it to 0x000000, i just change that for this. But i did change the offset for the text and that worked. Thanks again

How do you create the script for a trainer battle? i have made the trainer using advance trainer, but i dont know what script to write for it. can anyone help?
  #383    
Old May 7th, 2009 (06:42 PM).
colcolstyles's Avatar
colcolstyles colcolstyles is offline
Yours truly
Team Hoenn
Crystal Tier
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Posts: 1,592
Quote originally posted by spartan3572:
How do you create the script for a trainer battle? i have made the trainer using advance trainer, but i dont know what script to write for it. can anyone help?
Both thethethethe's scripting tutorial and diego's XSE adaptation of said tutorial explain how to do that in detail.
__________________

Brother of Vrai
  #384    
Old June 7th, 2009 (05:48 PM). Edited June 14th, 2009 by Christos.
Balkia's Avatar
Balkia Balkia is offline
パルキア
Team Kalos
 
Join Date: Jun 2009
Location: New Zealand, Auckland
Age: 23
Gender: Male
Nature: Hardy
Posts: 59
Send a message via Windows Live Messenger to Balkia
wheres update im interested on learning more

Heres what happened when i tried on Emerald

__________________









  #385    
Old June 16th, 2009 (10:01 AM).
Arrlop's Avatar
Arrlop Arrlop is offline
Team Kalos
 
Join Date: Jun 2009
Gender: Male
Posts: 16
is it worth transferring over from Pokescript to XSE
  #386    
Old June 16th, 2009 (10:27 AM).
Gamer2020's Avatar
Gamer2020 Gamer2020 is offline
This love is a sickness...
Team Kanto
 
Join Date: Jun 2008
Location: Distant Land
Gender: Male
Nature: Bold
Posts: 796
Send a message via Skype™ to Gamer2020
Quote originally posted by Arrlop:
is it worth transferring over from Pokescript to XSE
Yes it is.
It's easier to learn and has some great features.
I think most people these days use XSE.
__________________
Pokemon Game Editor Download!
Pokemon TCG Assistant!
Fun Fact: Even though PGE isn't posted on PC anymore it still has the same number of downloads per day.
Accept no imitations!
  #387    
Old June 16th, 2009 (10:48 AM).
Arrlop's Avatar
Arrlop Arrlop is offline
Team Kalos
 
Join Date: Jun 2009
Gender: Male
Posts: 16
Cheers Will take your advice, shame really i liked Pokescript.
  #388    
Old June 19th, 2009 (09:04 PM).
MetalGod's Avatar
MetalGod MetalGod is offline
The Metal will live on...
Team Sinnoh
 
Join Date: May 2009
Location: Stairway To Heaven
Age: 21
Gender: Male
Nature: Relaxed
Posts: 2
Send a message via AIM to MetalGod Send a message via Yahoo to MetalGod
Howdy I just have a quick question:

I am getting this error when trying to compile: "Error 13 "Type Mismatch" on line 9. Missing #define"
Here is the exact code:
Spoiler:

#dynamic 0x800001

#org @start
faceplayer
lock
checkflag 0x7
if 0x1 goto @got
msgbox @pokeballs 0x5
compare LASTRESULT 0x1
if 0x1 goto @give
msgbox @no 0x2
release
end

#org @give
giveitem 0x1 0x6 MSG_OBTAIN
setflag 0x7
msgbox @have 0x2
release
end

#org @got
msgbox @have 0x2
release
end

#org @pokeballs
= Would you like some Master\nBalls?

#org @no
= No? Well okay...

#org @have
= If you use those they ALWAYS\nwork!\p...\p...\p...\pLike your mom at a\nstreet corner...


And thanks in advance.This is just a test script, and because of that error I can't do any YES \ NO msgboxs.

~Metal God
  #389    
Old June 20th, 2009 (01:28 AM).
ShinyBlaziken's Avatar
ShinyBlaziken ShinyBlaziken is offline
Dragon-Master
Team Hoenn
 
Join Date: May 2009
Location: Pokemon League :P
Age: 21
Gender: Male
Nature: Adamant
Posts: 65
Send a message via ICQ to ShinyBlaziken
Hi,
I tried to make a person talk to me.
So i made the Script that was described here.
#Dynamic 0x800000

#ORG @Start
Lock
FacePlayer
Message @speak
BoxSet 0x6
Release
End

#ORG @Speak
= Hi!!

But when I'm trying to Compile it, it says that there is something wrong in line 6 (Message @speak)
But i don't know why...
  #390    
Old June 22nd, 2009 (05:48 PM).
tonyroolz's Avatar
tonyroolz tonyroolz is offline
Forever a hacker
Team Kalos
 
Join Date: May 2009
Location: Fresno
Age: 19
Gender: Male
Nature: Lonely
Posts: 1
i know it sounds really stupid but how do I know what the offset is? (im a n00b)
  #391    
Old June 23rd, 2009 (07:09 AM).
My Cyndaquil is on Fire!'s Avatar
My Cyndaquil is on Fire! My Cyndaquil is on Fire! is offline
is HFI's lil' bro
Team Kalos
 
Join Date: Apr 2009
Age: 17
Gender:
Posts: 17
I followed everything for the tutorial Darthron but when I paste the offset in A map and it says for some reason no script aditor defined.
I would appreciate help from cooley, 0mega and other sgood scripters
Thanks~
  #392    
Old June 23rd, 2009 (07:43 AM).
hashtag's Avatar
hashtag hashtag is offline
the man in black
Team Johto
Crystal Tier
 
Join Date: Nov 2008
Location: Salisbury, England
Age: 20
Gender: Male
Posts: 6,683
Well, this tut is for an old XSE. So, copying a script wouldn't work anyway :\
__________________
#
  #393    
Old June 24th, 2009 (05:47 PM).
Malkner Malkner is offline
...
Team Johto
 
Join Date: Feb 2009
Location: That is a very good question.
Gender: Other
Nature: Quirky
Posts: 98
Out of curiosity, where would you find a more recent tutorial?
  #394    
Old June 25th, 2009 (03:37 AM).
Tropical Sunlight's Avatar
Tropical Sunlight Tropical Sunlight is offline
The Faltine
Team Kanto
 
Join Date: Mar 2008
Location: Slovenia
Age: 19
Gender: Male
Posts: 3,578
Send a message via Windows Live Messenger to Tropical Sunlight
Quote originally posted by Oystercrackers:
Out of curiosity, where would you find a more recent tutorial?
Diegoisawesome's tut should be the one.
__________________
  #395    
Old June 25th, 2009 (10:57 PM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL 0m3GA ARS3NAL is offline
Im comin' home...
Team Unova
Silver Tier
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Posts: 1,816
Quote originally posted by tonyroolz:
i know it sounds really stupid but how do I know what the offset is? (im a n00b)
Oh boy, get ready for a wall of text.

An offset is a location in a ROM.
For instance. 0x800000

0x800000 is found in a ROM< at byte number 0x800000, this could be the pointer to an image, or trainer battle data, or whatever it may be, in a scripters case, it is often the offset used to put our scripts.
Why? Because there is A LOT of free space in a ROM there, that is why!
Now, using a scripting engine, like XSE, we can write 0x800000 as our dynamic starting point! (This means that we tell XSE to start looking for free space at 0x800000.)
The reason it is called dynamic is because it wont need to be 0x800000 all the time, so XSE changes it for us, so we don't have to search for free space any more. It, DYNAMICALLY CHANGES! WOOT.
Anywho, offsets are used in many places for a ROM hacker.
For instance, a ROM hacker working in Advance Map may need a scripts offset to give to an overworld, and make it so when you talk to the person, or step on the tile, an even will happen.
A scripter may have a script in there hack, that points to a script they already put in there hack, so they will point the script at that offset to use it, instead of re-writing it, and putting it in twice.
Even artists that make new pixel art need offsets, so they know where to insert there images... as a hacker, you WILL be using offsets often, so get to know your rom hacking terms, any questions? Ask it in the simple question thread, located HERE http://www.pokecommunity.com/showthread.php?t=79614.
Be sure to be nice, and if you are not answered right wait, wait about 10 posts, and ask again.
__________________
>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...

>
  #396    
Old July 8th, 2009 (05:08 PM).
bradiz13's Avatar
bradiz13 bradiz13 is offline
Team Hoenn
 
Join Date: Dec 2008
Location: Australia, Victoria
Age: 22
Gender:
Posts: 52
Send a message via Windows Live Messenger to bradiz13
This is a great tut...Its very easy to understand. I thankyou.
__________________



CLICK ME I KNOW YOU WANT TO!!

Spoiler:



  #397    
Old July 20th, 2009 (11:41 AM).
SSJALEX's Avatar
SSJALEX SSJALEX is offline
GOD'S LEGENDARY SUPERSAIYAN
Team Johto
 
Join Date: Feb 2009
Location: washington
Age: 24
Gender: Male
Nature: Rash
Posts: 5
awesome tutorial! i am gonna give it a try soon! this iis very easy to understand!
__________________

every force you create has an echo, your own evil will be your undoing.- GOGETA

HURTING THE INNOCENT IS SOMETHING I CAN'T TOLERATE.

MATHEW CHAPTER 7 SAYS: HOW YOU JUDGE SOMEONE IS HOW YOU JUDGE YOURSELF.

DON'T MAKE ME GO SUPER SAIYAN ON YOU.

75% of Pokemon gamers use cheats and specially made codes to make their pokemon battle-worthy. If you are one of the 25% percent that level their Pokemon up legally, put this in your signature.
  #398    
Old July 24th, 2009 (08:17 PM).
flamezy boi flamezy boi is offline
Team Unova
 
Join Date: Jul 2009
Gender: Male
Posts: 12
try changing message @....
boxset 0x6
to
msgbox @..... 0x6, it should work
  #399    
Old July 24th, 2009 (09:07 PM).
.Seth's Avatar
.Seth .Seth is offline
.explorer.
Team Kanto
Crystal Tier
 
Join Date: Jun 2008
Location: A capacitor in a power supply board.
Gender: Male
Nature: Quiet
Posts: 1,645
Quote originally posted by Colorful Summer:
Diegoisawesome's tut should be the one.
His has errors too, just so you know.
  #400    
Old August 16th, 2009 (12:54 AM).
Pikachu fan's Avatar
Pikachu fan Pikachu fan is offline
SUSANOOMON IS NOT AMUSED
Team Kanto
 
Join Date: Jul 2009
Age: 18
Gender: Male
Nature: Calm
Posts: 54
I'm currently working on a hack
called pokemon ruby diamond and
i'm trying to compile this script:


#Dynamic 0x6B09F8

#ORG @Main
Lock
FacePlayer
checkflag 0x200
GivePokemon 151 30 0
if b_false goto @recieved
message @recieved
setflag 0x200
Release
End

#ORG @gotit
message @howis
boxset 0x2
End

#ORG @recieved
= Here is a rare Pokemon!

#ORG @howis
= How is MEW?


but every time i try to compile the script
a pop up says:

Error 13 'type mismatch' in file ..... on line 7
Missing #define or parameter

Line: GivePokemon 151 30 0

someone tell me whats wrong plzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzzzzzz
Closed Thread
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 03:35 PM.