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