thepsynergist
Vinemon: Sauce Edition Programmer and Composer
- 790
- Posts
- 16
- Years
- California, USA
- Seen May 3, 2025
So, it's been a few years since I've been on this forum, and I decided to pickup and finish Pokemon Pyrite. However, I've a question regarding one of the Pokemon in my game.
I wanted to know if there's a way I can modify the script that handles Master Ball function and make it so it doesn't work on either a specific Pokemon, or a Pokemon whose rareness value is 0.
Now, here's the caveat. Since it's been so long since I've been here, Pokemon Essentials versions have vastly improved. The version I'm using is from a build made in 2010, so the code will probably be antiquated.
If anyone can figure this out, that'd be awesome. If all goes well, my game should be done by next month, if anyone still follows Pokemon Pyrite.
I wanted to know if there's a way I can modify the script that handles Master Ball function and make it so it doesn't work on either a specific Pokemon, or a Pokemon whose rareness value is 0.
Now, here's the caveat. Since it's been so long since I've been here, Pokemon Essentials versions have vastly improved. The version I'm using is from a build made in 2010, so the code will probably be antiquated.
if x>255 || isConst?(ball,PBItems,:MASTERBALL)
shakes=4
else
x=1 if x==0
y = 0x000FFFF0 / (Math.sqrt(Math.sqrt( 0x00FF0000/x ) ) )
shakes+=1 if pbRandom(65536)<y
shakes+=1 if pbRandom(65536)<y
shakes+=1 if pbRandom(65536)<y
shakes+=1 if pbRandom(65536)<y
end
If anyone can figure this out, that'd be awesome. If all goes well, my game should be done by next month, if anyone still follows Pokemon Pyrite.
Last edited by a moderator: