• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script: Walk In Storage Boxes

Yes you can. The script place a pokemon cry when you interact with an pokemon. You can replace that in the script code with your functionality.
Search for
Code:
def pbPlayCryOnOverworld(pokemon,form=0,volume=30,pitch=100) # default volume=90
  return if !pokemon || pitch <= 0
  form = 0 if form==nil
  if pokemon.is_a?(Pokemon)
    if !pokemon.egg?
      GameData::Species.play_cry_from_pokemon(pokemon,volume,pitch)
    end
  else
    GameData::Species.play_cry_from_species(pokemon,form,volume,pitch)
  end
end
in the script code and put in the code for the menu you want to open when interacting.
Code:
def pbPlayCryOnOverworld(pokemon,form=0,volume=30,pitch=100)
  # put the pokemon menu effect you want to open here
end
See in UI section of the the pokemon essentials code to see how the default menu does it and learn how to reproduce it.
So I tried doing something similar to make the pokemon give a random berry each day, but the only thing that happens is the pokemon's cry gets played and that's it. No berry, no crashing, just like I didn't change anything at all. Any idea how to make it work?
 
So I tried doing something similar to make the pokemon give a random berry each day, but the only thing that happens is the pokemon's cry gets played and that's it. No berry, no crashing, just like I didn't change anything at all. Any idea how to make it work?

If you want to add, remove or modify a plugin for pokemon essentials, then you have to make sure that pokemon essentials reloads all plugins at the beginning of your playtest. This means that you must run the compiler at the beginning of a new playtest by pressing shift or tab or I don't know. Please read the instructions for pokemon essentials and its plugin manager. If you have done it correctly, then pokemon essentials notices the changes.
 
Back
Top