#dynamic 0x800000
#org @gym
lock
faceplayer
checkflag 0x_ (Ex: 1802)
if 0x1 goto @done
msgbox @intro 0x6
trainerbattle 0x1 0x_ 0x0 @inicio @perdeu @after (Trocar _ por um Nº)
release
end
#org @after
msgbox @derrota 0x6
setflag 0x_ (Ex: 820) Insígnia
fanfare 0x13E
msgbox @badge 0x4
waitfanfare...