- 276
- Posts
- 16
- Years
- Unova
- Seen May 14, 2025
While hunting down Pumpkaboo I noticed that the size that appears seems to be random much like Unown, instead of each size (form) having its own encounter rate like in XY.
So if you would like to add rarity to the different sizes, then this code is for you. (assuming you have the latest version of essentials or have already added Pumpkaboo to Pokemon_MultipleForms)
In the script editor, find Pokemon_MultipleForms and find PUMPKABOO (Ctrl + F is your friend)
and change
to (this also assumes that you use small for form 0)
Don't for get to do the same for Gourgeist!
Side Note: While testing this I got a Super Pumpkaboo on the first encounter and though I had inverted the code to make the larger sizes common and the smaller sizes rare. After staring at this for longer than I would like to admit, I came to the realization that there was nothing wrong with the code I just got really lucky.
So if you would like to add rarity to the different sizes, then this code is for you. (assuming you have the latest version of essentials or have already added Pumpkaboo to Pokemon_MultipleForms)
In the script editor, find Pokemon_MultipleForms and find PUMPKABOO (Ctrl + F is your friend)
and change
Code:
MultipleForms.register(:PUMPKABOO,{
"getFormOnCreation"=>proc{|pokemon|
[COLOR=Red]next [rand(4),rand(4)].min[/COLOR]
},
to (this also assumes that you use small for form 0)
Code:
MultipleForms.register(:PUMPKABOO,{
"getFormOnCreation"=>proc{|pokemon|
[COLOR=Red] next 3 if rand(20)==10 #Super 5%
next 2 if rand(20)>=18 #Large 15%
next 1 if rand(20)<=9 #Average 45%
next 0 #Small 35%[/COLOR]
},
Side Note: While testing this I got a Super Pumpkaboo on the first encounter and though I had inverted the code to make the larger sizes common and the smaller sizes rare. After staring at this for longer than I would like to admit, I came to the realization that there was nothing wrong with the code I just got really lucky.