So I haven't found any Honey Trees' tutorials for Pokémon Essentials that are recent or even up today.
And since I'm adding them into my fangame, I'd like to share with everyone how to do them ^^.
Okay, so first of all we have to create a Honey encounter, so you have to add those fields into each Array
In the first one add after 'Bug contest = 12' (Or the last one of your project)
Honey = 13 (Or the last number of your array)
Them on 'Names' add (remember the commas before the stuff we're adding):
"Honey"
On 'EnctypeChances' add the combination you want, remember it has to be exactly 100. In my example I added:
[40,40,15,4,1]
Finally, add a 100 on ' EnctypeDensities' and a 0 on 'EnctypeCompileDens' at the end of each one
Ok, now that we have created the EncounterType, we will create a script that will provoque a Honey Encounter.
On PField_FieldMoves, search for 'def pbRockSmashRandomEncounter' and add below it:
def pbHoneyEncounter
pbEncounter(EncounterTypes::Honey)
end
Now that we've done both things, here's the event, it has three pages, but you can make it up to four/five if you want the Pokémon to leave after the ate the honey.
Page 1:
https://drive.google.com/open?id=1TnfSx3nV-zhCtzZrWA1P5iO9myC3RjxR
We create a conditional branch so we see if the player has HONEY to use:
Then we ask the player if he want to put honey on the tree. If the player says yes, we erase one honey from its bag, we setup a self-switch and a timer (Essentials comes with a 24 hour one, in my example I use a one hour but you can always switch it by copying to another switch and changing the number inside the '()'.
Code for deleting the item:
Page 2:
https://drive.google.com/open?id=1y8kCqw5uSrAThfdbtkKdFAxUbhvC9eE_
It's just a holder until the timer has passed, just add a message like "Any Pokémon have come, wait a bit longer!" or somethin like that.
Page 3:
https://drive.google.com/open?id=1eorL_YklUdUfa0XEtdOgV_Kj6m7RGw22
So I added a SE and some animations to make the scene more realistic, but the only two things you really have to add here, are setting the self switch off, and 'Kernel.pbHoneyEncounter'.
I think it looks better to add some animations and tho, so you don't just interact with the tree and encounter jumps on you with no explanation xD.
Okay so that's all you need to make one Honey Tree in Pokémon Essentials. If you want to see a version with a timer like on DPP I'll add it under this one ^^
And since I'm adding them into my fangame, I'd like to share with everyone how to do them ^^.
Okay, so first of all we have to create a Honey encounter, so you have to add those fields into each Array
Spoiler:
In the first one add after 'Bug contest = 12' (Or the last one of your project)
Honey = 13 (Or the last number of your array)
Them on 'Names' add (remember the commas before the stuff we're adding):
"Honey"
On 'EnctypeChances' add the combination you want, remember it has to be exactly 100. In my example I added:
[40,40,15,4,1]
Finally, add a 100 on ' EnctypeDensities' and a 0 on 'EnctypeCompileDens' at the end of each one
Ok, now that we have created the EncounterType, we will create a script that will provoque a Honey Encounter.
Spoiler:
On PField_FieldMoves, search for 'def pbRockSmashRandomEncounter' and add below it:
def pbHoneyEncounter
pbEncounter(EncounterTypes::Honey)
end
Now that we've done both things, here's the event, it has three pages, but you can make it up to four/five if you want the Pokémon to leave after the ate the honey.
Page 1:
Spoiler:
https://drive.google.com/open?id=1TnfSx3nV-zhCtzZrWA1P5iO9myC3RjxR
We create a conditional branch so we see if the player has HONEY to use:
Code:
$PokemonBag.pbHasItem?(:HONEY)
Then we ask the player if he want to put honey on the tree. If the player says yes, we erase one honey from its bag, we setup a self-switch and a timer (Essentials comes with a 24 hour one, in my example I use a one hour but you can always switch it by copying to another switch and changing the number inside the '()'.
Code for deleting the item:
Code:
$PokemonBag.pbDeleteItem(:HONEY)
Page 2:
Spoiler:
https://drive.google.com/open?id=1y8kCqw5uSrAThfdbtkKdFAxUbhvC9eE_
It's just a holder until the timer has passed, just add a message like "Any Pokémon have come, wait a bit longer!" or somethin like that.
Page 3:
Spoiler:
https://drive.google.com/open?id=1eorL_YklUdUfa0XEtdOgV_Kj6m7RGw22
So I added a SE and some animations to make the scene more realistic, but the only two things you really have to add here, are setting the self switch off, and 'Kernel.pbHoneyEncounter'.
I think it looks better to add some animations and tho, so you don't just interact with the tree and encounter jumps on you with no explanation xD.
Okay so that's all you need to make one Honey Tree in Pokémon Essentials. If you want to see a version with a timer like on DPP I'll add it under this one ^^
Last edited: