• 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!
  • 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.

DPPt Honey Trees

This script adds in Honey Trees from DPPt, and all the bells and whistles as described on Bulbapedia. That means Tree Shakes, The Group A/B/C, Munchlax trees, all that jazz.

To use it, you must create an event named HoneyTree(X), where X is the tree's id (zero indexed). More than one event can have the same id, they will act like the same tree in that case. The script will find these events when you interact with them, much like how boulders ask to use strength.
Place these events at the base of your honey tree. They can only be interacted from the the bottom (facing up). Remove the next if $game_player.direction!=8 to disable that behavior.
You can technically put event commands in the Honey Tree event, but they activate after the honey tree asks to slather honey.
The species is fixed as soon as the honey is applied, much like DPPt. Soft resets will only change the generated properties like level and nature.
There are 4 Munchlax trees, calculated using the HONEYTREE_MAX_TREES and the Trainer id. If HONEYTREE_MAX_TREES is less than 4, the Munchlax trees will stack up. I don't recommend fewer than 5 trees, but it won't break.

You'll probably get a better understanding of the script if you read the Bulbapedia page for Honey Trees.

Get it here!
 
Getting this error
Spoiler:
 
Getting this error
Spoiler:

It's not a script call, you need to name the event itself HoneyTree(1)
 
Yeah! That was what I first did, but nothing happened!

Well, I can't see what you've tried. Have you tried to talk to the event from the bottom?
It should comment on the sweet scent and offer to let you put on honey if you have it in your bag.
then you have to wait HONEYTREE_TIME_ENCOUNTER seconds for the tree to show what it generated. I had it set to 10 seconds while testing, but changed it back to the standard 6 hours of dppt before release.
 
Hi! First of all, incredible script!!!! Congratulations!
Having said that, I am now having a small problem and it is that there are several functions that are not previously defined, such as pbHasItem?, for example. Is there like a dependency script, or something like that, or what scripts should I have apart from this, if any?

Thank you very much for everything.
 
Hi! First of all, incredible script!!!! Congratulations!
Having said that, I am now having a small problem and it is that there are several functions that are not previously defined, such as pbHasItem?, for example. Is there like a dependency script, or something like that, or what scripts should I have apart from this, if any?

Thank you very much for everything.

$PokemonBag.pbHasItem?(:HONEY) is a method on the bag, and it's equivalent to $PokemonBag.pbQuantity(:HONEY)>0
Are you perhaps on v16? I know the has item method doesn't exist in that version, and it uses the quantity method instead.
 
When I say, I want to apply honey-
Spoiler:


Line 122- species=getID(table[rand(table.length)])
 
When I say, I want to apply honey-
Spoiler:


Line 122- species=getID(table[rand(table.length)])

aw man, i missed that one, that getID is completely unnecessary, and i removed it.
sorry
 
Back
Top