- 132
- Posts
- 10
- Years
- New Brunswick
- Seen May 6, 2023
I have a feeling this will be the last question I have for the moment. Thanks all for the help so far.
So there are these quests in my game that temporarily allow the player to play as one of his party pokémon with the command $game_variables[34]=x, where x is the sprite of the overworld pokémon. The sucky thing about this though is that, because x is a constant, the player has to use the specified pokémon in accord with the script (i.e., there's an event that checks to see if the player has a clefairy. If the script returns true, the player picks the clefairy and his sprite changes accordingly, as shown in the pic below).
My question is, how can the player choose whichever pokémon he has in his party, rather than have a predetermined pokémon he has to have caught? It'd be nice for a script to pull out the pokémon's number—001.png, 001s.png, 002.png, and so on—from a separate folder called "pokemon overworld sprites" and not the characters folder, just for simplicity. If I have to make a new script section and do each pokémon manually then I can do that.
Thanks!
So there are these quests in my game that temporarily allow the player to play as one of his party pokémon with the command $game_variables[34]=x, where x is the sprite of the overworld pokémon. The sucky thing about this though is that, because x is a constant, the player has to use the specified pokémon in accord with the script (i.e., there's an event that checks to see if the player has a clefairy. If the script returns true, the player picks the clefairy and his sprite changes accordingly, as shown in the pic below).
![[PokeCommunity.com] Changing Overworld Sprite [PokeCommunity.com] Changing Overworld Sprite](https://cdn.pbrd.co/images/1yKARzir.png)
My question is, how can the player choose whichever pokémon he has in his party, rather than have a predetermined pokémon he has to have caught? It'd be nice for a script to pull out the pokémon's number—001.png, 001s.png, 002.png, and so on—from a separate folder called "pokemon overworld sprites" and not the characters folder, just for simplicity. If I have to make a new script section and do each pokémon manually then I can do that.
Thanks!