• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Lucky Ball

Lucky Ball 2021-06-20

Pokémon Essentials Version
v17.2 ➖

By Doodi94
Work on Pokemon Essentials 17.2. Probably work on other versions but I'm not sure.​
Overview
Hello everyone !
I've created for my game a Lucky Ball which has a normal catchrate but increases the Exp. gained by the Pokémon caught with it as if it is holding a Lucky Egg. It is compatible with EBS

How to install

- First add this line to your Items PBS (change XXX to the first available ID for your item)
XXX,LUCKYBALL,Chance Ball,Chance Balls,3,1400,"A Poké Ball which increase the Exp. gained by the caught Pokémon.",0,2,4,

As I'm French I named it Chance Ball but name it as you want.

- Then add the following script :

1) In PItem_PokeBalls after

Ruby:
Expand Collapse Copy
$BallTypes={
   0=>:POKEBALL,
   1=>:GREATBALL,
   2=>:SAFARIBALL,
   3=>:ULTRABALL,
   4=>:MASTERBALL,
   5=>:NETBALL,
   6=>:DIVEBALL,
   7=>:NESTBALL,
   8=>:REPEATBALL,
   9=>:TIMERBALL,
   10=>:LUXURYBALL,
   11=>:PREMIERBALL,
   12=>:DUSKBALL,
   13=>:HEALBALL,
   14=>:QUICKBALL,
   15=>:CHERISHBALL,
   16=>:FASTBALL,
   17=>:LEVELBALL,
   18=>:LUREBALL,
   19=>:HEAVYBALL,
   20=>:LOVEBALL,
   21=>:FRIENDBALL,
   22=>:MOONBALL,
   23=>:SPORTBALL

add

Ruby:
Expand Collapse Copy
   24=>:LUCKYBALL

(Don't forget to put a comma after SPORTBALL and change the 24 to the first available number if you already have balls after SPORTBALL)

2) In PokeBattle_Battle after

Ruby:
Expand Collapse Copy
    if isOutsider
      if thispoke.language!=0 && thispoke.language!=self.pbPlayer.language
        exp=(exp*1.7).floor
      else
        exp=(exp*3/2).floor
      end
    end
    exp=(exp*3/2).floor if isConst?(thispoke.item,PBItems,:LUCKYEGG) ||
                           isConst?(thispoke.itemInitial,PBItems,:LUCKYEGG)

add

Ruby:
Expand Collapse Copy
    if thispoke.ballused==pbGetBallType(:LUCKYBALL)
      exp=(exp*3/2).floor
    end

(Change 3/2 if you want the Exp. gained multiplier to be different)

- Finally, download the Graphics and put it in the respective folders (ignore the EBS graphics if you don't use EBS)
Replace the XXX of the icon graphic by the Items PBS ID
Replace the XX of the other graphics by 24 (or the number you have in the script instead of 24)
Make sure to not paste over modified stuff you don't want to delete.
Credits
Credit me if you want to use it :
Doodi94
Author
Doodi94
Downloads
420
Views
2,051
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top