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
  #26    
Old June 1st, 2008 (02:52 AM). Edited June 1st, 2008 by Master_Track.
Master_Track's Avatar
Master_Track Master_Track is offline
ROM Reaverz Scripter
 
Join Date: Mar 2008
Location: Austria
Age: 22
Gender:
Nature: Brave
Posts: 916
Send a message via Windows Live Messenger to Master_Track
~problem eliminated~
sry, everythings fine now xD
__________________

*Busy with school*

  #27    
Old June 1st, 2008 (08:54 AM).
Tropical Sunlight's Avatar
Tropical Sunlight Tropical Sunlight is offline
The Faltine
 
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 Darthatron:
It's not available for download yet. I just have the BETA. It should be released soon.
Yeah, very soon (I hope)

(lessthan25characters)
__________________
  #28    
Old June 1st, 2008 (09:02 PM).
liuyanghejerry's Avatar
liuyanghejerry liuyanghejerry is offline
 
Join Date: Jan 2008
Location: China,Xi'an
Nature: Calm
Posts: 218
Send a message via ICQ to liuyanghejerry Send a message via Windows Live Messenger to liuyanghejerry Send a message via Yahoo to liuyanghejerry
Well,this is my first time to see XSE scripts,it looks more like scriptED's style...
Hope more useful commands~
__________________
Zel,thethethethe,LU-HO,Darthatron,HackMew,ZodiacDaGreat,Juan,score_under,JPAN,Tamah-chan,I really appreciate your kindness and your help!:D


I did something that really bad.But made all Chinese can hack Pokemon, too.If you guys hate me, I totally understand,but cannot do anything but force to keep everything.
If there must be someone to undertake all spit and curse, it must be me.
  #29    
Old June 2nd, 2008 (03:07 AM).
Zeikku™'s Avatar
Zeikku™ Zeikku™ is offline
Johto remaker
Silver Tier
 
Join Date: Aug 2007
Location: London, England
Age: 23
Gender: Male
Nature: Naughty
Posts: 1,116
Send a message via Windows Live Messenger to Zeikku™
To those asking if its out..its out dudes...go download
__________________

Follow me on Twitter by clicking on my signature.
  #30    
Old June 2nd, 2008 (05:08 AM).
Master_Track's Avatar
Master_Track Master_Track is offline
ROM Reaverz Scripter
 
Join Date: Mar 2008
Location: Austria
Age: 22
Gender:
Nature: Brave
Posts: 916
Send a message via Windows Live Messenger to Master_Track
I have a question: How can u use the comman "multichoice"?
I can script the normal things quite good, but I just don't understand this one ''
__________________

*Busy with school*

  #31    
Old June 2nd, 2008 (05:55 AM).
Tyrantrum's Avatar
Tyrantrum Tyrantrum is offline
ʕ´•ᴥ•`ʔ
Crystal Tier
 
Join Date: Oct 2007
Location: New Jersey
Age: 21
Gender: Male
Nature: Lonely
Posts: 5,810
Send a message via Skype™ to Tyrantrum
This tut is kool!
But, r u gonna add more to it?
Like, what about signpost scripts?
Follow-me, applymovement, etc.
__________________




(x) Tumblr
(y) Twitter
Previously Eeveon
  #32    
Old June 2nd, 2008 (05:57 AM).
X-Buster X-Buster is offline
 
Join Date: Feb 2008
Posts: 713
when will the full XSE tut be created..?
__________________
  #33    
Old June 2nd, 2008 (06:05 AM).
BlackRainbow*'s Avatar
BlackRainbow* BlackRainbow* is offline
Pokemon Coralo Version ?
 
Join Date: Oct 2006
Location: Yiushu
Gender:
Nature: Bold
Posts: 518
i don't see any need to make it. Its actualy the same as pokescript or scripted but much better. you only need to use #Dynamic 0x?????? at the start of the script
and you only use @start or something, not 0x900100
__________________
Pokemon Coralo Version...New Pokemon Petal.
Shyrika Region
  #34    
Old June 2nd, 2008 (06:39 AM).
Master_Track's Avatar
Master_Track Master_Track is offline
ROM Reaverz Scripter
 
Join Date: Mar 2008
Location: Austria
Age: 22
Gender:
Nature: Brave
Posts: 916
Send a message via Windows Live Messenger to Master_Track
yeah, but there all many commands included most of us didn't even know
for example, I knew there's the possibility to make a list of things the player can choose.
but I didn't know HOW to do it, and I saw the command included in XSE
so there'll be MANY questions here since many newbies don't know much commands.
__________________

*Busy with school*

  #35    
Old June 2nd, 2008 (10:04 AM).
mat1554 mat1554 is offline
French Translator
 
Join Date: Feb 2008
Location: Quebec
Gender: Male
Nature: Calm
Posts: 28
Sorry my english is not good lol :D

How to choose the offset, because we must choose the number of bytes that are needed .
  #36    
Old June 2nd, 2008 (10:43 AM).
BlackRainbow*'s Avatar
BlackRainbow* BlackRainbow* is offline
Pokemon Coralo Version ?
 
Join Date: Oct 2006
Location: Yiushu
Gender:
Nature: Bold
Posts: 518
Quote originally posted by Master_Track:
yeah, but there all many commands included most of us didn't even know
for example, I knew there's the possibility to make a list of things the player can choose.
but I didn't know HOW to do it, and I saw the command included in XSE
so there'll be MANY questions here since many newbies don't know much commands.
yeah you're right but if you click F1 you have command help there.
__________________
Pokemon Coralo Version...New Pokemon Petal.
Shyrika Region
  #37    
Old June 2nd, 2008 (12:37 PM).
Tyrantrum's Avatar
Tyrantrum Tyrantrum is offline
ʕ´•ᴥ•`ʔ
Crystal Tier
 
