#Not Important
All hail the wishmaker
- 910
- Posts
- 5
- Years
- He/Him
- Hoenn
- Seen Jul 22, 2023
What is line 58?
Is there a way to add a wait to the Berry Tree. For example, after the Pokemon comes and steals the Berries, or when you leave the Berry Tree, you cannot use the tree for a little while.
Is there a way to set a control switch when an encounter with a pokemon happens. For example, I want to use it to alter the graphic of the berry tree. When the pokemon appears and steals the berries, the tree will appear to have no berries on it.
elsif $game_variables[101]=10
pbEncounter(EncounterTypes::BerryTree)
Kernel.pbMessage("Other pokemon took the berries left on the tree away...")
$game_switches[YOUR SWITCH] = true
exit=1#Exits
break
end
Change the relevant bit of code to this:And to answer your other question, I believe there is a function in essentials called pbCooldown or something of that sort you could use to your advantageCode:elsif $game_variables[101]=10 pbEncounter(EncounterTypes::BerryTree) Kernel.pbMessage("Other pokemon took the berries left on the tree away...") $game_switches[YOUR SWITCH] = true exit=1#Exits break end