MZ Rarity/probability of items in an event?

Hello I am currently trying my darnedest to create rare items within and event (the event being Let's Fish Fishing System by Anya and Lolo), anyone got any ideas? I have a feeling I may have to rewrite the whole thing... If it helps the Fishing System seems to be a bunch of Else If statements with control variable and switches, it's not a plugin.
If it helps the Fishing System seems to be a bunch of Else If statements with control variable and switches, it's not a plugin.
you can set the variable to a random number between... lets say 0 and 100, and then set up a few conditional branches with else blocks to determine what the player gets based on the value. how many you'd need depends on how many items you want the player to be able to get, but itd look like:

Code:
if var 1 > 50
  give common item
else
  if var 1 > 25
    give uncommon item
  else
    if var 1 > 10
      give rare item
    else
      give legendary item
Thanks Robro33, much appreciated. With the Let's Fish Fishing System by Anya and Lolo it has all theses funky animations (rod and catch) going on so I cannot see any other way of making this work other than adding a hundred or so Conditional Branches.... I am disappoint 🙁

Original thread: https://forums.rpgmakerweb.com/threads/rarity-probability-of-items-in-an-event.181921/