View Single Post
  #320    
Old April 18th, 2009 (06:50 PM).
Raiser Raiser is offline
 
Join Date: Jun 2008
Gender:
Posts: 15
So using the response from Blob, I fixed up a wild battle with RAYQUAZA and used
setvar 0x8004 0x180
(180 is RAYQUAZA in hex, no?)

I fixed up the offsets and ran the ROM in VBA.
However, I run from it and it says AGGRON.

AGGRON = 132 and there's no 132 in my script.

Here it is:
Spoiler:

#org 0x880263B
'-----------------------------------
special 0x187
compare LASTRESULT 0x2
if 0x1 jump 0x81A7AE0 ' Equal To
special 0x188
lock
faceplayer
checksound
cry 0x196 0x2
waitcry
pause 0x14
playsound 0x2 0x2
battle 0x196 0x4B 0x0
setflag 0x807
special 0x138
waitspecial
clearflag 0x807
special2 0x800D 0xB4
compare LASTRESULT 0x1
if 0x1 jump 0x8162558 ' Equal To
compare LASTRESULT 0x4
if 0x1 jump 0x8800080 ' Equal To
compare LASTRESULT 0x5
if 0x1 jump 0x8800080 ' Equal To
fadescreen 0x1 ' Fade screen to black
disappear 0x800F
fadescreen 0x0 ' Fade back into the action from black
setflag 0x1016
release
end
#org 0x81A7AE0
'-----------------------------------
release
end
#org 0x8162558
'-----------------------------------
setflag 0x2BC
jump 0x81A922D
#org 0x81A922D
'-----------------------------------
fadescreen 0x1 ' Fade screen to black
disappear 0x800F
fadescreen 0x0 ' Fade back into the action from black
release
end
#org 0x8800080
'-----------------------------------
setvar 0x8004 0x180
jump 0x81A9236
#org 0x81A9236
'-----------------------------------
fadescreen 0x1 ' Fade screen to black
disappear 0x800F
fadescreen 0x0 ' Fade back into the action from black
storepokemon 0x0 0x8004
msgbox 0x81A63C4 ' The \v\h02 flew away...
callstd MSG_NOCLOSE ' Non-closing message
release
end

#org 0x81A63C4
= The \v\h02 flew away!



The bolded parts are what I fixed up. So why do I get AGGRON in the textbox when it should be RAYQUAZA?

EDIT: I opened it, and just tried to recompile/save it when I get this in the compiler log:
Spoiler:

Cannot open defines.dat!
Opened file.
#ORG
-> 0x880263B
SPECIAL
-> 0x187
COMPARE
Unknown value in COMPARE (Value must be integer)



It worked fine when I first compiled it, but now I can't do it again without that log showing up.