Here, let me help.
1. For a Trainer event, simply use a "trainerbattle" command in the script.
2. Add an offset
3. The first unknown, above the movement choices, must be set to 03. The person ID is optional
4. An offset is six numbers/letters that contain the script so it can be executed in the