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
  #351    
Old March 14th, 2009 (08:19 AM). Edited March 14th, 2009 by Benzee.
Benzee's Avatar
Benzee Benzee is offline
I got your number, on the wall
 
Join Date: Aug 2008
Location: Pine Beach, NJ
Nature: Relaxed
Posts: 41
Hey, first let me say that this is a cool tutorial and I look forward to using it. When I tried to make a script for a test sign, I followed your steps. Here is my script.

Spoiler:
#dynamic 0x800426

#org @msg
Lock
Faceplayer
msgbox @msg 0x3
release
end

#org @start
= Hola!


Now I hit compile script, but I don't know how to insert it into the game. I tried setting the offset number in advance-map to $800426, but then whenever I open it, it's a different one. I've been trying to figure it out for a while, but I have yet to figure out what I am doing wrong. Any help would be appreciated.

Edit: Just figured out the problem. Great guide.
  #352    
Old March 22nd, 2009 (04:04 PM). Edited March 22nd, 2009 by Chibi Robo.
Chibi Robo's Avatar
Chibi Robo Chibi Robo is offline
of the entire epoch!
Silver Tier
 
Join Date: Aug 2008
Location: Cali
Age: 19
Gender: Male
Nature: Jolly
Posts: 853
Ive made my script and compiled but how do I put it on advance map into a person?
__________________
Pair: Vrai
  #353    
Old March 24th, 2009 (07:58 PM).
Zanny77's Avatar
Zanny77 Zanny77 is offline
I'm back, baby!
 
Join Date: Mar 2009
Location: Maine
Age: 24
Gender: Male
Nature: Jolly
Posts: 259
Erm, I am not sure what's going on. I have XSE up and I tried to run this on the fat guy in front of Prof. Oak's lap.

Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
message @tutorial 0x5
compare LASTRESULT 1
if b_true goto @yes
compare LASTRESULT 0
if b_true goto @no
release
end

#org @tutorial
= Do you like Cannibal Corpse?

#org @yes
message @pressyes 0x6
release
end

#org @no
message @pressno 0x6
release
end

#org @pressyes
= Good job!\pI'd give you a cookie\p...\pIf I had one...

#org @pressno
= .....octopus...


I also went into Advance Map and changed his script offset to 800000, but it's not working. What's wrong?

