• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Resource icon

Pokemon Exploration 1

Pokémon Essentials Version
v17.2 ➖
This script adds in Pokemon Exploration, where you send off your pokemon to find items. It's loosely based off one of the Poke Pelago Islands.
To use it, you must create an event that takes the pokemon, using pbChooseNonEggPokemon to select the pokemon and pbExplorationDeposit to to deposit them, taking the party index as an argument. The script has no restriction on the length of the exploration team, but only 8 pokemon fit on the included display screen. 9 pokemon causes them to get cut in half.

Next, you must call pbExplorationItemPool with an array of item ids or symbols to define the possible treasure that a pokemon can find. The script picks one at random, so just include duplicate entries to weigh items more or less commonly.

To start an exploration, call pbExplorationState.pbStart(steps), where steps is the number of steps required to complete the expedition. To check if an expedition is complete after starting it, call pbExplorationState.inProgress?, which returns true if there are still more steps remaining.

After an expedition, call pbRecieveExplorationItems to receive any items found. If the player does not have room, the excess items are lost. To return the pokemon, call pbExplorationChoose, which takes the text to say and the variable to save the selected index and name, and give the resulting index to pbExplorationWithdraw, which actually returns the pokemon. Neither method checks if there is space in the party, and the latter will raise an error if you give an index that does not exist.

Included is a display that shows the current party, the remaining steps and the the last item found. call it with
Code:
pbFadeOutIn(99999){
     scene =PokemonExploration_Scene.new
     screen=PokemonExplorationScreen.new(scene)
     screen.pbStartScreen
   }
43a2Rjq.png


7q93hi5.png

cu8k76K.png
Credits
Just me
Author
Vendily
Downloads
776
Views
1,448
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Vendily

Back
Top