Join Date: Oct 2007
Location: New Jersey
Age: 21
Gender: Male
Nature: Lonely
Posts: 5,810
Send a message via Skype™ to Tyrantrum
For the #Dynamic 0x?????? part of the script, how will we know what to put for the ?s...?
__________________




(x) Tumblr
(y) Twitter
Previously Eeveon
  #38    
Old June 2nd, 2008 (12:46 PM).
Master_Track's Avatar
Master_Track Master_Track is offline
ROM Reaverz Scripter
 
Join Date: Mar 2008
Location: Austria
Age: 22
Gender:
Nature: Brave
Posts: 916
Send a message via Windows Live Messenger to Master_Track
put the programm Free Space Finder by hackmew into the same folder as XSE.
Now if you open XSE you can go to "tools" and free space finder.
there, u open your rom, insert the number of bytes u need (i expect 100-200) and klick search.
the found offset will be copied, and u just have to insert it
__________________

*Busy with school*

  #39    
Old June 2nd, 2008 (01:49 PM).
Tyrantrum's Avatar
Tyrantrum Tyrantrum is offline
ʕ´•ᴥ•`ʔ
Crystal Tier
 
Join Date: Oct 2007
Location: New Jersey
Age: 21
Gender: Male
Nature: Lonely
Posts: 5,810
Send a message via Skype™ to Tyrantrum
Oh, cool!
I made a test rom to see if scripts work on my comp. too.
__________________




(x) Tumblr
(y) Twitter
Previously Eeveon
  #40    
Old June 2nd, 2008 (01:57 PM).
One Winged Angel One Winged Angel is offline
Banned
 
Join Date: Apr 2008
Location: Anchorage, Alaska
Age: 22
Gender:
Nature: Calm
Posts: 480
Send a message via AIM to One Winged Angel Send a message via Windows Live Messenger to One Winged Angel Send a message via Yahoo to One Winged Angel
Hey, an easy way to translate your pokescripts is.
Get a ROM just for test. Then go to A Map, then go to
settings. Next, you select Choose a Scripting Program.
Then search for XSE. When the prompt shows up saying something
Press yes. Next make a script that you want to translate,
then insert it in your test ROM. Then when its inserted, just
click on the script in A-Map and click Edit Script. This will
pop up XSE and you will now be able to see your Pokescript
Commands in XSE format. Hope this helped and Sorry to
Darthatron if this Spam and I will delete it. If not you can put it in your
first post xD
  #41    
Old June 2nd, 2008 (02:07 PM). Edited June 2nd, 2008 by Tyrantrum.
Tyrantrum's Avatar
Tyrantrum Tyrantrum is offline
ʕ´•ᴥ•`ʔ
Crystal Tier
 
Join Date: Oct 2007
Location: New Jersey
Age: 21
Gender: Male
Nature: Lonely
Posts: 5,810
Send a message via Skype™ to Tyrantrum
Yea, I get that now...
Now I'm trying to compile it.
But now it's saying this:
Spoiler:
Unknown keyword "@hotel" at line 10


~EDIT~
It worked!
Thanx yunghove, hackmew, and dartatron!
I can script, except it showed the /p lol...
__________________




