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
  #326   Link to this post, but load the entire thread.  
Old October 19th, 2008 (7:54 AM).
Hiche.. Hiche.. is offline
 
 
Join Date: Apr 2008
Posts: 979
Quote:
Originally Posted by Dark Swellow View Post
- Pushed follow.$start to 0
- Adjusting follow.$follow in 0 at 800001D
- Adjusting follow.$walk in 0 at 8000042
- Adjusting follow.$walkplayer in 0 at 800004D

$start is at 0? o.o Still doesn't work I guess.
Spoiler:

#org $begin
lock
faceplayer
message $follow
boxset 6
applymovement 0x01 $walk
applymovement 0xFF $walkplayer
pausemove 0
release
end

#org $follow
$follow 1 = \v\h01!\pThere you are!\nPlease follow me.

#org $walk
#raw 13
#raw 13
#raw 13
#raw 13
#raw 13
#raw 13
#raw 11
#raw 11
#raw 11
#raw 11
#raw FE

#org $walkplayer
#raw 10
#raw 13
#raw 13
#raw 13
#raw 13
#raw 13
#raw 13
#raw 11
#raw 11
#raw 11
#raw 11
#raw FE


Try this.
Reply With Quote
  #327   Link to this post, but load the entire thread.  
Old October 19th, 2008 (12:02 PM).
Pheya's Avatar
Pheya Pheya is offline
Is very excited about HH & SS.
 
Join Date: Apr 2008
Gender:
Posts: 80
It still compiles to 0. :[
Reply With Quote
  #328   Link to this post, but load the entire thread.  
Old October 25th, 2008 (8:28 PM).
>JAVS<'s Avatar
>JAVS< >JAVS< is offline
Ahmm.. Updating me in PC :D!
 
Join Date: Jun 2008
Location: México
Gender: Male
Posts: 10
Hello...!
Uh... The ASM Script doesn't works...
I've put the Script in a MiniSprite and when I talk with the people, the game restarts...
I hope you'll repair the ASM Script.
Reply With Quote
  #329   Link to this post, but load the entire thread.  
Old October 25th, 2008 (9:48 PM).
Νιτραμ Νιτραμ is offline
 
Join Date: Nov 2007
Posts: 230
Hello.

I would just recommend using XSE instead of PokéScript. You see that there is a problem you can not resolve, in XSE, such problems do not exist at all. This guide won't be completely compatible for it, but you can use it as command reference.
__________________
If you remeber me, feel free to send me a PM ;-)
Reply With Quote
  #330   Link to this post, but load the entire thread.  
Old October 25th, 2008 (9:57 PM).
CR0SELL CR0SELL is offline
Banned
 
Join Date: Oct 2008
Gender:
Posts: 8
Quote:
Originally Posted by Martin™ View Post
Hello.

I would just recommend using XSE instead of PokéScript. You see that there is a problem you can not resolve, in XSE, such problems do not exist at all. This guide won't be completely compatible for it, but you can use it as command reference.
Umm, why did you post this? This is Flaming(or would it be spam). Nice Tut Thethethethe, I just inserted my first script xD
Reply With Quote
  #331   Link to this post, but load the entire thread.  
Old October 26th, 2008 (12:20 AM).
-DarK- -DarK- is offline
 
Join Date: Jun 2007
Location: Belgium
Age: 30
Gender: Male
Nature: Serious
Posts: 185
Quote:
Originally Posted by CR0SELL View Post
Umm, why did you post this? This is Flaming(or would it be spam). Nice Tut Thethethethe, I just inserted my first script xD
That's not really flaming, it's a suggestion. XSE is the newest and best script editor/compiler/decompiler availlable, and pokescript has many bugs and errors. The tut itself is cool, since alot of those commands work in XSE as well, but... Well, you should get the point now, I guess :)
Reply With Quote
  #332   Link to this post, but load the entire thread.  
