![]() |
FireRed: Script a Battle Between 2 NPCs
Does anyone know how to do this for FireRed?
|
Script an event that involves 2 NPCs talking to te player, then trigger a double battle. Kind of simple
|
Quote:
|
Quote:
|
Quote:
|
Quote:
1. save the player's pokemon data somewhere (free ram, see FBI's portable storage system for example) 2. give the player the NPC's pokemon (givepokemon should work) 3. swap the player's battle backsprite with the NPCs (use JPANs engine or this routine) 4. initiate the trainer battle 5. after the battle, delete the given pokemon (JPANs engine special or see this thread) 6. get the player's original pokemon back (eg. the portable storage system again) You will probably want to allow the game to continue in the event the player loses the trainer battle, which means using Oak's tutorial battle (you can toggle the tutorial text with this or just allow continuation via a flag) This might look like a lot but you'll learn a lot by getting it all to work. Good luck! |
Quote:
|
Quote:
|
Quote:
|
| All times are GMT -8. The time now is 9:13 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.