Epi320
September 26, 2024, 12:00pm
1
Yooo, I’m back guys!
this is the code for my fishing map, but, umm, it gives me all the drops.
you can fix this by using if else blocks, but the problem is, I reset it every time, so why does it give me all drops?
(someone pls figure out if all if blocks are run at once.)
1 Like
you need to use “else if” blocks, not “if do” blocks, as it runs all of the blocks
Epi320
September 26, 2024, 12:03pm
3
OHHHHHHHHHHHHHHHHHHH.
UR A GEINUS
(how did i not see that.)
is there anything else that I’m doing wrong?
1 Like
nah looks right to me, considering i used the exact same system a while back
Epi320
September 26, 2024, 12:03pm
5
wait a min, I reset the var
everytime in the if blocks. (does gimkit run all ifs at once?)
1 Like
also you can use the setting icon to save blocks!
1 Like
It very advanced.
Other blocks also have this setting!
1 Like
Epi320
September 26, 2024, 12:04pm
8
so @PhoenixWander so al if blocks are run at once? not in order from top to bottom?
basically, it doesn’t stop if it it triggers 1
Epi320
September 26, 2024, 12:05pm
11
oh. but I reset it every time…
it should be zero by the time it goes to the second if block
huh weird…
ig try just replacing all the if do blocks with 1 big if do - else if block
Epi320
September 26, 2024, 12:08pm
13
yeah ik. I’m gonna do that. I just wondered if the if blocks all run at once.
I’ma change the titles
yea first guide i found uses else if
image broke
Epi320
September 26, 2024, 12:11pm
15
I FIGURED IT OUT
When its zero its smaller than all of it, so it give all drop
nice, guess that would do it lol
1 Like
system
Closed
September 26, 2024, 3:12pm
17
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.