Remove created bossbar (Skellett)

  • 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 comminuty!

    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.

PatoFrango

Active Member
Jul 12, 2017
240
14
18
Hi,

What do I have to do to remove a bossbar that I created with Skellett? I just used "set {_bar} to new bossbar" to create it, and now I don't know how to make it go away.
 
code_language.skript:
[skellett] (hide|show) bossbar %bossbar%
Yeah I know that, but what do I put where it says %bossbar%? Cause I did not name the bar and I have no way of identifying it, I don't even know how Skellett allowed me to simply create a "new bossbar" without giving it any sort of identification. I can post here the code that was used, I got it from an example from the docs:

code_language.skript:
command /bossbar:
    trigger:
        set {_bar} to new bossbar
        add player to bossbar {_bar}
        set the visibility of bossbar {_bar} to true
        add flag DARKEN_SKY to bossbar {_bar}
        broadcast "%all of the flags in bossbar {_bar}%"
        remove flag DARKEN_SKY from bossbar {_bar}
 
Yeah I know that, but what do I put where it says %bossbar%? Cause I did not name the bar and I have no way of identifying it, I don't even know how Skellett allowed me to simply create a "new bossbar" without giving it any sort of identification. I can post here the code that was used, I got it from an example from the docs:

code_language.skript:
command /bossbar:
    trigger:
        set {_bar} to new bossbar
        add player to bossbar {_bar}
        set the visibility of bossbar {_bar} to true
        add flag DARKEN_SKY to bossbar {_bar}
        broadcast "%all of the flags in bossbar {_bar}%"
        remove flag DARKEN_SKY from bossbar {_bar}
Maybe set the bar to a variable and try to use
code_language.skript:
set {lobby::bar} to new bossbar
skellett hide bossbar {lobby::bar}
or something
 
Maybe set the bar to a variable and try to use
code_language.skript:
set {lobby::bar} to new bossbar
skellett hide bossbar {lobby::bar}
or something
But how can I set "it" if I don't have any way of reffering to it?
 
Create a bossbar and store it...

code_language.skript:
command /bossbar:
    trigger:
        set {bar} to new bossbar
        add player to bossbar {bar}

...And hide the bossbar choosing one way from these ones below:

code_language.skript:
command /hidebossbar:
    trigger:
        hide bossbar {bar}
        set the visibility of bossbar {bar} to false
 
Create a bossbar and store it...

code_language.skript:
command /bossbar:
    trigger:
        set {bar} to new bossbar
        add player to bossbar {bar}

...And hide the bossbar choosing one way from these ones below:

code_language.skript:
command /hidebossbar:
    trigger:
        hide bossbar {bar}
        set the visibility of bossbar {bar} to false
Guys, the bossbar has already been created. I dont want to create another one, I want to delete an existing one that was created by a LOCAL variable, which is only acessible through its call event.
 
Guys, the bossbar has already been created. I dont want to create another one, I want to delete an existing one that was created by a LOCAL variable, which is only acessible through its call event.
I dont think you can do it via local vars/callnames, except for maybe (but idk)
code_language.skript:
set {_lvar} to new bossbar
set {bossbar::1} to {_lvar}
hide bossbar {bossbar::1}
 
I dont think you can do it via local vars/callnames, except for maybe (but idk)
code_language.skript:
set {_lvar} to new bossbar
set {bossbar::1} to {_lvar}
hide bossbar {bossbar::1}
That's just creating a new bossbar and trying to hide it... as I've said, I'm trying to hide an existing bossbar...
But I mean, it's okay if there's no solution - I'll just restore a backup on my server from a couple hours ago, as I haven't done much progress on it today. It would be interesting to know the solution though, "the more you know".

EDIT: I just rejoined the server and the bossbar went away by itself... this gets weirder every second. Anyway, it would STILL be interesting to know the solution.
 
Status
Not open for further replies.