28211-¿Cómo_activar_o_desactivar_un_entrenador_pokémon\?
#2
Wikibeam 28962
Hola Kurama gracias por su pronta respuesta, básicamente lo que hace este script es ir al entrenador de batalla si se cumple la función pero no logro hacer que el entrenador solo se active el auto reto si se cumple está misma función, me podría explicar como ponerlo por favor, gracias de antemano

'-----------------------
#org 0x23EAC8
checkflag 0x820
if 0x1 goto 0x823EB2C
compare 0x4051 0x1
if 0x1 goto 0x823EBF4
compare 0x4051 0x0
if 0x1 goto 0x823EC58
end

'-----------------------
#org 0x23EB2C
msgbox 0x823EAF3 '""
callstd 0x4
release
end

'-----------------------
#org 0x23EBF4
setflag 0x701
checkflag 0x701
call 0x823EC63
release
end

'-----------------------
#org 0x23EC58
msgbox 0x823ECBC '""
callstd 0x4
release
end

'-----------------------
#org 0x23EC63
trainerbattle 0x0 0x2E7 0x0 0x823ECD9 0x823ED3D
special2 LASTRESULT 0x39
compare LASTRESULT 0x1
if 0x1 goto 0x823EE14
msgbox 0x823ED3D '""
callstd 0x6
end

'-----------------------
#org 0x23EE14
trainerbattle 0x5 0x2E7 0x0 0x823ECF0 0x823ED54
msgbox 0x823EDB8 '""
callstd 0x6
end


'---------
' Strings
'---------
#org 0x23EAF3
=

#org 0x23ECBC
=

#org 0x23ECD9
=

#org 0x23ED3D
=

#org 0x23ECF0
=

#org 0x23ED54
=

#org 0x23EDB8
=