- 7
- Posts
- 9
- Years
- Seen Nov 19, 2020
Hi, I'm using someone elses script which randomly generates pokemon in each instance you are going to battle one. I'm attempting to set it up in a way where the pokemon are in separate tiers based on base stats.
species = rand(PBSpecies.maxValue - 1) + 1
bs = PBSpecies::species.baseStats <-- this line is incorrect, but I have no idea what syntax or methods I should use
for i in 0..5
baseStatTotal += bs
end
I'm attempting to store the base stats of the randomly generated "species" into "bs" and then add them up in the loop but I'm crashing on use. What exactly should I write in for " bs = PBSpecies::species.baseStats" to get the base stats into "bs"
species = rand(PBSpecies.maxValue - 1) + 1
bs = PBSpecies::species.baseStats <-- this line is incorrect, but I have no idea what syntax or methods I should use
for i in 0..5
baseStatTotal += bs
end
I'm attempting to store the base stats of the randomly generated "species" into "bs" and then add them up in the loop but I'm crashing on use. What exactly should I write in for " bs = PBSpecies::species.baseStats" to get the base stats into "bs"