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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Variables in lists?

Discussion in 'Skript' started by WeakBrainStorm, Sep 26, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. WeakBrainStorm

    Joined:
    Sep 2, 2021
    Messages:
    13
    Likes Received:
    0
    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 (Text):
    1. on left click on yellow wool:
    2.     set {punch.%player%} to {punch.%player%} * 2
     
  2. Best Answer:
    Post #2 by Minecoll_YT, Sep 26, 2021
  3. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    40
    Code (Text):
    1. command /multi <player> <integer> <integer>:
    2.     trigger:
    3.         set {multi::%arg-1's uuid%::amount} to arg-2
    4.         set {multi::%arg-1's uuid%::left} to arg-3
    5.  
    6. on left click on yellow wool:
    7.     if {multi::%player's uuid%::amount} is set:
    8.         if {multi::%player's uuid%::left} is more than 0:
    9.             remove 1 from {multi::%player's uuid%::left}
    10.             set {punch::%player's uuid%} to {punch::%player's uuid%} * {multi::%arg-1's uuid%::amount}
    11.         else:
    12.             delete {multi::%arg-1's uuid%::*}
    13.             add 1 to {punch::%player's uuid%}
    14.     else:
    15.         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)
     
  4. WeakBrainStorm

    Joined:
    Sep 2, 2021
    Messages:
    13
    Likes Received:
    0
    Thank you for the help!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...