(Also, I'm not sure if this does anything, but I moved him into in front of the house and changed his position to "look up."
__________________

I SUPPORTQUOTECREDITHACK
  #354    
Old March 25th, 2009 (08:24 AM).
AL_91's Avatar
AL_91 AL_91 is offline
 
Join Date: Feb 2009
Gender:
Posts: 4
Whats wrong with this:



#org $16B0000
lock
faceplayer
checkflag 0x1000
if b_true goto $alredygot
message $getitem
$getitem 1 = Your pokedex is upgradet
boxset 6
giveitem 0xD 0x5
setflag 0x1000
release
end

#ORG $alredygot
lock
faceplayer
message $onlyone
$onlyone 1 = Do you like your new pokedex
boxset 6
release
end
  #355    
Old March 25th, 2009 (10:44 AM). Edited March 25th, 2009 by thetribemaster.
thetribemaster's Avatar
thetribemaster thetribemaster is offline
Pokemon: Brink of Oblivion
 
Join Date: Nov 2007
Gender:
Posts: 25
@AL_91

Try this, I even went to the trouble of fixing your grammar :D
DONT COPY AND PASTE

Spoiler:

#dynamic 0x[insert offset from FSF]
#org @start
lock
faceplayer
checkflag 0x923 (unless already used)
if 0x1 goto @alredygot
msgbox @getitem 0x6
giveitem 0xD 0x5 MSG_OBTAIN
setflag 0x923
release
end

#ORG @alredygot
msgbox @onlyone 0x6
release
end

#org @getitem
= Your pokedex is upgraded.

#org @onlyone
= Do you like your new pokedex?


@Zanny77

Try this one, same as above

Spoiler:

#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @tutorial 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
message @pressno 0x6
release
end

#org @yes
msgbox @pressyes 0x6
release
end

#org @tutorial
= Do you like Cannibal Corpse?

#org @pressyes
= Good job!\pI'd give you a cookie\p\hB0\pIf I had one\hB0

#org @pressno
= \hB0octopus\hB0


@HFI

Seriously, did you read the thread, or just post, type in the offset XSE gave you into the "Script offset" field (by default it will have $000000 in it) type it like this, say the offset was 800000, then it would say $800000.
  #356    
Old March 25th, 2009 (12:48 PM).
AL_91's Avatar
AL_91 AL_91 is offline
 
Join Date: Feb 2009
Gender:
Posts: 4
now i learned how to use FSF
but..

#dynamic 0x9C0B20
#org @start
lock
faceplayer
checkflag 0x923
if 0x1 goto @alredygot
msgbox @getitem 0x6 <-?
giveitem ?????? <------ what sould i put here??
setflag 0x923
release
end

#ORG @alredygot
msgbox @onlyone 0x6
release
end

#org @getitem
= Your pokedex is upgraded.

#org @onlyone
= Do you like your new pokedex?


------------------------------------------

pkmnhackersonline says
[F301] = Emerald national dex
  #357    
Old March 25th, 2009 (05:54 PM). Edited March 25th, 2009 by thetribemaster.
thetribemaster's Avatar
thetribemaster thetribemaster is offline
Pokemon: Brink of Oblivion
 
Join Date: Nov 2007
Gender:
Posts: 25
That depends on what you want to give, the script you gave me would give you 5 potions.
Oh, you want to give the national dex, thats a special.

Replace giveitem xxx xxx xxx with

special 0x1F3
  #358    
Old March 25th, 2009 (09:38 PM). Edited March 25th, 2009 by AL_91.
AL_91's Avatar
AL_91 AL_91 is offline
 
Join Date: Feb 2009
Gender:
Posts: 4
...
if 0x1 goto @alredygot
msgbox @getitem 0x6
special 0x1F3
setflag 0x923
release
...
Like this??

#Dynamic 0x800000

#org 0xE3CF65
lock
faceplayer
checkflag 0x10B
if 0x1 jump 0xE3CF8B
setflag 0x10B
special 0x1F3
msgbox 0x8E3CF97
callstd 0x6
fanfare 0x13E
msgbox 0x8E3CFB3
callstd 0x6
release
end

#org 0xE3CF8B
lock
faceplayer
msgbox 0x8E3CFC6
callstd 0x6
release
end

#org 0xE3CF97
= text
#org 0xE3CFB3
= Pokedex Upgradet
#org 0xE3CFC6
= Like your new pokedex?

game works with this but very slowly (and sorry for my bad english)

i fixed it. thanx for help
  #359    
Old March 26th, 2009 (03:12 AM).
Southparkerstan's Avatar
Southparkerstan Southparkerstan is offline
Beggining ROM hacker- mapper
 
Join Date: Mar 2009
Age: 18
Gender:
Nature: Relaxed
Posts: 26
Send a message via AIM to Southparkerstan
Hi, I have a problem with XSE. Whenever i hit the compile button, i get a message that says "Too les parameters on line 6. The correct number is 2." Whats the problem?
Here's the script:
#Dynamic 0x800000
#ORG @Main
Lock
FacePlayer
Message @Speak
BoxSet 0x6
Release
End
#ORG @Speak
= This is a test script.
  #360    
Old March 26th, 2009 (03:34 AM).
AL_91's Avatar
AL_91 AL_91 is offline
 
Join Date: Feb 2009
Gender:
Posts: 4
for national dex i used


'-----------------------
#org 0x869630
lock
faceplayer
checkflag 0x10A
if 0x1 call 0x8869652
special 0x1F3
setflag 0x10A
fanfare 0x13E
msgbox 0x8869678 '"Your POKéDEX was upgraded!"
callstd 0x6
waitfanfare
release
end

'-----------------------
#org 0x869652
msgbox 0x886965E '"Like your new POKéDEX?"
callstd 0x6
release
end


'---------
' Strings
'---------
#org 0x869678
= Your POKéDEX was upgraded!

#org 0x86965E
= Like your new POKéDEX?
  #361    
Old March 29th, 2009 (08:05 AM).
Matteron (96)'s Avatar
Matteron (96) Matteron (96) is offline
Difference is everything...
Gold Tier
 
Join Date: May 2008
Age: 18
Posts: 270
This is a really short tut.
__________________
Matteron(96)
Currently Playing--->
Progress: Post-Game
Current Team:


In Terms of Hacking...
Favorite ROM
Skills
Working On
In Terms of Game Dev...
Working On
News
I'm currently up for hire, for almost anything in ROM hacking, so just send me a PM.
  #362    
Old April 1st, 2009 (09:26 AM).
darkmaster0 darkmaster0 is offline
 
Join Date: Apr 2008
Gender:
Posts: 2
Something is wrong. I can edit scripts that are already in the game but I can't add my own. It compiles successfuly but doesn't open the right script in advance map.
  #363    
Old April 1st, 2009 (04:46 PM).
Flip-destiny's Avatar
Flip-destiny Flip-destiny is offline
 
Join Date: Feb 2009
Gender:
Nature: Quiet
Posts: 6
I need help =/

I followed the tutorial and then I clicked Compile and this message appeared, "Too less parameters on line 6. The correct number is 2."

What does that mean, please help!
  #364    
Old April 1st, 2009 (06:49 PM).
Bao Bao is offline
 
Join Date: Mar 2009
Gender:
Posts: 33
okay i must be doing something wrong here.

so i'll edit one script like say a signpost and compile it. than i'll go and edit a different signpost and compile it. BUT, if i go back to recheck on the first script i edit, it changes by itself. it becomes a mixture of both scripts that i've edit...

what am i doing wrong??
  #365    
Old April 1st, 2009 (08:37 PM).
HentaiHentai HentaiHentai is offline
Banned
 
Join Date: Dec 2008
Location: Washington, USA
Age: 26
Gender:
Nature: Calm
Posts: 53
Quote originally posted by Bao:
okay i must be doing something wrong here.

so i'll edit one script like say a signpost and compile it. than i'll go and edit a different signpost and compile it. BUT, if i go back to recheck on the first script i edit, it changes by itself. it becomes a mixture of both scripts that i've edit...

what am i doing wrong??
Use a Free Space Finder.
Compile script to a free space.
and it will work.

I am assuming your editing signs that are already in game.
Dont.
Make a new one and get the offset from FSF.
Then compile. Thats how. Try it.
  #366    
Old April 2nd, 2009 (06:43 AM).
Chibi Robo's Avatar
Chibi Robo Chibi Robo is offline
of the entire epoch!
Silver Tier
 
Join Date: Aug 2008
Location: Cali
Age: 19
Gender: Male
Nature: Jolly
Posts: 853
Quote originally posted by thetribemaster:
@AL_91
Seriously, did you read the thread, or just post, type in the offset XSE gave you into the "Script offset" field (by default it will have $000000 in it) type it like this, say the offset was 800000, then it would say $800000.
Ok thanks I must of skimed over that part (Sometimes I read too quickly and miss some parts of the tutorial)
__________________
Pair: Vrai
  #367    
Old April 2nd, 2009 (11:22 AM).
Bao Bao is offline
 
Join Date: Mar 2009
Gender:
Posts: 33
Quote originally posted by HentaiHentai:
Use a Free Space Finder.
Compile script to a free space.
and it will work.

I am assuming your editing signs that are already in game.
Dont.
Make a new one and get the offset from FSF.
Then compile. Thats how. Try it.
hey thanks for the help! i will try it out and see if it'll work =]
  #368    
Old April 6th, 2009 (03:48 AM).
Ark_Dragon Ark_Dragon is offline
 
Join Date: Mar 2008
Location: Essex, UK
Age: 23
Gender:
Posts: 13
Send a message via Windows Live Messenger to Ark_Dragon
Ok so i want to start scripting and the tut at beggining seems helpful, but can someone lock any important posts to the top, because theres a lot here to read and i dont want to miss anything too good! xD
  #369    
Old April 6th, 2009 (02:44 PM).
Dragonmaster91's Avatar
Dragonmaster91 Dragonmaster91 is offline
It's just common sense!
 
Join Date: Apr 2008
Gender: Male
Nature: Adamant
Posts: 220
Quote originally posted by Flip-destiny:
I need help =/

I followed the tutorial and then I clicked Compile and this message appeared, "Too less parameters on line 6. The correct number is 2."

What does that mean, please help!
Can't help unless you post your script.
  #370    
Old April 6th, 2009 (03:31 PM).
Giratina the master's Avatar
Giratina the master Giratina the master is offline
A Member looking for ROM help
 
Join Date: Mar 2009
Gender:
Nature: Timid
Posts: 94
Why does it send me messae saying
no #dirrectives were found cannot compile
__________________
hacks i support
Spoiler:







My FC 4082 1789 3045
  #371    
Old April 17th, 2009 (07:46 PM).
xyzmetal xyzmetal is offline
The Metal Generation
 
Join Date: Mar 2009
Location: New Bark Town
Gender:
Nature: Docile
Posts: 14
I followed the tutorial and my script is:

#Dynamic 0x800000

#ORG @Main
Lock
FacePlayer
Message @Speak
BoxSet 0x6
Release
End
#ORG @Speak
= This is a message!

A message keeps popping up saying "Too less parameters online 6. The correct number is 2." What does that mean?
  #372    
Old April 17th, 2009 (09:00 PM).
machomuu's Avatar
machomuu machomuu is online now
Grant me the power of revolution!
Gold Tier
 
Join Date: Apr 2008
Location: 'Murca
Gender: Male
Nature: Relaxed
Posts: 6,508
Quote originally posted by xyzmetal:
I followed the tutorial and my script is:

#Dynamic 0x800000

#ORG @Main
Lock
FacePlayer
Message @Speak
BoxSet 0x6
Release
End
#ORG @Speak
= This is a message!

A message keeps popping up saying "Too less parameters online 6. The correct number is 2." What does that mean?
Quote:
Fixed
#Dynamic 0x800000

#ORG @Main
Lock
FacePlayer
Msgbox @Speak 0x6
Release
End

#ORG @Speak
= This is a message!
It is now Msgboc instead of message then boxset.
__________________
  #373    
Old April 17th, 2009 (10:30 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 machomuu:
It is now Msgboc instead of message then boxset.
Actually, it is
msgbox
OR
message

Both work fine, the new part about it is the last byte.
That is boxset.

Instead of;
message @lol
boxset 0x6

now you have to type;
message @lol 0x6

You see, not much of a difference.
Just clarifying that both msgbox and message work... of course, the initial question would not have been asked if people were smart enough to read the guide that is INCLUDED WITH XSE, it tells you all of the changes since the update!
__________________
>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...

>
  #374    
Old April 18th, 2009 (03:59 AM).
Larsa Solidor's Avatar
Larsa Solidor Larsa Solidor is offline
 
Join Date: Mar 2009
Gender:
Posts: 3
You have absolutely no idea how long i have been looking for a good XSE scripting tutorial! THANK YOU SOOOOOOO MUCH!!!!
__________________
I Am The Monument To All Your Sins.
  #375    
Old April 18th, 2009 (05:37 AM).
xyzmetal xyzmetal is offline
The Metal Generation
 
Join Date: Mar 2009
Location: New Bark Town
Gender:
Nature: Docile
Posts: 14
So I tried it and nwo it says Error 13 "Type Dismatch" on line 6. Missing dynamic label.
My script is

#Dynamic 0x800000

#ORG @Main
Lock
FacePlayer
message @lol 0x6
Release
End

#ORG @Speak
= This is a message!

And on line 6 I have = message @lol 0x6. Any help for that? P.S. The guide doesnt tell you how to deal with error codes.
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 09:01 PM.