- 282
- Posts
- 6
- Years
- Seen Feb 3, 2025
Hi, I'm trying to change the scripts so the movesets for wild Pokemon (and possibly trainer Pokemon) are generated differently. I am trying to make it so rather than having the Pokemon generated with the 4 most recent moves in its level-up movepool given its current level, the Pokemon will be generated with a random 4 moves that are in its level-up movepool up to the level it is currently at. For example, if a Pokemon has the moves defined in pokemon.txt as 1,GROWL,3,TACKLE,5,POUND,10,BITE,15,FURYATTACK,20,CRUNCH and it is level 17, it should have a moveset consisting of a random 4 moves out of Growl, Tackle, Pound, Bite, and Fury Attack, but not including Crunch. As far as I know, the script is currently set to give it the last 4 moves up to the level it is at so it couldn't have Growl. I am doing this so one doesn't have to necessarily use heart scales or breed to get old moves that are desired on the Pokemon (if I wanted Growl in this case). I was looking around the scripts and it seems as though this could be done in the PokeBattle_Pokemon or PField_Encounters script.