The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking > Binary Hack Tutorials
Reload this Page thethethethe's Scripting Tutorial

Notices
For all updates, view the main page.

Binary Hack Tutorials Various tools and resources to help you develop your legacy hacks can be found here.

Ad Content
Reply
 
Thread Tools
  #376   Link to this post, but load the entire thread.  
Old March 11th, 2009 (2:20 PM).
minchan's Avatar
minchan minchan is offline
Mudkip Worshipper
 
Join Date: Aug 2008
Location: mudkip land
Age: 29
Gender: Female
Posts: 714
Wow! I've wanted to learn scripting for a while now. Since I wanna try making a Pokemon hack. But I fail at it. XD So this thread it great! I'm sure it will help me out. Thanks!
__________________
Reply With Quote
  #377   Link to this post, but load the entire thread.  
Old March 18th, 2009 (11:36 AM).
foullump's Avatar
foullump foullump is offline
Rom Hacking Guru
 
Join Date: Mar 2007
Location: United States
Nature: Calm
Posts: 221
Quote:
Originally Posted by minchan View Post
Wow! I've wanted to learn scripting for a while now. Since I wanna try making a Pokemon hack. But I fail at it. XD So this thread it great! I'm sure it will help me out. Thanks!
If following text tutorials turns out to be too difficult, you can always try my video tutorial on youtube. I believe it covers things thoroughly.
__________________
Reply With Quote
  #378   Link to this post, but load the entire thread.  
