TLDR: In block code, you want to build something like
This is the loot table for Fishtopia, and the number can be changed to whatever you want. Make sure you have item granters that detect each broadcast to grant the item to the player.
or How to Make a Fishing System like Fishtopia | Gimkit Tutorial 4 - YouTube (26m warning)
Seeing as this was a FAQ in the Discord and looks to be on track to become one here. Iâve made a guide! Although this probably wonât help much, at least I tried ÂŻ_(ă)_/ÂŻ.
Bold = Keywords
Italics = Optional
So First you want to get a device that has the "wire pulse " in blocks. My favorite is the item granter but itâs your pick. Also, it can be " When Receiving on Channel " . The reason I like the item granter is that in the âfor this device section, " there is a Grant item with a custom amount block. You can make the item granter be selected to âBaitâ and in the Visual Code have: " Grant Player Selected Item (Custom Amount) " in the " amount *â bit have -1. The * integer block can be found in the " Math section ". First, make a variable. This variable can be called whatever you want but I like âNumâ or âNumberâ. Then place a âSet (Variable ) toâ: ârandom integer from (1) to (1000)â. If you didnât read the optional part. The integers are in the math tab. Then get an "if " Block with 3 "else ifs ". If blocks need a certain condition to be true for it to run. else if blocks run if the âifâ or âelse ifâ above them is false. else blocks run if all conditions are false. we are making the âfirst zoneâ loot table. On the first âifâ have âIf (Variable =< 700)â
Broadcast: âGray fishâ
Else If (Variable =< 850)
Broadcast: âGreen fishâ
Else If (Variable =< 950)
Broadcast: âRed fishâ
Else If (Variable =< 1000)
Broadcast: âBlue fishâ.
Then make a property named something like Bait #. in the item granter that grants bait. go to the âwhen item grantedâ block . and build this:
Set â1â to # of bait granted for every question.
use the âbaitâ property to turn the code above into the code below (Bold is new if block in this case)
âif (Get Property: Bait > 0)
Set Property Value to: Property:
Value: Get Property: Bait - 1
If (Variable =< 700)â
Broadcast: âGray fishâ
Else If (Variable =< 850)
Broadcast: âGreen fishâ
Else If (Variable =< 950)
Broadcast: âRed fishâ
Else If (Variable =< 1000)
Broadcast: âBlue fishâ
Else:
Broadcast Message on Channel: (Out of Bait Channel)
if you did everything correctly it should look something like this:
After this point Everything is optional
if you make a system to upgrade a property for a âFishingRodLevelâ Property
you can make this:
This will not allow you to get the gray fish or least valuable fish when you have upgraded your fishing rod!
If you add that to the system you can do this!
You can also use that to make a system where you need to unlock each fish! If you use and blocks you can build this.
Itâs a Bit Different (different maps).
Anyways. Thatâs it! I hope it helped!
ALSO, MAKE SURE ALL VARIABLES HERE ARE SET TO NUMBER
ALSO READ OTHER REPLIES BEFORE POSTING ONE, YOUR QUESTION MIGHT ALREADY BE ANSWERED