- 15
- Posts
- 4
- Years
- 서울
- Seen Sep 8, 2020
Pseudocode:
It applies to all encounters and Pokemon trainer battles both NPC and Gym
1. Check party pokemon's levels.
2. Select the highest level pokemon in your team.
3. Generate a pokemon wild or trainer based on the highest level pokemon possessed. The limit would be two levels above or below. For example: You have a level 15 Mudkip. The Pokemon generated would range from level 13 to 17.
4. Check how many badges you possess. Depending on the badge, the trainer will have a different set of Pokemon whose level match according to step 3.
5. If the trainer possesses a Pokemon which has a level at or exceeding its evolutionary level, evolve the pokemon. For example: A grunt has a level 25 Zubat and Ratatta. Make the game have them become a Golbat and Raticate because they exceed their evolution levels of 22 and 20.
Optional: With number 5 in place, is there a way I can have the trainer analyze your Pokemon party's type and then randomly pick a non legendary Pokemon from a provided list of pokemon of that type to own?
Or can I set the trainer to pick a Pokemon from a type group randomly?
Example:
My team: Spinarak 16 & Mudkip 15
Bug/Poison, Ground/Water
Battler generates: Drowzee 15 and Paras 16
Second Example:
Bug catcher: generates bug types from level 14 to 18 (due to Spinarak's level) from only bug type pokemon.
So one run he could have a Butterfree 18 and Dustox 15 but another run a Pinsir 16 and Beedrill 17.
I am looking to make an open world game with replayability.
Thank you. 😀
It applies to all encounters and Pokemon trainer battles both NPC and Gym
1. Check party pokemon's levels.
2. Select the highest level pokemon in your team.
3. Generate a pokemon wild or trainer based on the highest level pokemon possessed. The limit would be two levels above or below. For example: You have a level 15 Mudkip. The Pokemon generated would range from level 13 to 17.
4. Check how many badges you possess. Depending on the badge, the trainer will have a different set of Pokemon whose level match according to step 3.
5. If the trainer possesses a Pokemon which has a level at or exceeding its evolutionary level, evolve the pokemon. For example: A grunt has a level 25 Zubat and Ratatta. Make the game have them become a Golbat and Raticate because they exceed their evolution levels of 22 and 20.
Optional: With number 5 in place, is there a way I can have the trainer analyze your Pokemon party's type and then randomly pick a non legendary Pokemon from a provided list of pokemon of that type to own?
Or can I set the trainer to pick a Pokemon from a type group randomly?
Example:
My team: Spinarak 16 & Mudkip 15
Bug/Poison, Ground/Water
Battler generates: Drowzee 15 and Paras 16
Second Example:
Bug catcher: generates bug types from level 14 to 18 (due to Spinarak's level) from only bug type pokemon.
So one run he could have a Butterfree 18 and Dustox 15 but another run a Pinsir 16 and Beedrill 17.
I am looking to make an open world game with replayability.
Thank you. 😀