- Pokémon Essentials Version
- v20.1 ➖
PokéSearch (I know, clever name right?)
is a script that allows players to find the specific encounters they are looking for, and also allows berries to be more interesting.
It's a single UI script that allows the player to input a Pokémon that is available in the current map, enter a repel to increase the odds of a successful encounter, and add a berry in order to give the encounter some 'spice'.
Once they hit search they have a chance to encounter that specific Pokémon.
How to call the menu?
Run
How do I use it as an item?
Specifics?
Depending on the used repel the player will have a 10-100% chance of getting their preferred encounter.
The Pokémon will have the average level of the current map +- 2 levels.
Berries have specific effects on the encounter such as increasing the shiny odds.
I also wanna thank @ThatWelshOne_ for his help and couldnt have done it without looking at his the Encounter list UI script
Screenshots:
Here's a video of the script in action in Pokémon Ethos
All of the Repel & Berry effects:
is a script that allows players to find the specific encounters they are looking for, and also allows berries to be more interesting.
It's a single UI script that allows the player to input a Pokémon that is available in the current map, enter a repel to increase the odds of a successful encounter, and add a berry in order to give the encounter some 'spice'.
Once they hit search they have a chance to encounter that specific Pokémon.
How to call the menu?
Run
vPokeSearch
in a script command / item's use in field handlerHow do I use it as an item?
Open the
001_PokeSearch.rb
script and uncomment the 3 lines that read: ItemHandlers
Add the following code to
002_Item_Effects.rb
Ruby:
ItemHandlers::UseFromBag.add(:POKESEARCHITEM,proc { |item|
next 2
})
ItemHandlers::UseInField.add(:POKESEARCHITEM,proc { |item|
scene = PokeSearch_Scene.new
screen = PokeSearch_Screen.new(scene)
screen.pbStartScreen
next 1
})
Add the following code in any script above main (recommended to put this near the other :pause_menu entries)
Ruby:
MenuHandlers.add(:pause_menu, :pokesearch, {
"name" => _INTL("PokéSearch"),
"order" => 45,
"condition" => proc { next (GameData::Item.get(:POKESEARCH).nil? ? $player.able_pokemon_count > 0 : $bag.has?(:POKESEARCH)) },
"effect" => proc { |menu|
menu.pbHideMenu
scene = PokeSearch_Scene.new
screen = PokeSearch_Screen.new(scene)
screen.pbStartScreen
$game_temp.in_menu = false
next true
}
})
Add the following code to
add a
005_VoltseonMenu_Entires.rb
Ruby:
#-------------------------------------------------------------------------------
# Entry for PokeSearch Screen
#-------------------------------------------------------------------------------
class MenuEntryPokeSearch < MenuEntry
def initialize
@icon = "menuPokeSearch"
@name = "PokéSearch"
end
def selected(menu)
menu.pbHideMenu
scene = PokeSearch_Scene.new
screen = PokeSearch_Screen.new(scene)
screen.pbStartScreen
$game_temp.in_menu = false
return true
end
def selectable?; return vHI("PokeSearch"); end
end
add a
menuPokeSearch.png
graphic to the Voltseon's Pause Menu folder in Graphics/Pictures and add "MenuEntryPokeSearch"
to the MENU_ENTRIES array in 001_VoltseonMenu_Config.rb
Specifics?
Depending on the used repel the player will have a 10-100% chance of getting their preferred encounter.
The Pokémon will have the average level of the current map +- 2 levels.
Berries have specific effects on the encounter such as increasing the shiny odds.
I also wanna thank @ThatWelshOne_ for his help and couldnt have done it without looking at his the Encounter list UI script
Screenshots:
Here's a video of the script in action in Pokémon Ethos
All of the Repel & Berry effects:
- Credits
- Voltseon (Me)