Alright, so I really try not to ask questions but I just don't understand this one. I'm fairly new at scripting but I've gone through several pokescript tutorials over the past few days and definitely know my way around Advance Map. Recently I downloaded PKSV and started screwing around with it, and managed to fix almost all my glitchy scripts. My next scripting 'objective' is having a battle with Lugia in Emerald.
I have the overworld sprite set up in Advance Map, and I noticed that there is a generate-able script for this very thing, so I go through it and set it up, choosing 0x1216 as my flag. This is the product:
Then I compile, get my script offset and plug it into my overworld sprite in advance map.
After that I saved and went to test my game, but - to my surprise - as soon as I pressed A the game paused, then started flipping out and keeps glitching, never going into a battle.
I went back into advance map and clicked on my Lugia sprite. I clicked open script and this is the compiled version of the script, but it also had some errors and a ton of added stuff (Though I assume this is after compilation?):
The only type of answer I've seen anywhere was from a guy with Edward from fullmetal alchemist for an avatar (Yeah, I think his name had Fullmetal in it but I'm not sure), and it said something about decompiling.
I tried that, but it really didn't change anything:
Can anyone help me? I can't seem to find out what's wrong :/