These 2 codes are meant to go together, and neither of which works...
Code:
#org @start
lock
faceplayer
countpokemon
#define compare 0x800D 0x1
#define if 0x1 goto @continue
if 0x0 goto @goaway
checktrainerflag 0x2e6
compare 0x800D 0x1
if 0x1 call @alreadybattled
release
end
#org @continue
= trainerbattle 0x0 0x2e6 0x0 @intro @defeat
msgbox @msg 0x2
end
#org @intro
= Battle commencing.
#org @defeat
= Congradulations.
#org @msg
= Please go get your\nEEVEE returned to you.
cleartrainerflag 0x19E
#org @goaway
= POKeMON number does\nnot equal one. Try again after\nyou've talked to the man beside\nme.
Code:
dynamic 0x8013F7
#org @start
lock
faceplayer
countpokemon
compare 0x800D 0x1
if 0x1call @continue
if 0x0 call @please
checktrainerflag 0x2e6
compare 0x800D 0x1
if 0x1 goto @alreadybattled
release
end
#org @continue
checkflag 0x1019
if 0x1 call @nomore
givepokemon 0x175 0x50 0x0 0x0 0x0 0x0
setflag 0x1019
end
#org @nomore
msgbox @msg 0x2
end
#org @msg
= Please go battle my sim.
#org @alreadybatted
setvar 0x8008 0x8
call 0x1A8CAD
checkflag 0x1000
if 0x1 goto @how
msgbox @yesno 0x5
compare LASTRESULT 0x0
if 0x1 goto @too
call 0x1A8CBD
compare 0x8004 0x6
if 0x4 goto @too
call 0x1A8CC9
comparevars LASTRESULT 0x8009
if 0x5 goto @not
call 0x1A8CD9
msgbox @thanksalot 0x4
setflag 0x1000
release
end
#org @not
bufferpokemon 0x0 0x8009
msgbox @not2 0x4
release
end
#org @too
bufferpokemon 0x0 0x8009
msgbox @too2 0x4
release
end
#org @how
msgbox @old 0x4
release
end
#org @thanksalot
= Okay. Lets go.
warp 0x4 0x2 0x3 0x0 0x0
#org @not2
= My hack, not yours.
#org @too2
= Why are you messing with my hack?
#org @yesno
= Okay. I'll give you your\nEEVEE back and end the SIM.
#org @old
= I'm supprised your cheats work\n in my hack. o.o
Its logically impossible to not have the Pokemon in your party at this point in time, thats why the second code is kinda.. iffy... >.>
My script is basically 2 people.
Person 1 is the person who battles you.
Person 2 gives you a Pokemon, trades it to you with Eevee, and teleports you out of the SIM.
Person 2 gives you a SALAMENCE.
Person 1 battles you.
Person 2 realizes that you have battled person 1 because of the flag and trades you SALAMENCE with EEVEE.
Person 2 warps you out of the SIM.
Looks like a follow me script.