Ok, fixed that, now I'm having a problem further down the script.
trainerbattle 0x0 0x004 0x0 @choseyes @after
msgbox @youwon 0x6
givepokemon 0xF 0x8 0x0 0x0 0x0 0x0
msgbox @nickname MSG_YESNO
compare LASTRESULT 0x1
if 0x1 goto @nicknameyes
compare LASTRESULT 0x0
if 0x1 goto @nicknameno
After the battle, the script just ends. What do I need to have it carry on with the script, initiating the give pokemon part?