Honey Tree
4.10
Description Loading...
Credits:
Invis
How To
We will start with adding the tiles and creating blocks for the honey tree, then applying a script to use the Honey item to roll for an encounter.
NOTE: This setup uses the Rock Smash encounter table so it is recommended that you NOT use any rock smash boulders on the same map as your honey tree. It will not cause any problems but the encounters will be the same.
NOTE: It is recommended, although not required, that you set the encounter rate to 100 for maps using the honey tree.

Graphic
You can attempt to copy and paste the tiles into HMA but I just redrew them by hand.
This tree is symmetrical so you only need half of the tiles and you can mirror them when creating blocks.

(Right click, save image as)
Palette Codes from light to dark in hex:
EEEE52
CDCD52
9CA44A
838352
626A41
5A5A31
31315A
4A4131
4A4131
Script
Use a Signpost tile and set Kind: to Facing Any
Apply the following script to to the tiles
NOTE: All honey tree signpost tiles can share the same script address
section0:
lockall
checkitem Honey 1
if.no.goto <section1>
msgbox.yesno <auto>
{
Do you want to put some honey on
this tree to attract Pokemon?
}
if.no.goto <section2>
removeitem Honey 1
msgbox.default <auto>
{
[player] puts some honey on
the tree.
}
closeonkeypress
special RockSmashWildEncounter
releaseall
end
section1:
msgbox.default <auto>
{
This tree looks like a good place to
attract wild Pokemon with honey.
}
releaseall
end
section2:
closeonkeypress
releaseall
end


The concept for this should, in theory, work in other games, however I have not tested this. You would need to check for an item that exists in your game since honey is an item added via HUBOL.
Happy Hacking!
