#progressbar

1 messages · Page 1 of 1 (latest)

sage nebula
#

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.

mighty dove
#

Add the amount before calculating the bar

sage nebula
#

which function?

mighty dove
#

Well didnt look at the code since its refusing to download

sage nebula
#

Isn't it a dropdown file?

unreal rivet
sage nebula
#

It's too big for a snippet

mighty dove
mighty dove
unreal rivet
sage nebula
#

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.

unreal rivet
#

omg

#

i couldnt see it on mobile, but I can now

#

holy hardcoding

#

please use else ifs and stops

#

and loops

sage nebula
#

😭

#

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..

unreal rivet
#

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

sage nebula
#

And how would I integrate that into my progressbar?

unreal rivet
#
  if {progress} = 5 * loop-number-1:
    set {_bar} to ""
    loop loop-number-1 times:
      set {_bar} to "%{_bar}%&2|"
    broadcast "&8[%{_bar}%&8]"
    stop```
sage nebula
#

My brain goes 🤯