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.
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.