Progress Bar

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

iParis

Member
Jan 28, 2017
48
2
0
Hey,

I'm creating a levelling skript and I was wondering if there was a way to create like a progress bar feature with an actual bar if not just a percentage amount of how far they have done the level.

If anyone has an idea on how I would go about this please help me

Thanks, Jack
 
Hey,

I'm creating a levelling skript and I was wondering if there was a way to create like a progress bar feature with an actual bar if not just a percentage amount of how far they have done the level.

If anyone has an idea on how I would go about this please help me

Thanks, Jack

What would the progress bar be for? You could do something like:
code_language.skript:
if {progressbar::%player%} is "100":
    #Do stuff
and set it with:
code_language.skript:
set {progressbar::%player%} to "100":
Here is an example: (You need the addon umbaska)
code_language.skript:
command /level:
    trigger:
        if {progressbar::%player%} is not set:
            set {progressbar::%player%} to "0"
        if {progressbar::%player%} is "100":
            send action bar from "&a&l||||||||||" to player
        if {progressbar::%player%} is "90":
            send action bar from "&a&l|||||||||&8&l|" to player
 
  • Like
Reactions: Dylan The Beast
@Brendo99 Something like that maybe and it'd show how far the player has progress through the level
 

Attachments

  • 3369e6918e6bc2ed2dcb8df8f850fafd9bf46de7.png
    3369e6918e6bc2ed2dcb8df8f850fafd9bf46de7.png
    67.1 KB · Views: 826
I edited my post soon as you posted this, check now :emoji_stuck_out_tongue:
If I was doing it that way I'd have to do each progress for every level would there be a way to do this in a "easier" way?
 
code_language.skript:
set {_lvl} to {llvVar::%player%}/10
set {_process} to "&a"
loop 10 times:
    if loop-num is {_lvl}:
        set {_process} to "%{_process}%&f"
    set {_process} to "%{_process}%-"
send action bar from {_process} to player
That might work, not tested.
 
code_language.skript:
set {_lvl} to {llvVar::%player%}/10
set {_process} to "&a"
loop 10 times:
    if loop-num is {_lvl}:
        set {_process} to "%{_process}%&f"
    set {_process} to "%{_process}%-"
send action bar from {_process} to player
That might work, not tested.
I don't think it does :emoji_thinking:
 
Status
Not open for further replies.