- 1
- Posts
- 3
- Years
- Seen Feb 21, 2022
This is my first foray into scripting. I did some research prior and have tried a couple different inputs. So far this is the only one I've tried that doesn't crash the game with a scripting error but it doesn't actually give the player any pokemon:
random3=rand(4)
if random3==0
pbAddPokemon(PBSpecies::CHARMANDER,5)
elseif random3==1
pbAddPokemon(PBSpecies::TORCHIC,5)
elseif random3==2
pbAddPokemon(PBSpecies::FENNEKIN,5)
elseif random3==3
pbAddPokemon(PBSpecies::LITTEN,5)
end
What is the appropriate way to make an event tile give a random reward?
random3=rand(4)
if random3==0
pbAddPokemon(PBSpecies::CHARMANDER,5)
elseif random3==1
pbAddPokemon(PBSpecies::TORCHIC,5)
elseif random3==2
pbAddPokemon(PBSpecies::FENNEKIN,5)
elseif random3==3
pbAddPokemon(PBSpecies::LITTEN,5)
end
What is the appropriate way to make an event tile give a random reward?