Thread: [Tutorial] Advanced Scripting Tutorial
View Single Post
Old February 24th, 2007 (7:45 AM).
Irish Witch's Avatar
Irish Witch Irish Witch is offline
Office Jenny
Join Date: Jul 2006
Location: Australia
Age: 36
Nature: Lonely
Posts: 147
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
Ok. Here's a fun little tutorial thing I just learned I could do with my own program
... Here I designed it and I hadn't even thought of using it like this!

Inside pokescript I have special directives for performing different tasks and one of these is #rawdecode, which will decode an offsett from a source (ROM) at and dump it into a file. These are traditionally typed into the instant window but there is nothing stopping you from writing them in a script.
The attached file was made by using translexhation and the ruby thing table.
Renamed to a .rbc and compiled, will go through and decompile the offsetts for the text at the opening of the game (The stuff prof birch says) into seperate files. It will also create one solitary .buf file.

Once it's done compiling delete all the .psc files, then rename the solitary .buf file to a .rbc file...

Hey presto, a complete list by offsett of the text he says in an easy to read format instead of having to look the characters up on a table and edit them in a hex editor!!
Simply write you're text above it making sure you take up the same amount of space -- Allowing that a letter following a backslash(\p) and letters between square brackets[player] both translate into 1-byte characters!
Attached Files
File Type: txt SaphireRead.txt‎ (324 Bytes, 26 views) (Save to Dropbox)
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto