Chdonga
Pixel Artist/Spriter
- 24
- Posts
- 12
- Years
- Newgrounds
- Seen Dec 2, 2022
I've added this line to PTrainer_NPCTrainers which randomizes their pokemon:
But I need it to be restricted to non-legendaries and only what's in my regional dex. How do I do this without manually inputting 300+ pokemon as an exception?
Code:
if $game_switches[42]==true # Randomizer On
randompoke=rand(PBSpecies.maxValue)+1
species=randompoke
else
species=poke[TPSPECIES]
end
Last edited by a moderator: