Scoreboard variable: I need help

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

Itqly_

Member
Sep 20, 2018
29
1
0
30
Hello guys I toke this Skript from the internet and modified it my self, I just wanted to add a variable, in this case money, to the player's scoreboard.
I'm new to Skript so I ask u guys how can I make this work

code_language.skript:
on join:
    wait 3 ticks
    wipe player sidebar
    set name of sidebar of player to " "
    set score "&f&m--------------" in sidebar of player to 15
    set score "&7Name: &f%player%" in sidebar of player to 14
    set score "" in sidebar of player to 13
    set score "&7Money: &f%player's money%" in sidebar of player to 12
    set score "  " in sidebar of player to 11
    set score "   " in sidebar of player to 10
    set score "    " in sidebar of player to 9
    set score "     " in sidebar of player to 8
    set score "&fItqly.g-s.nu" in sidebar of player to 7
    while player is online:
        set name of sidebar of player to "&f&lServer"
        wait 2.5 tick
        set name of sidebar of player to "&a&lS&f&lerver"
        wait 2.5 tick
        set name of sidebar of player to "&2&lS&a&le&f&lrver"
        wait 2.5 tick
        set name of sidebar of player to "&a&lS&2&le&a&lr&f&lver"
        wait 2.5 tick
        set name of sidebar of player to "&f&lS&a&le&2&lr&a&lv&f&ler"
        wait 2.5 tick
        set name of sidebar of player to "&f&lSe&a&lr&2&lv&a&le&f&lr"
        wait 2.5 tick
        set name of sidebar of player to "&f&lSer&a&lv&2&le&a&lr"
        wait 2.5 tick
        set name of sidebar of player to "&f&lServ&a&le&2&lr"
        wait 2.5 tick
        set name of sidebar of player to "&f&lServe&a&lr"
        wait 2.5 tick
        set name of sidebar of player to "&f&lServer"
        wait 2.5 tick
        set name of sidebar of player to "&f&lServer"
        wait 2.5 tick
        set name of sidebar of player to "&f&lServe&a&lr"
        wait 2.5 tick
        set name of sidebar of player to "&f&lServ&a&le&2&lr"
        wait 2.5 tick
        set name of sidebar of player to "&f&lSer&a&lv&2&le&a&lr"
        wait 2.5 tick
        set name of sidebar of player to "&f&lSe&a&lr&2&lv&a&le&f&lr"
        wait 2.5 tick
        set name of sidebar of player to "&f&lS&a&le&2&lr&a&lv&f&ler"
        wait 2.5 tick
        set name of sidebar of player to "&a&lS&2&le&a&lr&f&lver"
        wait 2.5 tick
        set name of sidebar of player to "&2&lS&a&le&f&lrver"
        wait 2.5 tick
        set name of sidebar of player to "&a&lS&f&lerver"
        wait 2.5 tick
        set name of sidebar of player to "&f&lServer"
        wait 2.5 tick
command /Money <Text> [<Player>] <Text>:
    trigger:
        if arg 1 is not set:
            player has permission "command.money":
                send "&7Money: &f%player's money%" to player
            else:
                send "&7You don't have the permission." to player
        if arg 1 is "give":
            player has permission "command.money.*":
                if arg 2 is not set:
                    send "&7Specify a player" to player
                if arg 2 is set:
                    if arg 3 is not set:
                        send "&7Specify the amount" to player
                    if arg 3 is set:
                        add %arg 3% to the %arg 2%'s balance
        if arg 1 is "take":
            player has permission "command.money.*":
                if arg 2 is not set:
                    send "&7Specify the player" to player
                if arg 2 is set:
                    if arg 3 is not set:
                        send "&7Specify the amount" to player
                    if arg 3 is set:
                        remove %arg 3% from %arg 2%'s balance
        else:
            send "&7Usage: /&aMoney &7[&aGive&7/&aTake&7] [&aPlayer&7] [&aAmount&7]" to player
[doublepost=1537441970,1537441821][/doublepost]Its all messed up:
I hope you guys understood what I had in mind
[doublepost=1537444982][/doublepost]the addon Skript Im using are:
Skript
SkQuery
SkRayFall
 

Attachments

  • 2018-09-20_13.08.24.png
    2018-09-20_13.08.24.png
    528.8 KB · Views: 133
Do you have Vault and a economy plugin?
 
Yes, Vault so that you can use the balance in other plugins (including Skript) and the economy plugin for the economy ofcourse
 
Please click on Thread tools, Edit title and mark this thread as solved, so I can ignore this
 
Status
Not open for further replies.