• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

Script: Check if there isn´t a Pokemon of a specific type in Pokemon Essentials V.18

  • 19
    Posts
    5
    Years
    • Seen Oct 27, 2023
    I don´t know if someone else has already done it and it´s very simple so most people won´t have any problems adding it at all but for anyone that wants to add a script that checks if the player does NOT have a Pokemon of that specific type in the party.

    Just paste below the script of "def pbHasType?(type)" this:
    def pbHasntType?(type)
    type = getID(PBTypes,type)
    for pokemon in $Trainer.pokemonParty
    return false if pokemon.hasType?(type)
    end
    return true
    end

    So if you do a conditional branche with the script and paste "pbHasntType?(:FIGHTING)" and the player has at least one Pokemon that isn´t Fighting or part fighting type, it´ll return to false.
    This could be a nice little script if you want to add a mono type nuzlocke to your game.

    If there´s already a script like this here on Pokecommunity (which is very likely) I apologize.
     
    Back
    Top