View Single Post
  #259    
Old May 31st, 2010 (05:53 AM).
metapod23's Avatar
metapod23
Hardened Trainer
 
Join Date: Mar 2009
Gender: Male
Nature: Timid
Quote originally posted by diegoisawesome:
@metapod23: Use special 0x6 before AND AFTER. Like so:
Code:
special 0x6
setvar 0x8004 0x5
setvar 0x8005 0x13C
special 0x13
special 0x6
The first usage decrypts the Pokémon for editing, the second one recrypts the Pokémon into the party.
Well, weird glitchiness abounds. If I have my Pikachu at the front of my party when I receive Rattata, the Pokemon I receive is a clone of Pikachu, with the same amount of damage that Pikachu has at the time and same exact stats and level, but with a lower level of happiness. If another Pokemon is in front, I get Rattata, but its happiness is unchanged ...

For reference, this is the script - I have 5 Pokemon in my party when I go to get Rattata:

Code:
#org 0x836DD2
countpokemon
compare LASTRESULT 0x6
if 0x1 goto 0x8836E87
fanfare 0x101
msgbox 0x8836E65 MSG_KEEPOPEN '"You adopted the abused RATTATA!"
closeonkeypress
setflag 0x1119
hidesprite 0x4
givepokemon 0x13 0x5 0x0 0x0 0x0 0x0
countpokemon
compare LASTRESULT 0x2
if 0x1 goto 0x8836E42
compare LASTRESULT 0x3
if 0x1 goto 0x8836E49
compare LASTRESULT 0x4
if 0x1 goto 0x8836E50
compare LASTRESULT 0x5
if 0x1 goto 0x8836E57
compare LASTRESULT 0x6
if 0x1 goto 0x8837941

#org 0x837941
special 0x6
setvar 0x8004 0x5
setvar 0x8005 0x13C
special 0x13
special 0x6
end
__________________
Reply With Quote