variables

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

  1. M

    Help with variables

    Hi, I want to make sellchest skript with variables but don't know how to make for more placed chest to work the same way as first one. So I can do like this: on place of chest: set {location::%player%} to location of event-block but how can I make like for player to place maximum 5 of them...
  2. Ronnoc2w

    Solved Add variables to variables

    Hello guys I wanted to make a token system but I cannot add a custom number to a variable :/ Here is my code: (Problem in line 9) command /eco [<text>] [<text>] [<text>]: trigger: if player has permission "tokenapi.eco" or "tokenapi.*": if arg-1 is set...
  3. Blowing up time

    Solved Skript Variables like %player%

    Is there a list of skripts default variables like %player%? if so is there a link to it? All help appreciated.
  4. T

    Solved List of skript placeholders to use?

    Hello, So I am making a hub skript with a scoreboard. I want people to be able to edit this easily by using placeholders. I know there are a few possible in skript like %player% and to get the world of a player and stuff. But is there somewhere a list with all placeholders built in to Skript...
  5. C

    Problem With Variables

    i am trying to recreate parts of skyfactory like silkworms and i have tried to do it but i can't get it to work properly on right click: if {Running} is equal to 1: if targeted block is oak leaves: if distance between targeted block and player is less than or equal to 5...
  6. E

    Every {variable} seconds not working

    I was working on a skript that would make a broadcaster to say certain things. However, I came across a bug with when I wrote "Every {duration} seconds:". It says that it cannot understand this event. Here is the code: every {duration} seconds: if {active} is "true": set...
  7. T

    Solved Shop

    I have a /shop command on my server and when you click on the first item in it it will remove 100 from {gold::%player%} and add 1 to {GPC::%player%} what i want is when you right click on a gold block it will give you the amount of gold that your GPC is (ex GPC = 5 add 5 to gold when right...
  8. L

    Solved Setting A Clicked Item's Name To A Variable

    Ok, so for some background, I'm currently working on a waypoint system for my server, where there's a large room at spawn with the entire floor made up of maps on item frames, and ideally if someone were to click on a specific map tile they would teleport to a spot on that tile. The best way I...
  9. E

    Help with Minigame script!

    Hello Guys, im from germany and my English is maybe a little bit bad but my Problem is that i dont know how to write a script who player's can join a lobby (/join server1) and with example 4 players in this lobby the game starts. i dont know how to write that i need help pllsssssss.
  10. T

    I got some problems with variables in flatfile.

    Hi there! :) I got some problems with variables in flatfile, because they duplicating all the time :/ This it how it looks :/ zlotowki::<player>, long, 0000000000000000 zlotowki::therazerpl, long, 000000000000000A zlotowki::therazerpl, long, 0000000000000014 zlotowki::therazerpl, long...
  11. J

    Write Variables in .yml file

    I want to write variables (%loop-player%) to a .yml file. I have made this script: on load: ...wait 2 seconds ...if file "plugins/ProDuels/scoreboard.yml" doesn't exists: .........create file "plugins/ProDuels/scoreboard.yml" .........wf "line 3: '&3» &7&lNick &c%loop-player%'" to...
  12. CustomWorldYT

    Solved Skript help - Defining multiple list variables in "contains"

    Skript Version: 2.2 dev36 (latest) Skript Author: Bensku Minecraft Version: 1.12 I'm trying to do ranks for my FreeOP server in Skript. I can't use permissions, because it's FreeOP (where everyone is opped). I have in game command for setting rank. But now I want to define multiple list...
  13. CustomWorldYT

    Solved Skript help - If list variable contains...

    Skript Version: 2.2 dev36 (currently latest, downloaded from: https://github.com/SkriptLang/Skript/releases) Skript Author: CustomWorldYT (Me) Minecraft Version: 1.12.2 Spigot I'm trying to do an IP check system for my staff, my server is FreeOP and so it's running offline mode. The problem is...
  14. CustomWorldYT

    Solved Placeholders + Variables

    I'm developing Skript, and I want a command to edit messages of plugin in-game, because not every person is friend with Skript's options. I'm using variables to save pieces of messages, that can be edited in-game using command "/edit prefix &a&lNew Prefix &b&l>>" (for example). But now, I want...
  15. Duoquote

    i don't understand why it gives me an error

    I am trying to put this text file: hello this is --- a test into pages::%pagecount% variable where "---" means a new page but it's not working. I am curious about whether we can put %variable% in another {variable::%variable%} or not. on load: set {text::*} to file contents of...
  16. K

    Setting slots to item variables...?

    Skript Version: dev34 Skript Author: Klyser8 Minecraft Version: 1.12.2 --- Full Code: on inventory click: if clicked type is right mouse button: if name of event-inventory contains "Booth": if event-slot is not air: if event-slot is not diamond hoe:85...
  17. A

    Help with variables

    Which are the differences between {xp.%player%} and {xp::%player%} ? I don’t understand
  18. A

    Solved Transfer variables from skript to skript

    I have a skrip with a variable {xp.%player%} but I need the same variables for another skript.... is possible to import it? In case, how to? Ps sorry for my bad English
  19. Aidanete

    Solved How I can make a variable inside a variable?

    I had another problem, a little bit harder this time. I want to make the player to be teleported to a warp when the player rightclick a block. The problem is that I need to execute this code that needs a variable inside a variable. teleport the player to {wm.warp.%wm.placedwarp%targeted block%%}...
  20. Aidanete

    Solved How I can show a variable value in a message or text

    I'm trying to show the value of a variable in a message like: {var.player} is 1 message "player is {var.player}" and get in the game "Player is 1" I want to make a message show a variable but the message shows the variable name instead. I don't know why. Here one of the failing code: message...