Old October 26th, 2008 (3:45 PM).
Wesley FG's Avatar
Wesley FG Wesley FG is offline
Pokémon Kalos Advance !! Gba Hack
 
Join Date: Oct 2008
Location: Brazil
Gender: Male
Nature: Modest
Posts: 338
I went to give you the congratulations, thethethe, since I use this tutorial you eat going to be hackers, very comprehensive, Great Tuto OMG
Reply With Quote
  #333   Link to this post, but load the entire thread.  
Old October 26th, 2008 (4:51 PM).
Kingdomhearts2luv3r Kingdomhearts2luv3r is offline
 
Join Date: Oct 2008
Gender:
Posts: 26
Hmm...intersting. 1 question though- does anyone have link that will ACTUALLY help download PokeScript? I tried a bunch of them. They either didn't work, or didn't load PokeScript.
Reply With Quote
  #334   Link to this post, but load the entire thread.  
Old October 27th, 2008 (4:02 PM).
joshuathomas2k7 joshuathomas2k7 is offline
 
Join Date: Nov 2007
Gender:
Posts: 2
Thanks thethethe for this tutorial:)
Reply With Quote
  #335   Link to this post, but load the entire thread.  
Old October 29th, 2008 (9:09 PM).
Wesley FG's Avatar
Wesley FG Wesley FG is offline
Pokémon Kalos Advance !! Gba Hack
 
Join Date: Oct 2008
Location: Brazil
Gender: Male
Nature: Modest
Posts: 338
doing some scripts when I came a doubt, what to do and control the animation of the fly pass on the screen?
Reply With Quote
  #336   Link to this post, but load the entire thread.  
Old November 1st, 2008 (12:32 AM).
riyza's Avatar
riyza riyza is offline
Just another Trainer
 
Join Date: Aug 2008
Age: 27
Gender:
Nature: Calm
Posts: 9
will the givepokemon script work on pokemon emerald?
__________________





Reply With Quote
  #337   Link to this post, but load the entire thread.  
Old November 2nd, 2008 (5:47 AM).
Blaine's Best Student's Avatar
Blaine's Best Student Blaine's Best Student is offline
Elite 4 Member
 
Join Date: Sep 2008
Location: Cinnabar Island
Gender:
Nature: Brave
Posts: 18
Hey Thethethethe, I read your scripting tut and found out how to make the pokedex at the beginning the national, but mine wont save, can you tell me why? please?
__________________
This signature has been disabled.
83 pixels too tall.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
Reply With Quote
  #338   Link to this post, but load the entire thread.  
