• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

GALAR BERRY TREE [ESSENTIALS V18]

GALAR BERRY TREE​
This script replicates the Berry Tree from Galar


Features:
  • Complete Pulg-n-Play
  • Get a random Berry from the tree or encounter a Pokemon.
  • Choose weather you want realistic time-based Berry Tree event or a simple Tree.
  • Modify the Berries that you want to be fallen by editing the array `vbberries`

Usage:
  1. Goto `PField_Encounters` and add BerryTree Encounter type:-
    In `module EncounterTypes` add in the bottom-
    Code:
      BerryTree    = 13
    In `Names` array add in the last (add a comma after the second last value)
    Code:
    "BerryTree"
    In `EnctypeChances` array add in the last (add a comma after the second last value)
    Code:
         [20,20,10,10,10,10,5,5,4,4,1,1]
    In `EnctypeDensities` array add ,0 after last value
    In `EnctypeCompileDens` array add ,0 after last value

    The `PField_Encounters` would look like the following:-
    Spoiler:
  2. Add BerryTree Encounters in the PBS/Encounters.txt
    Code:
    BerryTree
    	CHERUBI,5,7
    	PIDGEY,5,7
    	SPEAROW,5,7
    	BURMY,5,7
    	SCYTHER,6,7
    	ARON,5,7
    	ODDISH,6,8
    	HOOTHOOT,4,7
    	HOOTHOOT,1,6
    	CHIMCHAR,5,6
    	PANSAGE,4,8
    	PANPOUR,5,6
  3. Add the following script above Main and below Compiler
    Spoiler:
  4. Create an event, and enjoy the script.

Events:
There can be two type of Event based on the BERRY_TREE_GALAR switch in the script.
If set to false, it is used to make a simple GALAR BERRY TREE Script, which will either drop berry or encounter a Pokemon every time you interact.
Spoiler:

If set to true, you can create a BerryTree which drops berry or encounter Pokemon only after a certain time.
Spoiler:


Credits:
  • BhagyaJyoti (Made for v18 with Berry Array fix and made more Plug-n-Play)
  • #NotImportant (Original Script for v17.2)
 
Last edited:
You should probably specificy that your are using Game Variable 101 in the script. But why exactly are you doing that.
 
You should probably specificy that your are using Game Variable 101 in the script. But why exactly are you doing that.

Yeah, why am I using that? Because I modified it from #NotImportant's code and thought it was no issue. But, people might use those variables in game. So fixed. Now it is chanceBerry.
 
GALAR BERRY TREE​
This script replicates the Berry Tree from Galar


Features:
  • Complete Pulg-n-Play
  • Get a random Berry from the tree or encounter a Pokemon.
  • Choose weather you want realistic time-based Berry Tree event or a simple Tree.
  • Modify the Berries that you want to be fallen by editing the array `vbberries`

Usage:
  1. Goto `PField_Encounters` and add BerryTree Encounter type:-
    In `module EncounterTypes` add in the bottom-
    Code:
      BerryTree    = 13
    In `Names` array add in the last (add a comma after the second last value)
    Code:
    "BerryTree"
    In `EnctypeChances` array add in the last (add a comma after the second last value)
    Code:
         [20,20,10,10,10,10,5,5,4,4,1,1]
    In `EnctypeDensities` array add ,0 after last value
    In `EnctypeCompileDens` array add ,0 after last value

    The `PField_Encounters` would look like the following:-
    Spoiler:
  2. Add BerryTree Encounters in the PBS/Encounters.txt
    Code:
    BerryTree
    	CHERUBI,5,7
    	PIDGEY,5,7
    	SPEAROW,5,7
    	BURMY,5,7
    	SCYTHER,6,7
    	ARON,5,7
    	ODDISH,6,8
    	HOOTHOOT,4,7
    	HOOTHOOT,1,6
    	CHIMCHAR,5,6
    	PANSAGE,4,8
    	PANPOUR,5,6
  3. Add the following script above Main and below Compiler
    Spoiler:
  4. Create an event, and enjoy the script.

Events:
There can be two type of Event based on the BERRY_TREE_GALAR switch in the script.
If set to false, it is used to make a simple GALAR BERRY TREE Script, which will either drop berry or encounter a Pokemon every time you interact.
Spoiler:

If set to true, you can create a BerryTree which drops berry or encounter Pokemon only after a certain time.
Spoiler:


Credits:
  • BhagyaJyoti (Made for v18 with Berry Array fix and made more Plug-n-Play)
  • #NotImportant (Original Script for v17.2)

heya buddy, that works for v19 too?
 
Back
Top