• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Red, Kris, May - which Pokémon protagonist is your favorite? Let us know by voting in our semifinal favorite protagonist poll!
  • 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.

Implementing Sky Battles

  • 13
    Posts
    11
    Years
    • Seen Jul 11, 2014
    I want to implement Sky Battles as well as similar battle types that only allow for certain Pokémon or moves to be used. Do you have any suggestions/codes regarding how to add these to a game?
     
    Uses this script https://www.pokecommunity.com/threads/290931 and before line 'ret.ruleset.setNumberRange(min,max)' add (with all valid species):

    Code:
    ret.addPokemonRule(SpeciesRestriction.new(
       :CHARIZARD,:BUTTERFREE,:PIDGEOTTO
    ))

    Put a condition at pbCanChooseMove? that only activates when the player is at Sky Battle (the easier way is to use a switch check). Make sure that your opponent meets all the limitations.
     
    Back
    Top