• 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.

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

  • 19
    Posts
    4
    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