Looking into the rom, specifically the arm9.bin, I can see a lot of commands that are going to be used in the script. Expressions include "sad", "shy", "talk", then special methods were written into the code such as, *set, *add, *sub, (any string that starts with *).
Unpacking the script...