I've made a small change to the script for those of you who are using it or plan to use it. As it currently stands in the OP, there is only 1 random number generated for all 3 drops (Common, Uncommon, and Rare) so that means that if you get a rare drop, you will always get the common and...
This is a Proper Wild Item Drop script. I based my script on the work of Cilerba (https://reliccastle.com/threads/1332/)
I'd also like to say thank you to ThatWelshOne_, Vendily and Golisopod User for helping with parts of the script and pointing me in the right direction, respectively...
TungstenBasilisk submitted a new resource:
Proper Wild Item Drops (Based on Cilerba's Wild Item Drop Resource) - Proper Wild Item Drops
Read more about this resource...
For anyone using this script in v18.1, I've got it working properly. Just find this bit of code in 006_Pokebattle_Scene:
def pbWildBAttleSuccess
and replace that entire method with this:
def pbWildBattleSuccess
if @battle.battlers[1].pokemon.hasItem?
qty=rand(3)+1
if...