Ok then? That seems like it would likely be caused by some sort of data overlap somewhere else. That doesn't make sense that your XSE would do this... The thing that actually makes me shy away from this is that the second part of your script was compiled, but under the same class...
Try redownloading from here, I guess...
All I did was decompile the script at 0x1634B8 and then copy-paste yours into there after deleting everything already present. I switched some commands that my XSE wasn't recognizing (wildbattle2 to wildbattle; preparemsg to msgbox2; and waitmsg to waitmsgbox), added a callstd 0x4 after the first msgbox command and a waitstate after the wildbattle command. Granted, I haven't actually been able to defeat the Marowak (I kind of had to start a new file because I don't really ever play ROMs as games), so I don't necessarily know what happens afterwards, but simply commenting out the wildbattle and waitstate lines made everything appear to be fine and dandy. I also don't know what the difference between wildbattle and wildbattle2 is? But, yes, that should work...
I can say that I've had problems with XSE in the past where it would randomly put pointers in for textboxes that led to extremely gibberish textboxes upon going into the game, but that was fixed by redownloading it...
Try redownloading from here, I guess...
Spoiler:
All I did was decompile the script at 0x1634B8 and then copy-paste yours into there after deleting everything already present. I switched some commands that my XSE wasn't recognizing (wildbattle2 to wildbattle; preparemsg to msgbox2; and waitmsg to waitmsgbox), added a callstd 0x4 after the first msgbox command and a waitstate after the wildbattle command. Granted, I haven't actually been able to defeat the Marowak (I kind of had to start a new file because I don't really ever play ROMs as games), so I don't necessarily know what happens afterwards, but simply commenting out the wildbattle and waitstate lines made everything appear to be fine and dandy. I also don't know what the difference between wildbattle and wildbattle2 is? But, yes, that should work...
I can say that I've had problems with XSE in the past where it would randomly put pointers in for textboxes that led to extremely gibberish textboxes upon going into the game, but that was fixed by redownloading it...