Good morning everyone! I will try to explain as best as I can what I want to do. Let's get started.
By default, in emerald, in a battle against a trainer, the opposing pokemon's battle_box slides to appear on the screen when the trainer brings out the pokemon in question. Well, there are two types of sliding that follow one another:
- Type 1: When the rival trainer takes you out to his FIRST pokémon. The opponent's battle_box appears sliding across the screen right at the moment the pokeball animation just played.
- Type 2: When the rival trainer takes out his SECOND pokémon (and its successors). The opponent's battle_box appears sliding across the screen just at the moment the pokemon's cry happens and the movement animation of the 2 frames of its sprite ends.
Basically what I want to achieve is to force that when the opponent takes out his FIRST pokemon, the slide of the battle_box of the previous type 2 happens, making everything work in the same way.
I've been messing around a lot and I think the function that controls this is in: battle_controller_opponent.c > Intro_TryShinyAnimShowHealthbox
I have been trying several things, especially with the "ballAnimActive", "healthboxSlideInStarted" and "waitForCry" functions, although I have not been able to find the key.
Any kind of help or indication is appreciated, especially from those people who know about decomp. Greetings!
By default, in emerald, in a battle against a trainer, the opposing pokemon's battle_box slides to appear on the screen when the trainer brings out the pokemon in question. Well, there are two types of sliding that follow one another:
- Type 1: When the rival trainer takes you out to his FIRST pokémon. The opponent's battle_box appears sliding across the screen right at the moment the pokeball animation just played.
- Type 2: When the rival trainer takes out his SECOND pokémon (and its successors). The opponent's battle_box appears sliding across the screen just at the moment the pokemon's cry happens and the movement animation of the 2 frames of its sprite ends.
Basically what I want to achieve is to force that when the opponent takes out his FIRST pokemon, the slide of the battle_box of the previous type 2 happens, making everything work in the same way.
I've been messing around a lot and I think the function that controls this is in: battle_controller_opponent.c > Intro_TryShinyAnimShowHealthbox
I have been trying several things, especially with the "ballAnimActive", "healthboxSlideInStarted" and "waitForCry" functions, although I have not been able to find the key.
Any kind of help or indication is appreciated, especially from those people who know about decomp. Greetings!