Hi, I made this lil piece of something and it works. But the progress bar only updates when I am e.g over 5%, the first bar should be added immediately when I get over 5%, not after the second time. Same with leveling up. If I have 100%, the levelup should be triggered directly at 100%. For me, for example, 101.43% is displayed when I go over it. But that shouldn't happen.
#progressbar
1 messages · Page 1 of 1 (latest)
Add the amount before calculating the bar
which function?
Well didnt look at the code since its refusing to download
Isn't it a dropdown file?
Dont need to download it. OP should provide a snippet
It's too big for a snippet
on phone its not
on the break event move the progressbar(player, "lumberjack") below jobtype(player, "wood", "lumberjack", "")
A snippet is not embedded code, but a small piece of said code — where the issue comes from
But I have already shortened the code so that you can find the error.
Anyways, moving the functions doesn't work. Stays the same as before.
omg
i couldnt see it on mobile, but I can now
holy hardcoding
please use else ifs and stops
and loops
😭
I can't skript good. I just write out what I am thinking. And if it works I am happy.. I can't write them clever..
instead of broadcast "Event starts in 10 seconds!" wait 1 second broadcast "Event starts in 9 seconds!" wait 1 second broadcast "Event starts in 8 seconds!" wait 1 second ...useloop 10 times: broadcast "Event starts in %11 - loop-number% seconds!" wait 1 second
And how would I integrate that into my progressbar?
if {progress} = 5 * loop-number-1:
set {_bar} to ""
loop loop-number-1 times:
set {_bar} to "%{_bar}%&2|"
broadcast "&8[%{_bar}%&8]"
stop```
My brain goes 🤯