• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Sky Battles for V18?

Hey, I read your post and even though I'm not the biggest fan of sky battles, I decided to implement them for you. This code supports single, double and triple sky battles but I'm uncertain if it can handle partner trainers. The list of elligible Pokemon for a sky battle is based on Gen 6, so you it may have to be updated.

Script Section: PokeBattle_Battle
Spoiler:

Script Section: Battle_StartAndEnd
Spoiler:
Script Section: Scene_Commands
Spoiler:
Script Section: PField_Battles
Spoiler:

Script Section: PokeBattle_Pokemon
Spoiler:
Script Section: Battler_UseMove_SuccessChecks
Spoiler:
Script Section: PokeBattle_Move
Spoiler:
 
Last edited:
Hey, I read your post and even though I'm not the biggest fan of sky battles, I decided to implement them for you. This code supports single, double and triple sky battles but I'm uncertain if it can handle partner trainers. The list of elligible Pokemon for a sky battle is based on Gen 6, so you it may have to be updated.

Script Section: PokeBattle_Battle
Spoiler:

Script Section: Battle_StartAndEnd
Spoiler:
Script Section: Scene_Commands
Spoiler:
Script Section: PField_Battles
Spoiler:

Script Section: PokeBattle_Pokemon
Spoiler:
Script Section: Battler_UseMove_SuccessChecks
Spoiler:
Script Section: PokeBattle_Move
Spoiler:

Thank you so much, I really appreciate it!
 
Quick update on a bug I found in "Battler_UseMove_SuccessChecks":
Code:
return false if move.pbFailsInSkyBattles? [COLOR="Red"]&& @battle.skyBattle?[/COLOR]
The red part needs to be added otherwise these moves fail in all battles. Updated the original post as well.
 
Back
Top