• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • 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.

How to force the player to make the battle style "set"

  • 23
    Posts
    10
    Years
    • Seen Dec 18, 2018
    I'm almost done with my pokemon game, but for the elite four i want to make all the battle styles "set" as in you cant switch out everytime you defeat a pokemon. If anybody has figured this out is would be super helpful.
    I would like to make it so that
    Before every battle against an elite four member it would check if the battle style is "set" . If the battle style is not "set" it will either.
    A. Force it to "set" then start battle.
    B. Tell the player that the battle will not start until they set the battle style to "set"

    Thanks for the help.
     
    Code:
    $PokemonSystem.battlestyle = value

    Next time look at the scripts please, it's right there. 0 for Shift. 1 for Set.

    full code:
    Code:
           EnumOption.new(_INTL("B.STYLE"),[_INTL("SHIFT"),_INTL("SET")],
              proc { $PokemonSystem.battlestyle },
              proc {|value|  $PokemonSystem.battlestyle=value }
     
    Thanks, sorry about that, i tried looking through the script but couldn't find it.
    There is a lot of stuff :v
     
    Back
    Top