View Single Post
Old March 3rd, 2013 (12:19 PM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
    Join Date: Nov 2012
    Location: Do you really want to know? Really?
    Gender: Male
    Nature: Bold
    Posts: 1,766
    Originally Posted by ep!c View Post
    Hey, to check if a Pokémon is caught or not, you need a special.

    Special 0xB4.

    *key 0x1 = fainted, 0x7 = captured, 0x4 = escaped*

    So you make your wildbattle and after it you compare.

    wildbattle blabla
    waitstate (only for XSE 1.0)
    special2 LASTRESULT 0xB4
    compare LASTRESULT 0x7
    if 0x1 call @caught

    Hope it helps

    Darn, you were a bit faster xD
    He knows how to do that, I taught him it personally. He said he would rather not have to set a flag depending upon certain conditions, being fainted or caught.

    But now that I think about it, a var has to be set either way to prevent the script from happening again. Why not use special B4 and set a var to a specific number based upon the outcome like 1 for ran, 2 for fainted, and 3 for caught, and then only have the second script for Latios run if that var equals 3 (in the script tile settings in A-map) then at the end, just set that var to 4, and the events will never happen again.

    Paired with Simba