Old March 18th, 2009 (1:41 PM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL 0m3GA ARS3NAL is offline
Im comin' home...
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 30
Gender: Male
Nature: Gentle
Posts: 1,816
Well... I have not seen this tutorial in a long while.
But I gotta say, it is quite out of date, PokeScript is flawed, and should not be used anymore.
Don't get me wrong, this is probably the most extensive guide on here for scripting, but it is just out of date.
(I would know that it is probably the best scripting tutorial on here, because this is the only tutorial I have ever read, that made sense, this tutorial got my scripting knowledge started.)
__________________
>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
  #379   Link to this post, but load the entire thread.  
Old March 22nd, 2009 (7:43 AM).
kaspey kaspey is offline
A beginner that needs help!!!!
 
Join Date: Mar 2009
Location: North America
Gender:
Nature: Impish
Posts: 4
help i tried to make movement to this girl and then the whole game froze heeeeeeeeeeelp:(
__________________
:badsmile:Im awesome:badsmile:
:rambo:Im cool:rambo:
:pirate:im the begginer of hacking:pirate:
:bandit:but you still have to bow to me:bandit:



seiriously im not trying to be mean i just need your help
Reply With Quote
  #380   Link to this post, but load the entire thread.  
Old March 31st, 2009 (1:55 AM).
onyx79's Avatar
onyx79 onyx79 is offline
Red Dead Revolver
 
Join Date: Jan 2009
Location: Orange Islands (=
Gender: Male
Nature: Modest
Posts: 488
hmmm about the wild battle script,do I need to copy all of this code?how can I change chrizard to a lapras?how can I put this on advanced map?is that works with pksvui?
Reply With Quote
  #381   Link to this post, but load the entire thread.  
Old March 31st, 2009 (2:46 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
Quote:
Originally Posted by 0m3GA ARS3NAL View Post
Well... I have not seen this tutorial in a long while.
But I gotta say, it is quite out of date, PokeScript is flawed, and should not be used anymore.
Don't get me wrong, this is probably the most extensive guide on here for scripting, but it is just out of date.
(I would know that it is probably the best scripting tutorial on here, because this is the only tutorial I have ever read, that made sense, this tutorial got my scripting knowledge started.)
it may be out of date, but it's still useful, for this tutorials helps me to know what codes to use for an event I would like to have, and I just have to convert it to XSE style.
it's not really a big problem, though...
but I respect your opinion, though. :)
and I agree that this tutorial is very easy to understand.

Quote:
Originally Posted by kaspey View Post
help i tried to make movement to this girl and then the whole game froze heeeeeeeeeeelp:(
post your script in the Script Help Thread for ROM modders/hackers to help see what's the problem.
Remember to follow the format of how to post your script there on the first page.

Quote:
Originally Posted by onyx79 View Post
hmmm about the wild battle script,do I need to copy all of this code?how can I change chrizard to a lapras?how can I put this on advanced map?is that works with pksvui?
thethethethe explained how to do that.
in a wild battle script, just change the PKMN hex code to the one you want to battle.

or by 'Charizard to Lapras', do you mean the title screen of FireRed?
if so, then this is the wrong thread to ask.
__________________

Reply With Quote
  #382   Link to this post, but load the entire thread.  
Old April 3rd, 2009 (5:05 AM).
olidude's Avatar
olidude olidude is offline
Pokemon Zirco- Wanna Join? ;)
 
Join Date: Aug 2008
Location: Denmark
Gender:
Nature: Bold
Posts: 35
Thethethethe your good I will maybe use some of your scripts for my hack
Reply With Quote
  #383   Link to this post, but load the entire thread.  
Old April 4th, 2009 (10:39 PM).
hinsburg's Avatar
hinsburg hinsburg is offline
Confused
 
Join Date: Apr 2009
Location: Ostrich Land
Gender:
Nature: Quirky
Posts: 16
Wow, that's really helpful. I'll see how much I can figure out without my brain exploding.
__________________
Currently exploring the program "Gold Map". http://www.youtube.com/watch?v=4_OOFMAKiBM
Reply With Quote
  #384   Link to this post, but load the entire thread.  
Old April 12th, 2009 (9:24 AM).
kevcrash's Avatar
kevcrash kevcrash is offline
 
Join Date: Mar 2009
Location: Maryland
Age: 27
Gender: Male
Nature: Relaxed
Posts: 1,071
This will be very useful for me and my hack since I'm pretty new to the whole thing, thanks! You gave the most detailed yet simple thread. By simple I mean you explain the things in a form where most people can understand and it's not too high technological...
^_^
__________________

Reply With Quote
  #385   Link to this post, but load the entire thread.  
Old April 23rd, 2009 (7:50 AM).
kaka1918 kaka1918 is offline
sorry im bad in english
 
Join Date: Apr 2009
Location: algeria
Gender:
Nature: Calm
Posts: 27
yes is very good tutoriel I can take it to make it in my site with a French translation (with credit ) your please
Reply With Quote
  #386   Link to this post, but load the entire thread.  
Old May 31st, 2009 (6:20 PM).
Da GaMeFrEaK's Avatar
Da GaMeFrEaK Da GaMeFrEaK is offline
Farmer/Swordsman
 
Join Date: Nov 2007
Location: various places
Age: 28
Gender: Male
Nature: Jolly
Posts: 18
Is there some kind of formula or table that would explain how to convert numbers to hex? I'm trying to convert 2000 to hex, but I really don't know if I didn't read the tutorial well enough and I missed something, or if this is really complicated math. I have a feeling that I'm going to convert more numbers. thethethethe explained that 500 equaled 0x1F4. How did he get that?
Reply With Quote
  #387   Link to this post, but load the entire thread.  
Old June 1st, 2009 (12:48 AM).
Excalibur's Avatar
Excalibur Excalibur is offline
Sorry for my english...
 
Join Date: Nov 2008
Age: 30
Gender: Male
Nature: Lonely
Posts: 19
Tazman, you can use windows calculator advanced mode. just write a number in dec and then choose hex. the number will be converted into hex.
Reply With Quote
  #388   Link to this post, but load the entire thread.  
Old June 1st, 2009 (8:25 AM).
Da GaMeFrEaK's Avatar
Da GaMeFrEaK Da GaMeFrEaK is offline
Farmer/Swordsman
 
Join Date: Nov 2007
Location: various places
Age: 28
Gender: Male
Nature: Jolly
Posts: 18
Huh...I didn't know windows calculator could do that. Thanks a lot!
Reply With Quote
  #389   Link to this post, but load the entire thread.  
Old June 14th, 2009 (4:53 PM).
Sky the Shaym's Avatar
Sky the Shaym Sky the Shaym is offline
Sky the Shaymin, NOT Shaym
 
Join Date: Jun 2009
Gender: Male
Nature: Modest
Posts: 12
I tried using some of the scripts and i noticed i need to use the hex values of pokemon, not the pokedex numbers... Can someone tell me the hex values of pokemon for XSE?
Reply With Quote
  #390   Link to this post, but load the entire thread.  
Old June 14th, 2009 (9:53 PM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL 0m3GA ARS3NAL is offline
Im comin' home...
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 30
Gender: Male
Nature: Gentle
Posts: 1,816
Quote:
Originally Posted by Sky the Shaym View Post
I tried using some of the scripts and i noticed i need to use the hex values of pokemon, not the pokedex numbers... Can someone tell me the hex values of pokemon for XSE?
The HEX values of the pokemon COME WITH XSE.
Please look in the folder where you saved XSE, and open the file called, stdpoke.rbh
That File, when opened in XSE or any other text editor, will show every single hex value for the pokemon.
__________________
>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
  #391   Link to this post, but load the entire thread.  
Old June 15th, 2009 (12:21 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by Tazman View Post
Huh...I didn't know windows calculator could do that. Thanks a lot!
XSE has an integrated calc, too.


Quote:
Originally Posted by 0m3GA ARS3NAL View Post
The HEX values of the pokemon COME WITH XSE.
Please look in the folder where you saved XSE, and open the file called, stdpoke.rbh
That File, when opened in XSE or any other text editor, will show every single hex value for the pokemon.
Yeah. And besides... you don't even need to know the hex values at all:

Code:
#dynamic 0x800000
#include stdpoke.rbh

#org @start
givepokemon PKMN_PIKACHU 0x5 0x0 0x0 0x0 0x0
end
__________________
Reply With Quote
  #392   Link to this post, but load the entire thread.  
Old June 19th, 2009 (7:08 AM).
Sky the Shaym's Avatar
Sky the Shaym Sky the Shaym is offline
Sky the Shaymin, NOT Shaym
 
Join Date: Jun 2009
Gender: Male
Nature: Modest
Posts: 12
Quote:
Originally Posted by 0m3GA ARS3NAL View Post
The HEX values of the pokemon COME WITH XSE.
Please look in the folder where you saved XSE, and open the file called, stdpoke.rbh
That File, when opened in XSE or any other text editor, will show every single hex value for the pokemon.
thanks a lot! That really helped me!
Reply With Quote
  #393   Link to this post, but load the entire thread.  
Old June 20th, 2009 (12:10 PM).
ShinyBlaziken's Avatar
ShinyBlaziken ShinyBlaziken is offline
Dragon-Master
 
Join Date: May 2009
Location: Pokemon League :P
Gender: Male
Nature: Adamant
Posts: 66
I don't know why but I always get an error Message with the "message" thing.
And it says that "boxset" doesn't exist!?!

What's wrong with my XSE?
Reply With Quote
  #394   Link to this post, but load the entire thread.  
Old June 20th, 2009 (12:13 PM).
Logan's Avatar
Logan Logan is offline
 
Join Date: Nov 2008
Location: Salisbury, England
Age: 28
Gender: Male
Nature: Sassy
Posts: 10,414
You need to use the command msgbox and not boxset.
__________________
Reply With Quote
  #395   Link to this post, but load the entire thread.  
Old June 20th, 2009 (1:54 PM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by ShinyBlaziken View Post
I don't know why but I always get an error Message with the "message" thing.
And it says that "boxset" doesn't exist!?!

What's wrong with my XSE?
Nothing. Basically boxset is outdated and not needed any more. Message/msgbox is all you need. Check the Command Help and read the guide too.
__________________
Reply With Quote
  #396   Link to this post, but load the entire thread.  
Old June 24th, 2009 (8:56 AM).
GoldDraK GoldDraK is offline
 
Join Date: Jun 2009
Gender: Male
Posts: 1
hello i'm a newbie and i wrote a script but it doesn't work when i step on it the game freezes

Quote:
#org $begin
lock
checkflag 0x828
if b_true goto $done
message $1
boxset 6
applymovement 0xFF $move
pausemove 0x0
applymovement 0x03 $move1
pausemove 0x0
message $2
boxset 6
applymovement 0x03 $move2
applymovement 0xFF $move3
pausemove 0x0
setflag 0x828
release
end

#org $done
release
end

#org $1
$1 1 =OAK: Hey wait!\nDon't go out there!

#org $move
#raw 0x56 0xFE

#org $move1
#raw 0x55 0x05 0x06 0x05 0x06 0x05 0xFE

#org $2
$2 1 =OAK: It's unsafe!\nWild POKéMON live in tall grass!\p You need your own POKéMON for your\nprotection.\lI know!\pHere, come with me!

#org $move2
#raw 0x04 0x04 0x04 0x04 0x04 0x06 0x04 0x04 0x04 0x04 0x04 0x07 0x07 0x07 0x05 0x54 0xFE

#org $move3
#raw 0x04 0x04 0x04 0x04 0x04 0x04 0x06 0x04 0x04 0x04 0x04 0x04 0x07 0x07 0x07 0x05 0xFE
Reply With Quote
  #397   Link to this post, but load the entire thread.  
Old June 28th, 2009 (6:52 PM). Edited June 28th, 2009 by defdef2.
defdef2 defdef2 is offline
Pokemon Master
 
Join Date: Nov 2007
Gender:
Posts: 9
this is the best tut ever!!!

i just made my first script
Reply With Quote
  #398   Link to this post, but load the entire thread.  
Old June 30th, 2009 (4:37 PM).
007landon 007landon is offline
 
Join Date: Jun 2009
Gender: Male
Posts: 2
hey could some one help me?Im having a slight (major) problem with the wild pkmn battle script.I entered my offset onto the sprite i used the male hero sprite to represent the wild pkmn battle with a charizard.SO i tested it.I talked to the male hero it said Charizard-GRRR what i had as my message but then the screen faded out for a millisecond and then came back to normal.I heard a you got an item jingle,the sprite disappears,and when you walk 2 steps it re-appears and replays the whole thing if ou talk to it.I really find that weird!If you want a video on youtube to be posted or screenies id be glad to post them.Please help:(
Reply With Quote
  #399   Link to this post, but load the entire thread.  
Old July 2nd, 2009 (7:04 AM).
trist79 trist79 is offline
 
Join Date: May 2008
Posts: 4
Great tutorial! I can't seem to get my computer to compile the scripts but I already reinstalled the program. Got any suggestions?
Reply With Quote
  #400   Link to this post, but load the entire thread.  
Old July 6th, 2009 (11:07 AM). Edited July 8th, 2009 by ProClifo.
ProClifo's Avatar
ProClifo ProClifo is offline
The Village Pirate Cat
 
Join Date: Sep 2008
Location: Norway
Age: 26
Gender: Male
Nature: Lonely
Posts: 88
I have a prob too. I made Celebi wild Pokemon script in Viridian Forest, and thanks for the flag numbers, by the way. It dissapears normally when you kill it or run away from it. But when I catch it, it won't dissapear! Can someone help me and tell what to do? :\
ANSWER PLEASE!
__________________
Click to visit Jiggmin's Village
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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 GMT -8. The time now is 9:06 AM.