View Single Post
  #6162    
Old October 9th, 2011, 03:54 PM
DavidJCobb
RESIDENT RAAAAAAAAAAAAGEMASTER
 
Join Date: Jul 2010
Gender: Male
Nature: Lonely
Quote:
Originally Posted by M.L View Post
Help me please i took the daycare script from Firered and used it so the player must give in a poke but i cant get it so that the player can recall the pokes i have done this...

Spoiler:
Code:
#dynamic 0x800000

#org @start
lock
countpokemon
compare 0x800D 0x1
if 0x1 goto @stop
special2 LASTRESULT 0x84
compare LASTRESULT 0x1
special 0xBC
waitstate
compare 0x8004 0x6
special2 LASTRESULT 0x85
compare LASTRESULT 0x0
special2 0x8005 0xBA
special 0x176
cmdc3 0x2F
goto 0x81BF541
special 0xBC
special2 LASTRESULT 0x85
compare LASTRESULT 0x0
special2 LASTRESULT 0x179
compare LASTRESULT 0x0
special2 LASTRESULT 0x178
compare LASTRESULT 0x1
special2 0x8005 0xBA
special 0x177
special 0x176
cmdc3 0x2F
special2 LASTRESULT 0x17A
call 0x81A6675
release
end

#org @stop
release
end
You're not using "compare" properly.

Code:
special2 LASTRESULT 0x84
 compare LASTRESULT 0x1
 special 0xBC
You're doing a comparison, but you're not checking the result (with an "if" command). You make the same mistake with every comparison in the script except for the first one, which is why it's broken.
__________________