#Not Important
All hail the wishmaker
- 910
- Posts
- 5
- Years
- He/Him
- Hoenn
- Seen Jul 22, 2023
Makes trainers give you pokeballs after you beat them...
Short script
Make sure that any trainer you want to give balls out has
Short script
Make sure that any trainer you want to give balls out has
pbTrainerEnd
at the end of its event
Code:
#-------------------------------------------------------------------------------
# Pokeballs after battle script by #NI
#
# No need to credit
#
#-------------------------------------------------------------------------------
ACTIVE = true #if the script is active...
#-------------------------------------------------------------------------------
# </>
module InterpreterFieldMixin
def pbTrainerEnd
pbGlobalUnlock
e = get_character(0)
e.erase_route if e
if ACTIVE
amt = rand(3)
Kernel.pbItemBall(:POKEBALL,amt)
end
end
end
Last edited: