The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Rival Battle (https://www.pokecommunity.com/showthread.php?t=383157)

Canonico25 November 14th, 2016 10:05 AM

Rival Battle
 
Is the script for a rival battle just a normal 'trainerbattle' script? If so, how do you code the starting mons into A Trainer

Christos November 15th, 2016 3:24 AM

Quote:

Originally Posted by Canonico25 (Post 9487022)
Is the script for a rival battle just a normal 'trainerbattle' script? If so, how do you code the starting mons into A Trainer

It's a normal trainer battle, except the first battle ever with the Oak tutorial. However, the script checks the value of a variable to jump to one of three different trainer battles, depending on the starter you pick.

If you want to see which variable is used and which value is set for each starter, check out the scripts in Oak's lab.

Ammy175 November 15th, 2016 7:27 AM

Does the same apply to Emerald?

Christos November 15th, 2016 7:35 AM

Quote:

Originally Posted by Ammy175 (Post 9488115)
Does the same apply to Emerald?

Yes

Canonico25 November 15th, 2016 3:38 PM

Quote:

Originally Posted by Christos (Post 9487958)
It's a normal trainer battle, except the first battle ever with the Oak tutorial. However, the script checks the value of a variable to jump to one of three different trainer battles, depending on the starter you pick.

If you want to see which variable is used and which value is set for each starter, check out the scripts in Oak's lab.

Sorry, what is it I need to do to add in the starter?


All times are GMT -8. The time now is 9:17 AM.


Like our Facebook Page Follow us on Twitter © 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.