Solved Variables in lists?

  • 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.
Sep 2, 2021
13
0
1
18
Im working on a clicking server with pets, boosts and etc. but I want a block multiplier. When you hit the block you get 2 x clicks but I dont want it to be there forever. So when you hit it 20 times it disapers and comes back after a minut.

What i got:

Code:
on left click on yellow wool:
    set {punch.%player%} to {punch.%player%} * 2
 
Code:
command /multi <player> <integer> <integer>:
    trigger:
        set {multi::%arg-1's uuid%::amount} to arg-2
        set {multi::%arg-1's uuid%::left} to arg-3

on left click on yellow wool:
    if {multi::%player's uuid%::amount} is set:
        if {multi::%player's uuid%::left} is more than 0:
            remove 1 from {multi::%player's uuid%::left}
            set {punch::%player's uuid%} to {punch::%player's uuid%} * {multi::%arg-1's uuid%::amount}
        else:
            delete {multi::%arg-1's uuid%::*}
            add 1 to {punch::%player's uuid%}
    else:
        add 1 to {punch::%player's uuid%}

Command usage: /multi <player> <multiplier amount> <punches until it runs out>
e. g.: /multi Minecoll_YT 2 20 (it would give me 2x the points for 20 punches)
 
Code:
command /multi <player> <integer> <integer>:
    trigger:
        set {multi::%arg-1's uuid%::amount} to arg-2
        set {multi::%arg-1's uuid%::left} to arg-3

on left click on yellow wool:
    if {multi::%player's uuid%::amount} is set:
        if {multi::%player's uuid%::left} is more than 0:
            remove 1 from {multi::%player's uuid%::left}
            set {punch::%player's uuid%} to {punch::%player's uuid%} * {multi::%arg-1's uuid%::amount}
        else:
            delete {multi::%arg-1's uuid%::*}
            add 1 to {punch::%player's uuid%}
    else:
        add 1 to {punch::%player's uuid%}

Command usage: /multi <player> <multiplier amount> <punches until it runs out>
e. g.: /multi Minecoll_YT 2 20 (it would give me 2x the points for 20 punches)

Thank you for the help!
 
Status
Not open for further replies.