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

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