• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
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:
Expand Collapse Copy
pbFadeOutIn(99999){
     scene =PokemonExploration_Scene.new
     screen=PokemonExplorationScreen.new(scene)
     screen.pbStartScreen
   }
43a2Rjq.png


7q93hi5.png

cu8k76K.png
Credits
Just me
Author
Vendily
Downloads
860
Views
1,512
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Vendily

Back
Top