- 12
- Posts
- 6
- Years
- Seen Jun 25, 2020
HI pokecommunity! Friends
Today I bring they a doubt and maybe someone can help me with it .. in my project of Pokémon Essentials, I try before a battle with a rival trainer realice a validation of the player's team, to know which is the Pokémon with the highest level... then save it in a variable and select that level for all pokémon of the rival trainer ..
then try to validate with:
Last using with each pokemon of the party:
But I do not know how to verify the whole group and compare to find out which is the highest level ... and then save that level in a variable.
How do they do it or what would you do? Thanks in advance. ☺️
Today I bring they a doubt and maybe someone can help me with it .. in my project of Pokémon Essentials, I try before a battle with a rival trainer realice a validation of the player's team, to know which is the Pokémon with the highest level... then save it in a variable and select that level for all pokémon of the rival trainer ..
then try to validate with:
Code:
[COLOR="DarkRed"]pbFirstAblePokemon(1)[/COLOR]
Last using with each pokemon of the party:
Code:
[COLOR="DarkRed"]pkmn=pbGetPokemon
pbSet(2,pkmn.level)[/COLOR]
But I do not know how to verify the whole group and compare to find out which is the highest level ... and then save that level in a variable.
How do they do it or what would you do? Thanks in advance. ☺️
Last edited: