The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
Research & Development programs in this forum are subject to moderator approval before they are displayed.

Reply
 
Thread Tools
  #1    
Old February 20th, 2011, 07:12 AM
miksy91's Avatar
miksy91
A GB/C Rom Hacker since 2010
 
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed
For the first time, I decided to take a look at some basic scripts in third gen pokemon games. It's easy to notice that for example 02 is used to end a script and 2B [xx] [yy] checks if flag "xx yy" is set or not.

However, for example the "2B command" as itself doesn't tell you much. Here is how the command works as whole:
The game checks in certain ram address, where data of flag bit "xx yy" is stored, whether "xx yy" is set or not (it's 00 if that flag is not set and 01 if it is) and writes it to RAM.

I made a quick search in Google and, as a result, couldn't find any explanation about the scripting commands in third gen games.
The one, explained above, is not so difficult to be understood as for example this one (code 89 in G/S/C, there may be something similar in 3rd gen too).


89 Load map anew:
-----------------

The number decides which map loading process is used. The number must be 0xF0 + process number to work correctly.

Structure:

[89][Number]


As you can see, it's difficult to learn how to use some of the commands unless you've clear explanations of their functions.

This is just an idea but I think a scripting tutorial, that clearly shows how each scripting command works, should be made. One for 2nd gen has already existed for over five years now, thanks to Tauwasser.
For example I, who work with 2nd gen and script mostly with PKSV, yet need to use Tauwasser's Scripting Compendium quite a lot.
There are many scripting commands I want to learn to use which aren't that easy to be learned - I wouldn't be able to use them by just messing around with PKSV, that's why I study how they work as well.
__________________
My Rom Hack



Hacks I support





Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations
Reply With Quote
  #2    
Old February 20th, 2011, 11:22 PM
Gamer2020's Avatar
Gamer2020
This love is a sickness...
 
Join Date: Jun 2008
Location: Distant Land
Gender: Male
Nature: Bold
Send a message via Skype™ to Gamer2020
As much as I dislike this site I figured I should post to help you out. I prefer to hack the GBA games but I did research GSC for a bit.

That being said I couldn't help but notice that there are in fact similarities in the scripting engine between the two generations. The same goes for other kind of data. The developers of these games, in my opinion, reuse their code but improve it as the years go by.

http://www.pokecommunity.com/showthread.php?t=119021

That thread may be what you are looking for.

Also if you were to use XSE not only would it be easy scripting but you can press F1 to see a list of commands and their functions and parameters. Have fun.
__________________
Pokemon Game Editor Download!
Pokemon TCG Assistant!
Fun Fact: Even though PGE isn't posted on PC anymore it still has the same number of downloads per day.

Last edited by Gamer2020; March 9th, 2011 at 09:19 PM.
Reply With Quote
  #3    
Old February 21st, 2011, 06:26 AM
miksy91's Avatar
miksy91
A GB/C Rom Hacker since 2010
 
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed
Oh, I never bothered checking if HackMew had written down explanations of the scripting commands in the editor itself. I guess another compendium would turn out useless then.
But yeah, my idea was exactly to gather information of all the script commands and write down explanations for them.

Then again, it's not like I was about to start hacking 3rd gen or anything - I just wanted to make it possible for 3rd gen hackers to learn how to for example use the variable commands. Without them, you wouldn't be able to do that much.
__________________
My Rom Hack



Hacks I support





Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations
Reply With Quote
Reply
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 03:34 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.