(x) Tumblr
(y) Twitter
Previously Eeveon
  #42    
Old June 2nd, 2008 (02:57 PM).
One Winged Angel One Winged Angel is offline
Banned
 
Join Date: Apr 2008
Location: Anchorage, Alaska
Age: 22
Gender:
Nature: Calm
Posts: 480
Send a message via AIM to One Winged Angel Send a message via Windows Live Messenger to One Winged Angel Send a message via Yahoo to One Winged Angel
It showed the /p becuase its supposed to be\pwith no spaces.

heres an example.

hey, whats up? hows\pyour brother doing?
  #43    
Old June 2nd, 2008 (09:11 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
Wow... Soo many posts... :o

Quote originally posted by Master_Track:
I have a question: How can u use the comman "multichoice"?
I can script the normal things quite good, but I just don't understand this one ''
MultiChoice is something that you should really only do when you know all of the basics. You see it needs to use Variables, which may be difficult to some. I'll show you how to make a working script with multichoice, however I won't go into too much detail.
Spoiler:
Ok, so first we will set a #Dynamic.
Code:
#Dynamic 0x800000
Next we want to lock the Player so he/she can't move. Also make the Person we are talking to Face the Player.
Code:
Lock
FacePlayer
Next we will call the MultiChoice Command.
Code:
MultiChoice 0xA 0x4 0x1 B_True
Ok, you should know what each of those means, because it's explained in the Command Help...

Next we need to copy the Value "LASTRESULT" into another Var, so we can use it. Today I will be using 0x4003
Code:
CopyVar 0x4003 LASTRESULT
Now, we are going to "Check" if the Value of 0x4003 is 0. If it is we will goto another script.
Code:
Compare 0x4003 0x0
If B_TRUE Call @Choice1
Pretty much we just go that for as many results as the MultiChoice Box has. This certain Multichoice has 5 Options. So...
Code:
Compare 0x4003 0x1
If B_TRUE Call @Choice2
Compare 0x4003 0x2
If B_TRUE Call @Choice3
Compare 0x4003 0x3
If B_TRUE Call @Choice4
Compare 0x4003 0x4
If B_TRUE Call @Choice5
Next we are going to Release the Lock Command, giving control back to the player. And also End the script.
Code:
Release
End
Ok... That's pretty much it, all you really hae to do now is decide what you want each choice to do... Here is my beautiful example.
Code:
#Dynamic 0x800000

#ORG @Main
Lock
FacePlayer
MultiChoice 0xA 0x4 0x1 0x1
CopyVar 0x4003 LASTRESULT
Compare 0x4003 0x0
If B_TRUE Call @Choice1
Compare 0x4003 0x1
If B_TRUE Call @Choice2
Compare 0x4003 0x2
If B_TRUE Call @Choice3
Compare 0x4003 0x3
If B_TRUE Call @Choice4
Compare 0x4003 0x4
If B_TRUE Call @Choice5
Release
End

#ORG @Choice1
Message @Text1
BoxSet 6
Return

#ORG @Choice2
Message @Text2
BoxSet 6
Return

#ORG @Choice3
Message @Text3
BoxSet 6
Return

#ORG @Choice4
Message @Text4
BoxSet 6
Return

#ORG @Choice5
Message @Text5
BoxSet 6
Return

#ORG @Text1
= Message 1.

#ORG @Text2
= Message 2.

#ORG @Text3
= Message 3.

#ORG @Text4
= Message 4.

#ORG @Text5
= Message 5.

Quote originally posted by X-Buster:
when will the full XSE tut be created..?
HackMew is writing it up as we speak.
__________________
あなた は しきしゃ です
わたし は ばか です
  #44    
Old June 2nd, 2008 (09:28 PM).
~Teh Panda~'s Avatar
~Teh Panda~ ~Teh Panda~ is offline
Sea of Dreams - Redux
Silver Tier
 
Join Date: Aug 2007
Posts: 905
Quote originally posted by Darthatron:
Wow... Soo many posts... :o


MultiChoice is something that you should really only do when you know all of the basics. You see it needs to use Variables, which may be difficult to some. I'll show you how to make a working script with multichoice, however I won't go into too much detail.
Spoiler:
Ok, so first we will set a #Dynamic.
Code:
#Dynamic 0x800000
Next we want to lock the Player so he/she can't move. Also make the Person we are talking to Face the Player.
Code:
Lock
FacePlayer
Next we will call the MultiChoice Command.
Code:
MultiChoice 0xA 0x4 0x1 B_True
Ok, you should know what each of those means, because it's explained in the Command Help...

Next we need to copy the Value "LASTRESULT" into another Var, so we can use it. Today I will be using 0x4003
Code:
CopyVar 0x4003 LASTRESULT
Now, we are going to "Check" if the Value of 0x4003 is 0. If it is we will goto another script.
Code:
Compare 0x4003 0x0
If B_TRUE Call @Choice1
Pretty much we just go that for as many results as the MultiChoice Box has. This certain Multichoice has 5 Options. So...
Code:
Compare 0x4003 0x1
If B_TRUE Call @Choice2
Compare 0x4003 0x2
If B_TRUE Call @Choice3
Compare 0x4003 0x3
If B_TRUE Call @Choice4
Compare 0x4003 0x4
If B_TRUE Call @Choice5
Next we are going to Release the Lock Command, giving control back to the player. And also End the script.
Code:
Release
End
Ok... That's pretty much it, all you really hae to do now is decide what you want each choice to do... Here is my beautiful example.
Code:
#Dynamic 0x800000

#ORG @Main
Lock
FacePlayer
MultiChoice 0xA 0x4 0x1 0x1
CopyVar 0x4003 LASTRESULT
Compare 0x4003 0x0
If B_TRUE Call @Choice1
Compare 0x4003 0x1
If B_TRUE Call @Choice2
Compare 0x4003 0x2
If B_TRUE Call @Choice3
Compare 0x4003 0x3
If B_TRUE Call @Choice4
Compare 0x4003 0x4
If B_TRUE Call @Choice5
Release
End

#ORG @Choice1
Message @Text1
BoxSet 6
Return

#ORG @Choice2
Message @Text2
BoxSet 6
Return

#ORG @Choice3
Message @Text3
BoxSet 6
Return

#ORG @Choice4
Message @Text4
BoxSet 6
Return

#ORG @Choice5
Message @Text5
BoxSet 6
Return

#ORG @Text1
= Message 1.

#ORG @Text2
= Message 2.

#ORG @Text3
= Message 3.

#ORG @Text4
= Message 4.

#ORG @Text5
= Message 5.


HackMew is writing it up as we speak.
Nice, something else to work on now. i cannot wait until Hackmew is done! :)
  #45    
