The command 'wildbattle' has six parameters which you need to fill out, otherwise XSE won't accept it. It is constructed like this:
wildbattle 0x[Pokemon Number] 0x[Pokemon Level] 0x[Item Held] 0x0 0x0 0x0
Fill out the rest of the necessary information and your script should compile easily.
@johnr754
There's no such thing as hidesprite 0x800F!!
As far as I know a map can at least hold 255 persons....
hidesprite 0x(person event no) this is in hex....
Nope, that part of the script is perfectly fine because 0x800F is the variable which holds the number of the event which you last talked to.