wingzro17
......................... .....
- 46
- Posts
- 17
- Years
- Under a box, near 31st street, on FAKE AVE. in FAK
- Seen Feb 14, 2012
Game: FireRed
Type: BPRE (I think)
Editor: XSE
Script:
Spoiler:#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.Spoiler:
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
Spoiler:
These two scripts work back-to-back. One of them gives you the Pokemon you need for the battle and one of them battles you. It says there is an "error 13" on line 7 of one of them, a type mismatch. I thought it was the word "goto" or "call", but I can't figure out whats wrong with it. I looked in tutorials and these were the exact lines used in those tutorials!Spoiler:
Spoiler:Spoiler:
Spoiler:
I think you forgot @please...
and a few others....