Old June 2nd, 2008 (10: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 hockeypanda32:
Nice, something else to work on now. i cannot wait until Hackmew is done!
He is done. Check XSE out here. Have fun with it.
__________________
あなた は しきしゃ です
わたし は ばか です
  #46    
Old June 2nd, 2008 (10:43 PM).
Master_Track's Avatar
Master_Track Master_Track is offline
ROM Reaverz Scripter
 
Join Date: Mar 2008
Location: Austria
Age: 22
Gender:
Nature: Brave
Posts: 916
Send a message via Windows Live Messenger to Master_Track
thx darthatron, I already know all the basics since I scripted with pokescript very much and quite advanced.(so I understood what u wrote there )
I just don't know how some things are set in XSE, but I believe the tut will help? :D
__________________

*Busy with school*

  #47    
Old June 3rd, 2008 (02:19 AM).
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 Master_Track:
thx darthatron, I already know all the basics since I scripted with pokescript very much and quite advanced.(so I understood what u wrote there )
I just don't know how some things are set in XSE, but I believe the tut will help? :D
Yes, from what I've seen the guide HackMew is making is very detailed.
__________________
あなた は しきしゃ です
わたし は ばか です
  #48    
Old June 3rd, 2008 (02:31 AM).
Tré's Avatar
Tré Tré is offline
Raised by the bastards of 1969
 
Join Date: Oct 2007
Location: My town was blind from refinery sun
Gender: Male
Nature: Quiet
Posts: 1,591
wow..this XSE is too easy to use..but is there an alternative..were basic pokescript can stick here
it..confuses me...
__________________
  #49    
Old June 3rd, 2008 (02:53 AM).
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 Tre_Al:
wow..this XSE is too easy to use..but is there an alternative..were basic pokescript can stick here
it..confuses me...
It's pretty much the same, all that has changed dramatically is "$" to "@". Everything else is just easier.
__________________
あなた は しきしゃ です
わたし は ばか です
  #50    
Old June 3rd, 2008 (02:57 AM).
/Circa's Avatar
/Circa /Circa is offline
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Posts: 881
Im addicted to the new uses of XSE, but I think i'll stick to using 0x?????? offsets instead of Dynamic, I can track where im going with that.
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
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:55 AM.