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
  #251   Link to this post, but load the entire thread.  
Old July 20th, 2008 (7:47 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by roywillow View Post
Well, I think I'd better ask here. Posting message isn't convenient.
The people ID, also a kind of flag. So how many of them have been used in the game? If I put some people on the map, what IDs can I give them?
Well the available amount is the flags that are available.
I don't think you understand the point of the people id. There only use is to allow NPC's to disappear. If they don't disappear, they have there people id as 0000.
__________________
Gone.
Reply With Quote
  #252   Link to this post, but load the entire thread.  
Old July 20th, 2008 (7:47 PM).
[HoN] Jereziah's Avatar
[HoN] Jereziah [HoN] Jereziah is offline
Till DEATH do us part!
 
Join Date: Mar 2008
Location: Destiny Island
Age: 27
Gender: Male
Nature: Brave
Posts: 651
Wow!
This is a great scripting tuts...thankies for this
__________________
[simple-spoil="League of Legends"]If you wanna play LoL click:
https://signup.leagueoflegends.com/?ref=4bf10adbb6c1a[/simple-spoil]
^^^^^^
Play this game, if you like DotA.

Reply With Quote
  #253   Link to this post, but load the entire thread.  
Old July 22nd, 2008 (8:23 PM).
roywillow's Avatar
roywillow roywillow is offline
 
Join Date: Feb 2008
Location: Shandong China
Gender:
Posts: 39
Well, I wonder if thethethethe knows how to get the trainer info by hex editor? I cant use tools for I'm hacking a Chinese FR. I've almost found most of the info, but some are still unknown.

I find the trainer by searching his name. befor the name, there are four(or 3 maybe)bytes. I think they are the trainer class info, but I don't have any list of the class byte. So do you have any?

After it, there are a lot of 00, and in them, a 01 and 02(or 03) appears. What do they mean?
__________________
http://poketb.com/bbs/images/logo.gif
Reply With Quote
  #254   Link to this post, but load the entire thread.  
Old July 22nd, 2008 (10:50 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by roywillow View Post
Well, I wonder if thethethethe knows how to get the trainer info by hex editor? I cant use tools for I'm hacking a Chinese FR. I've almost found most of the info, but some are still unknown.

I find the trainer by searching his name. befor the name, there are four(or 3 maybe)bytes. I think they are the trainer class info, but I don't have any list of the class byte. So do you have any?

After it, there are a lot of 00, and in them, a 01 and 02(or 03) appears. What do they mean?
Why are you asking about this here? You can pm me about that.
It really doesn't have too much to do with this scripting thread.
__________________
Gone.
Reply With Quote
  #255   Link to this post, but load the entire thread.  
Old July 23rd, 2008 (12:24 AM).
roywillow's Avatar
roywillow roywillow is offline
 
Join Date: Feb 2008
Location: Shandong China
Gender:
Posts: 39
Ah...I just think you mentioned PET No in trainerbattle and PET doesn't work here.So...
Sorry for that
__________________
http://poketb.com/bbs/images/logo.gif
Reply With Quote
  #256   Link to this post, but load the entire thread.  
Old July 24th, 2008 (12:31 AM).
mhayquel mhayquel is offline
 
Join Date: May 2008
Gender:
Posts: 5
elow,,,is there someone can give me the legendary battle script for pokemon firered?
Reply With Quote
  #257   Link to this post, but load the entire thread.  
Old July 27th, 2008 (12:52 AM).
pokemon_hacking's Avatar
pokemon_hacking pokemon_hacking is offline
blah_maker
 
Join Date: Jul 2008
Gender: Male
Nature: Lonely
Posts: 24
thethethethe i wondering if u can tell me how to contiue a script after u have warped

eample
Spoiler:
#ORG $start
lock
faceplayer
message $talk
boxset 6
goto $movement1
release
end

#ORG $talk
$talk 1 = \c\h01\h04hey wats that
overthere

#org $movement1
lock
faceplayer
message $hi
boxset 0x6
applymovement 0x06 $move
pausemove 0x0
applymovement 0xFF $move2
pause 0x30
applymovement 0xFF $move3
applymovement 0x06 $move3
pausemove 0
applymovement 0xFF $move4
pausemove 0
goto $warp
release
end

#ORG $hi
$hi 1 = \c\h01\h04 raaaa!
#org $move
#raw 0x0B 0x54 0xFE

#org $move2
#raw 0x06 0xFE

#org $move3
#raw 0x55 0xFE

#org $move4
#raw 0x49 0xFE

#org $warp
message $bed
boxset 6
warp 0x1 0x1 0x0
goto $giveitem
end

#org $bed
$bed 1 =going to your bedroom\nsee ya.

#org $giveitem
giveitem 13 5
release
end
__________________
making hacks by yourself is :( but oh well
Reply With Quote
  #258   Link to this post, but load the entire thread.  
Old July 27th, 2008 (8:43 AM).
flash boy's Avatar
flash boy flash boy is offline
Hacking since 2006
 
Join Date: Jan 2006
Location: Mars.
Gender: Male
Nature: Relaxed
Posts: 146
I think a script ends after a warp so there is really no way :\
Reply With Quote
  #259   Link to this post, but load the entire thread.  
Old July 27th, 2008 (7:47 PM).
pokemon_hacking's Avatar
pokemon_hacking pokemon_hacking is offline
blah_maker
 
Join Date: Jul 2008
Gender: Male
Nature: Lonely
Posts: 24
yer there is like in firered for the profeser
__________________
making hacks by yourself is :( but oh well
Reply With Quote
  #260   Link to this post, but load the entire thread.  
Old July 27th, 2008 (11:20 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by pokemon_hacking View Post
yer there is like in firered for the profeser
No there isn't. There is no a way for a script to continue after a warp.
That event is actually two scripts. Seamless, huh?
One is a normal event script in Pallet Town, in which Oak takes you back to the lab, and the second is a level script in Prof Oak's lab, which involves the conservation with Gary. They work together so well it seems like there is only one script.
__________________
Gone.
Reply With Quote
  #261   Link to this post, but load the entire thread.  
Old July 28th, 2008 (12:03 AM).
pokemon_hacking's Avatar
pokemon_hacking pokemon_hacking is offline
blah_maker
 
Join Date: Jul 2008
Gender: Male
Nature: Lonely
Posts: 24
so how do u do it then please reply
__________________
making hacks by yourself is :( but oh well
Reply With Quote
  #262   Link to this post, but load the entire thread.  
Old July 28th, 2008 (12:00 PM).
hi sir tomato my password is syvniti's Avatar
hi sir tomato my password is syvniti hi sir tomato my password is syvniti is offline
gggggggggggggggggg
 
Join Date: Jan 2007
Location: My user name _ asciii_ +&h1!" lulz
Posts: 581
Quote:
Originally Posted by pokemon_hacking View Post
so how do u do it then please reply
Hi, read this: http://www.pokecommunity.com/showthread.php?t=141650
It'll eksplain the level scripts...
__________________
THE CAKE IS A LIE!!!!!!!!!!!!!!!!!!!!!!!
Reply With Quote
  #263   Link to this post, but load the entire thread.  
Old July 30th, 2008 (8:58 AM). Edited July 30th, 2008 by alexk1995.
alexk1995's Avatar
alexk1995 alexk1995 is offline
 
Join Date: Jul 2008
Location: in a bucket
Age: 27
Gender:
Nature: Modest
Posts: 33
really good tutorial and keep up the good ork with legend of dragons

awsome tutorails and keep up the awsome work
__________________
+rep if you love unicorns
:pirate:
Reply With Quote
  #264   Link to this post, but load the entire thread.  
Old July 30th, 2008 (10:05 AM).
joeprice joeprice is offline
 
Join Date: Jul 2008
Gender:
Posts: 3
Very good tutorial for beginners, thanks a lot. I was wondering how to change/create scripts for lifts, for example right now i'm trying to get the lift in the rocket hideout to work without the lift key and also go to some new maps, can anyone tell me how to do that? Also im having a problem with my three starters, if you choose to give the pokemon a nickname the small picture and name of the pokemon are replaced by a picture of a ? and a lot of ????s where the name should be. Does anyone know how to fix this?
Thanks.
Reply With Quote
  #265   Link to this post, but load the entire thread.  
Old July 31st, 2008 (4:03 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by joeprice View Post
Very good tutorial for beginners, thanks a lot. I was wondering how to change/create scripts for lifts, for example right now i'm trying to get the lift in the rocket hideout to work without the lift key and also go to some new maps, can anyone tell me how to do that? Also im having a problem with my three starters, if you choose to give the pokemon a nickname the small picture and name of the pokemon are replaced by a picture of a ? and a lot of ????s where the name should be. Does anyone know how to fix this?
Thanks.
I've got another scripting tutorial that covers elevators. go to google and search for "pkmnhackersonline". I've got an older scripting tutorial there that covers them.
As for the starters. If you've still got the call 0x[I can't remember pointer off the top of my head], for the namepokemon to do this.
Code:
...
...   'Rest of script
message $1    'Would you like to name \v\h02?
boxset 0x5
compare 0x800D 0x1
if 0x1 gosub $namer
...
..
...  'Rest

#org $namer
setvar 0x8004 0x0   'For first Pokemon
call 0xYYYYYY
return
__________________
Gone.
Reply With Quote
  #266   Link to this post, but load the entire thread.  
Old August 4th, 2008 (3:53 PM).
sasuketrooper's Avatar
sasuketrooper sasuketrooper is offline
 
Join Date: Jun 2008
Location: no where but every where
Gender:
Nature: Brave
Posts: 5
what do we do with the scrpit when we're done with it, and could you see if this script is right?
#org $start
lock
faceplayer
message $10
boxset 4
#raw 0x68
fadescreen 0x0
fanfare 0x100
special 0x16F
waitfanfare
fadescreen 0x0
message $11
boxset 6
release
end
#org $10
$10 1 =you need the National Dex.\
#org $11
$11 1 =There you go.\
__________________
§a§µk€±r۞۞þ€r



Click here to feed me a Rare Candy!
Get your own at Pokeplushies!


Reply With Quote
  #267   Link to this post, but load the entire thread.  
Old August 7th, 2008 (6:01 AM). Edited August 7th, 2008 by kotasu.
kotasu kotasu is offline
Dumbass
 
Join Date: Jul 2007
Location: Im a box
Age: 28
Gender:
Nature: Brave
Posts: 5
Where can I find the HEX numbers for the Pokemon?
(I need Chikorita, Totodile and Cyndaquil)
Reply With Quote
  #268   Link to this post, but load the entire thread.  
Old August 9th, 2008 (8:03 PM).
EvanMiesterX's Avatar
EvanMiesterX EvanMiesterX is offline
^If that's my real name!
 
Join Date: Aug 2007
Location: Press Alt and F4 to find out.
Age: 27
Gender:
Nature: Docile
Posts: 92
Well, I'm a beginning scripter, in fact, this is my first script, and for some reason it won't work... any help?

Spoiler:
Code:
#org $begin
lock
message $WeirdRock
$WeirdRock 1 =There's a strange marking\n on this rock that looks like\l a hand. Do you want to put\l your hand on the marking?
boxset 5
compare LASTRESULT WeirdRock
if WeirdRock goto $yes
message $no
$no 1 =You stepped away from the rock.
boxset 6
release
end

#org $yes
=You touch the rock, and every-\lthing starts to fade away...
boxset 6
warp 0x26 0x13 0x0
release
end


It's supposed to make it so when you press "A" on the rock, the game will ask you if you want to put your hand on the strange marking on it. If you say no, it should say you Stepped away from the rock. If you say yes, it should say You touch the rock, and everything starts to fade away, then you warp to a mysteriouos island. The problem is, it says "You stepped away from the rock." if you press yes or no. Any help is appreciated.
__________________

FREE SHINIES HERE!


Press W while holding the Control Button to go to my thread of free shinies and events!

^^^This trainer card was made by me! PM me if you want me to make you a trainer card!^^^
Reply With Quote
  #269   Link to this post, but load the entire thread.  
Old August 9th, 2008 (9:11 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
If you want to make a good hack, then you should try using poketScript. I think Irish Witch has a link to download the program and other people have tutorials for it. I'd give it to ya but I don't know how to make links...sorry(I'm new to the quoting thing). Anyways, PoketScript is a really good Scripting program. All you have to do now is learn the script language, which Irish Witch teaches you in her tutorial.
Reply With Quote
  #270   Link to this post, but load the entire thread.  
Old August 10th, 2008 (10:42 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by Hermes View Post
I said this quite a while ago, this is the most useful tutorial on the entire PokéCommunity (more useful than any ASM, palette editing, mapping, and other tutorials that I've ever seen).

I've never done much scripting in the long time that I've been hacking, but this should help me out a lot.

Thank you so much for writing this tutorial, this is where I'll find everything.
Thanks Hermes/Esmas.
Quote:
Originally Posted by EvanMiesterX View Post
Well, I'm a beginning scripter, in fact, this is my first script, and for some reason it won't work... any help?

Spoiler:
Code:
#org $begin
lock
message $WeirdRock
$WeirdRock 1 =There's a strange marking\n on this rock that looks like\l a hand. Do you want to put\l your hand on the marking?
boxset 5
compare LASTRESULT WeirdRock
if WeirdRock goto $yes
message $no
$no 1 =You stepped away from the rock.
boxset 6
release
end

#org $yes
=You touch the rock, and every-\lthing starts to fade away...
boxset 6
warp 0x26 0x13 0x0
release
end


It's supposed to make it so when you press "A" on the rock, the game will ask you if you want to put your hand on the strange marking on it. If you say no, it should say you Stepped away from the rock. If you say yes, it should say You touch the rock, and everything starts to fade away, then you warp to a mysteriouos island. The problem is, it says "You stepped away from the rock." if you press yes or no. Any help is appreciated.
Well you could start by reading this tutorial, and that could help. You seem to have just guessed about a lot of the layout of the scripting.

Code:
compare LASTRESULT WeirdRock
if WeirdRock goto $yes
Weirdrock? Try 0x1.
There's more there, I just chose to pick out this one little thing.

Quote:
Originally Posted by Tazman View Post
If you want to make a good hack, then you should try using poketScript. I think Irish Witch has a link to download the program and other people have tutorials for it. I'd give it to ya but I don't know how to make links...sorry(I'm new to the quoting thing). Anyways, PoketScript is a really good Scripting program. All you have to do now is learn the script language, which Irish Witch teaches you in her tutorial.
What are you talking about? And who are you saying this to?
Do you understand this tutorial is for Pokescript?
You should try reading, it's a pretty handy skill.
__________________
Gone.
Reply With Quote
  #271   Link to this post, but load the entire thread.  
Old August 11th, 2008 (1:07 AM).
*Poliwag*'s Avatar
*Poliwag* *Poliwag* is offline
PollyWaggle
 
Join Date: Sep 2007
Location: In a pond, Violet City
Gender:
Nature: Hasty
Posts: 23
Does anyone know the special for the animation of the pokeballs flashing at the pokemon centre? (When nurse joy takes them and they are healed etc.)
Reply With Quote
  #272   Link to this post, but load the entire thread.  
Old August 13th, 2008 (1:55 AM).
roywillow's Avatar
roywillow roywillow is offline
 
Join Date: Feb 2008
Location: Shandong China
Gender:
Posts: 39
In the part Applymovement, what are the var number and var value in the picture in the spoiler used for? It puzzles me a lot...

And are there any free vars(vars haven't been used in the game) that I can use during hacking?
__________________
http://poketb.com/bbs/images/logo.gif
Reply With Quote
  #273   Link to this post, but load the entire thread.  
Old August 13th, 2008 (11:16 AM).
Trodx's Avatar
Trodx Trodx is offline
That Guy Behind You
 
Join Date: Jul 2007
Gender: Male
Nature: Lax
Posts: 26
Quote:
#dynamic 0x165A6B
#org 0x165A6B
lock
faceplayer
msgbox @statement
boxset 0x6
checkflag 0x827
if b_true goto @pass
if b_false goto @sry
release
end

#org @pass
msgbox @1
boxset 0x6
applymovement 0x02 @dude
pause 0x0
release
end

#org @sry
msgbox @2
boxset 0x6
release
end

'---------
' Strings
'---------
#org @statement
= The path ahead is very dangerous.

#org @pass
= Is that the symbol of Lance\n the dragon master?\lIf you have earned his respect,\lyou are certainly strong enough\l to pass.

#org @sry
= I can see it in your eyes.\nYou wouldn't last a few minutes\l out there. I can't let you pass.

#org @dude
#raw 0x11 0x12 0xFE
I keep getting a repeated line error but that shouldnt happen in this script. Any ideas?
__________________

Working On:
Pokemon Legends: The Resistance
Reply With Quote
  #274   Link to this post, but load the entire thread.  
Old August 14th, 2008 (2:19 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by *Poliwag* View Post
Does anyone know the special for the animation of the pokeballs flashing at the pokemon centre? (When nurse joy takes them and they are healed etc.)
Why don't you just decompile the script?

Quote:
Originally Posted by roywillow View Post
In the part Applymovement, what are the var number and var value in the picture in the spoiler used for? It puzzles me a lot...

And are there any free vars(vars haven't been used in the game) that I can use during hacking?
hey don't actually have to be free. You can use the same one over and over and over and over, etc.

Quote:
Originally Posted by Trodx View Post
I keep getting a repeated line error but that shouldnt happen in this script. Any ideas?
Dude, XSE is not Pokescript.
Use the script help thread.
__________________
Gone.
Reply With Quote
  #275   Link to this post, but load the entire thread.  
Old August 14th, 2008 (3:02 AM).
Master_Track's Avatar
Master_Track Master_Track is offline
ROM Reaverz Scripter
 
Join Date: Mar 2008
Location: Austria
Age: 30
Gender:
Nature: Brave
Posts: 916
Hey thex4, it's your tutorial that made a scripter out of me ^^
I was just wondering if you may add the mulit command as well?
I think I know the sctructure, the main problem is that I don't have a list of the list's IDs.
Do you have one?
And is it possible to change a list by using thingy or Advance Text? Cause I really need my own multiple choice boxes.
hope ya can help
greez
M_T
__________________

*Busy with school*

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