Old November 3rd, 2008 (3:03 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by riyza View Post
will the givepokemon script work on pokemon emerald?
Yes.

Quote:
Originally Posted by Blaine's Best Student View Post
Hey Thethethethe, I read your scripting tut and found out how to make the pokedex at the beginning the national, but mine wont save, can you tell me why? please?
What do you mean by it won't save? You don't 'save' a script in the ROM. You need to compile it to the ROM.
__________________
Gone.
Reply With Quote
  #339   Link to this post, but load the entire thread.  
Old November 3rd, 2008 (5:32 PM).
lordtomato lordtomato is offline
 
Join Date: Oct 2008
Location: In the dark corners of the mind.
Gender:
Nature: Lonely
Posts: 13
hi. a freind and i have been planning to learn how to use pokescript. However, I cannot for the life of me figure out how to go from script->game.

Order of events:
1. type up script in notepad
2. save as .rbc
3. open pksvui
4. open rom FR
5. open script
6. do something?
7. go to advance map and change the offset of a preexisting script
8. test and enjoy :D

I've looked at IW's tutorial, but could not find a "burn" button, or a right click compile
Perhaps I misinstalled pksvui?

also, is there any way to add OWs to a map?
Thanks.
Reply With Quote
  #340   Link to this post, but load the entire thread.  
Old November 3rd, 2008 (5:54 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by lordtomato View Post
hi. a freind and i have been planning to learn how to use pokescript. However, I cannot for the life of me figure out how to go from script->game.

Order of events:
1. type up script in notepad
2. save as .rbc
3. open pksvui
4. open rom FR
5. open script
6. do something?
7. go to advance map and change the offset of a preexisting script
8. test and enjoy :D

I've looked at IW's tutorial, but could not find a "burn" button, or a right click compile
Perhaps I misinstalled pksvui?

also, is there any way to add OWs to a map?
Thanks.
First off you get Pokescript.

Pksv is the tool that you're trying to use. Completely different tool = Completely different processes.
__________________
Gone.
Reply With Quote
  #341   Link to this post, but load the entire thread.  
Old November 3rd, 2008 (7:46 PM).
lordtomato lordtomato is offline
 
Join Date: Oct 2008
Location: In the dark corners of the mind.
Gender:
Nature: Lonely
Posts: 13
ah. stupid meh. thank yous.
Reply With Quote
  #342   Link to this post, but load the entire thread.  
Old November 5th, 2008 (4:19 PM).
Liquid Shadow Liquid Shadow is offline
xD
 
Join Date: Mar 2008
Gender:
Posts: 224
Hey, I've been following this tutorial and other pokescript ones for a while now, and I'm starting to understand all this. However, one thing I don't get. I made an applymovement script and what the sprite to disappear. The people no. of the sprite is 5. I don't understand how I reverse that. I tried putting #raw 0x53 0x05 0x00, but it doesn't work. After fadescreen, the sprite is still there. I think I reversed it wrong or something. I don't get how people no. 4 is #raw 53 0x04 0x00 and people no. 12 is 0x0C 0x00. How is C even there?

Here is my script, just for reference:
Spoiler:
#org $start
checkflag 0x299
if b_true goto $done
message $1
boxset 6
applymovement 0x05 $move
pausemove 0x0
applymovement 0xFF $move2
pause 0x30
message $2
boxset 6
applymovement 0x05 $move3
applymovement 0xFF $move3
pausemove 0
goto $disappear
setflag 0x299
release
end

#org $done
release
end

#org $disappear
fadescreen 0
#raw 0x53 0x05 0x00
setflag 0x299

#org $move
#raw 0x05 0x05 0x05 0x05 0xFE

#org $move2
#raw 0x00 0xFE

#org $move3
#raw 0x04 0x04 0x04 0x04 0xFE

#org $1
$1 1 =Waaaiiiitttt!!!

#org $2
$2 1 = You're going to die! Mwuhahaha\nDIE!!!!!!!!!!!!\p\c\h01\h04\v\h01 : WTH!?
Reply With Quote
  #343   Link to this post, but load the entire thread.  
Old November 5th, 2008 (5:30 PM).
lordtomato lordtomato is offline
 
Join Date: Oct 2008
Location: In the dark corners of the mind.
Gender:
Nature: Lonely
Posts: 13
Well, C is hex for 12. remember, to convert dec to hex (base ten to base sixteen)

Also, i'm no expert, but i believe the problem lies in the org $dissapear clause.

you have it reset the flag (setflag 0x299)
where i believe you wanted to clear it? (clearflag 0x299)

I may be wrong.
Reply With Quote
  #344   Link to this post, but load the entire thread.  
Old November 5th, 2008 (5:47 PM).
Liquid Shadow Liquid Shadow is offline
xD
 
Join Date: Mar 2008
Gender:
Posts: 224
No, I don't think so... But I didn't understand how 12 is C? What do u mean by dec to hex? Is there a program that tells you the hex number? I'm confused here.. How do I get the hex number of like a pokemon or something?
Reply With Quote
  #345   Link to this post, but load the entire thread.  
Old November 5th, 2008 (5:53 PM).
Satoshi Sugimori's Avatar
Satoshi Sugimori Satoshi Sugimori is offline
Hermit
 
Join Date: Dec 2006
Location: Tokyo, Japan
Age: 30
Gender: Male
Nature: Timid
Posts: 860
C is the hex number and 12 is the decimal number..
you can convert the decimal numbers to hex with a calculator, just open the calculator and press options and then scientific thing, then left ther is a option you can click first it says hex next to it dec, push dec and fill in 12 then click the hex and you see the number turning into a C that is what you have to fill int hen so the people nr is 000C, split it in 2 and turn it you get this 0C 00, sot he Raw command becomes #raw 0x53 0x0C 0x00
But try this:

Spoiler:

#org $start
checkflag 0x299
if b_true goto $done
message $1
boxset 6
applymovement 0x05 $move
pausemove 0x0
applymovement 0xFF $move2
pause 0x30
message $2
boxset 6
applymovement 0x05 $move3
applymovement 0xFF $move3
pausemove 0
goto $disappear
setflag 0x299
release
end

#org $done
release
end

#org $disappear
fadescreen 0
#raw 0x53 0x0C 0x00
setflag 0x299

#org $move
#raw 0x05 0x05 0x05 0x05 0xFE

#org $move2
#raw 0x00 0xFE

#org $move3
#raw 0x04 0x04 0x04 0x04 0xFE

#org $1
$1 1 =Waaaiiiitttt!!!

#org $2
$2 1 = You're going to die! Mwuhahaha\nDIE!!!!!!!!!!!!\p\c\h01\h04\v\h01 : WTH!?

And put the flag number in the people id like this: 0299
it should work
__________________
Reply With Quote
  #346   Link to this post, but load the entire thread.  
Old November 5th, 2008 (6:18 PM). Edited November 6th, 2008 by NTA.
NTA's Avatar
NTA NTA is offline
Where?
 
Join Date: Nov 2007
Nature: Adamant
Posts: 264
the wild battle script doesnt work can someone help plz?
__________________

Reply With Quote
  #347   Link to this post, but load the entire thread.  
Old November 5th, 2008 (7:18 PM). Edited November 5th, 2008 by Liquid Shadow.
Liquid Shadow Liquid Shadow is offline
xD
 
Join Date: Mar 2008
Gender:
Posts: 224
Thank you so very much... It works.. Just that the sprite doesn't disappear until I refresh the map. How do I fix that?

EDIT: Got it! I had to change #raw 0x53 0x0C 0x00 back to #raw 0x53 0x05 0x00 but keep the person's id as 0299. That's it. Also, is it possible to code in an earthquake style thing like the truck script in ruby into FR/LG? And another thing.. If I'm doing a follow me script and want a sprite to lead me into.. say.. a pokemon gym? I know how to have the sprite lead me to the door of the gym and then making the sprite disappear there while having myself warped into the gym, but I don't get how I'm supposed to somehow warp the sprite into the gym too. Thanks for your help so far guys.
Reply With Quote
  #348   Link to this post, but load the entire thread.  
Old November 6th, 2008 (4:57 AM).
lordtomato lordtomato is offline
 
Join Date: Oct 2008
Location: In the dark corners of the mind.
Gender:
Nature: Lonely
Posts: 13
I think you'd have to make a new one for inside the gym. temporary, of course.
Reply With Quote
  #349   Link to this post, but load the entire thread.  
Old November 6th, 2008 (3:52 PM). Edited November 7th, 2008 by Liquid Shadow.
Liquid Shadow Liquid Shadow is offline
xD
 
Join Date: Mar 2008
Gender:
Posts: 224
Where are the level scripts? I want to know how to make a script continue after warping..
Reply With Quote
  #350   Link to this post, but load the entire thread.  
Old November 14th, 2008 (6:17 PM).
sharkshank sharkshank is offline
Banned
 
Join Date: Nov 2008
Location: North London
Age: 28
Gender:
Nature: Careful
Posts: 47
This Really helped me understand scripting. But what if you want to Fuse Scripts like:

Walking then give item, where would you put the [Codes].
And give pokedex, how would you activate the menu, like where would
you put the Flag number?
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.