• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking 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.

[Eventing Question] 1v1 Lucario Fight

  • 83
    Posts
    6
    Years
    • She/It/Mew
    • Seen Feb 22, 2023
    For context, I'm making a sort of Pokemon Z version, and i want to make the Successor Korrina fight, but idk how to make it so that you only can use Lucario. I know how to get it to check your party, but i want it so that you can only bring Lucario. How do I make it so that the event forbids continuation if you have anything more?
     
    For context, I'm making a sort of Pokemon Z version, and i want to make the Successor Korrina fight, but idk how to make it so that you only can use Lucario. I know how to get it to check your party, but i want it so that you can only bring Lucario. How do I make it so that the event forbids continuation if you have anything more?

    You can do something with the functoin pbChooseAblePokemon.
    Something like this seems to work:
    Code:
    scene = PokemonParty_Scene.new
    screen = PokemonPartyScreen.new(scene,$Trainer.party)
    ret = screen.pbChooseAblePokemon(proc { |pkmn| return pkmn.isSpecies?(:LUCARIO)})
    Insert this in an Event, and the result "ret" will contain the index of Lucario in the screen (or be -1 if you cancel without selecting Lucario).

    EDIT: I forgot to say: then store the team somewhere, and set the trainer team to only contain Lucario
    Code:
    scene = PokemonParty_Scene.new
    screen = PokemonPartyScreen.new(scene,$Trainer.party)
    ret = screen.pbChooseAblePokemon(proc { |pkmn| return pkmn.isSpecies?(:LUCARIO)})
    if ret > -1
      $game_variables[XXX] = [pk for pk in $Trainer.party]
      $Trainer.party = [$Trainer.party[ret]]
    end

    and then, when you're done, give the complete team back:
    Code:
    $Trainer.party = $game_variables[XXX]
    $game_variables[XXX] = nil
     
    Last edited:
    Essentials V19 was released on April 27th, so no, this is for V18.
     
    Back
    Top