The "function" should match that of any trainer like person to make the person event function as a trainer and so possibly see you and challenge to you a battle. The "text block / bank" part should point to "trainer script" structure as seen here (https://hax.iimarck.us/files/scriptingcodes_eng.htm#Eventaufbau) under Color|Function part 02. If you take a look there, you will find this kind of a structure:Hello again, everyone.
I am using Crystal Map and the One GSC Trainer editor to change the battle tower. Editing the maps is easy enough, but not sure how to create new trainers. These trainers will act like in-game trainers and not the Battle Tower ones.
I have built events to create the number of trainers I want, and can alter which sprite they use using the 'picture number' selection. However, I am not sure how to link them to particular trainers. One GSC Trainer Editor allows me to add trainers (in this case, I have added the trainers to the Champion category), but I don't know how to sync them up.
I have tried making their function and text block / bank the same as a random trainer for testing purposes but it always fails. One time it loaded the end credits, another time it loaded up a strange screen, and another it crashed.
Any idea on what is going wrong?
Thanks
Code:
[Bit no. (2byte)][Trainer group][Trainer][2byte pointer to Text when seen]
[2byte pointer to text when trainer beaten][2byte pointer to script when lost (0000=Blackout)][2byte pointer to script if won/talked to again]
In other words, you need to use those "text block / bank" values to point to this kind of a structure. That is a wrong notation and for example JohtoMap describes those two values together as "Script Pointer". The values show up in decimal, but they are handled as a 2-byte pointer.
In case you don't know what this means, I'd advise taking a look at some of the tutorials in Skeetendo Inc. (hax.iimarck.us) or for example take a look at my videos in youtube which I have linked in my signature. But you can also edit pokemon crystal with disassembly (https://github.com/pret/pokecrystal) which is practically the easiest way to hack crystal once you know how to play around with it.