• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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] Uncatchable/unrunable pokemon

  • 29
    Posts
    2
    Years
    I want to make a story event in my game where you fight a legendary pokemon but you must defeat it and you can't run away or catch the pokemon, is this possible?
     
    Last edited:
  • 5
    Posts
    2
    Years
    • Seen Jan 15, 2023
    It currently works for Pokémon Essentials v20. Go to the 141 line of Battle_CatchAndStoreMixin and search this to make the wild Pokémon uncatchable:

    if trainerBattle? && !(GameData::Item.get(ball).is_snag_ball? && battler.shadowPokemon?)
    @scene.pbThrowAndDeflect(ball, 1)
    pbDisplay(_INTL("The Trainer blocked your Poké Ball! Don't be a thief!"))
    return

    and replace it with this new code in below:

    if trainerBattle? && !(GameData::Item.get(ball).is_snag_ball? && battler.shadowPokemon?)
    @scene.pbThrowAndDeflect(ball, 1)
    pbDisplay(_INTL("The Trainer blocked your Poké Ball! Don't be a thief!"))

    else
    if $game_switches[100]==true
    @scene.pbThrowAndDeflect(ball,1)
    pbDisplay(_INTL("The Pokémon attacked the Ball!\nSeems it cannot be caught!"))
    return
    end
    end

    Now when the 100 switch is on, the wild Pokémon will deflect the Poké ball, obviously you can change which switch to use with the line if $game_switches[100]==true.
     
    Back
    Top