View Single Post
  #318    
Old April 18th, 2009 (03:21 AM).
Raiser Raiser is offline
 
Join Date: Jun 2008
Gender:
Posts: 15
Oh I have another question. So I have this compiled script for a wild battle with MEW made using the script generator:
Spoiler:

#org 0x880668E
'-----------------------------------
special 0x187
compare LASTRESULT 0x2
if 0x1 jump 0x81A7AE0 ' Equal To
special 0x188
lock
faceplayer
checksound
cry 0x97 0x2
waitcry
pause 0x14
playsound 0x0 0x2
battle 0x97 0x1E 0x8D
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 0x8162561 ' Equal To
compare LASTRESULT 0x5
if 0x1 jump 0x8162561 ' Equal To
setflag 0x1053
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 0x8162561
'-----------------------------------
setvar 0x8004 0x96
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!



I'm assuming that the \v\h02 is whatever the setvar 0x8004 0x** is, correct?
As 96 = MEWTWO, everytime I run from a wild battle I create says "Wild MEWTWO flew away!" or something. Then I realize that I can't change just that one part of this certain script because all the wild battles I create, that one part has the same offset for every one.

So can I fix this by simply using the FSF and changing the offset after #org (for 0x8162561)? Or do I need to do something different?

Because I also made wild battles with JIRACHI, KYOGRE, and more, but all of them say "MEWTWO flew away!" and the setvar 0x8004 0x** is the same (0x96)

Thanks for the help!