variable

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

    Now, what are you waiting for? Join the community now!

  1. Skaya

    Solved Replace <none> variable

    Hi, Is there a way to Replace the default Skript <none> variable? Thx Skaya
  2. Duetro

    Skript "Variable save thread" error

    [14:40:50] [Skript variable save thread/ERROR]: #!#! [14:40:50] [Skript variable save thread/ERROR]: #!#! [Skript] Severe Error: [14:40:50] [Skript variable save thread/ERROR]: #!#! Exception in thread Skript variable save thread [14:40:50] [Skript variable save thread/ERROR]: #!#! [14:40:50]...
  3. A

    Help with variables

    Which are the differences between {xp.%player%} and {xp::%player%} ? I don’t understand
  4. 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
  5. H

    Solved Teleporting Players to a Location Saved as a Variable

    Skript version and author not applicable. I'm trying to teleport players in two different arrays to a location saved as a variable, but the players are not being teleported. Can someone please tell me why this portion of my Skript isn't working? Thanks! (I've already added players to the...
  6. CreeperOverLord7

    Solved How to detect last in a list variable?

    Basically what the title says, is there a way to detect the last number in a list variable? So for example, I have "Line 1" stored in {example::1} and "Line 2" stored in {example::2}, and so on up to 10. Is there a way to make Skript detect the max is 10 and make it use the value somewhere...
  7. FUZIK

    Solved variables

    how difference between ""delete {list::*}" and "clear {list::*}"?
  8. PotatoGoesMoo

    Solved Changing name of player's held item?

    Hey all, I need help with changing the name of the player's held item. I've tried this with quotation marks in all different places: on rightclick with lead: set {_item} to player's held item add "{display:{Name=Hey}}" to nbt of {_item} But that doesn't seem to work. I don't get any...
  9. T

    Solved Variable inside a variable?

    Skript Version: latest stable version Skript Author: Bensku Minecraft Version: 1.8.8 Hello there, As I described in the title, I am attempting to use a variable inside another variable. I know about {variable.%player%}, but here I think I need something more specific. Anyway, here's my code...
  10. Selvati

    User Specific Inventories

    I know this should be in the request section, but I don't feel that gets looked at enough anymore, so if you've read this far, please do continue and allow me to enlighten you. I am trying to recreate what I like to call Adaptive Inventories, to dumb this term down, inventories/gui's that will...
  11. T

    Setting items from variable

    I've problem with these: set {glowa.%player%} to helmet of loop-player It takes only type of helmet so variable contains e.g. "chainhelmet" it doesn't contain durability or enchants. It should but i have no idea how to do it. set helmet of loop-player to {glowa.%player%} It completely doesn't...
  12. P

    Solved Why is it not working?

    variables: {case} = false {jutalom} = 0 command /case: trigger: if {case} is false: if player's money is more than 9999: set {case} to true remove 10000 from the player's balance broadcast "&5A mágusraktár áldás...
  13. P

    Solved Variables can't hold strings?

    I have this code: on damage: if attacker's tool is a blaze rod named "&5Varázspálca": if {B.%attacker%} = tuz: if {J.%attacker%} = ures: ignite victim for 5 seconds if {J.%attacker%} = tuz: ignite victim for 5 seconds...
  14. M

    Way to cut/sub a string? This should be simple...

    Let's assume I have this code: set {specialString} to "This is a special string" How can I get the last word in that string and set that to a variable?
  15. F

    Solved Random Block in Loop Radius

    Hey! I've been trying to make a skript, but I ran into a problem that I can't solve. (Been using skript for about 2 weeks) How could I loop blocks in radius 5 of player and then select a random block from the looped blocks and I used "on any movement:" from SkQuery, but I'd like to change that...
  16. F

    Variable Server Name

    Hello, Is there a variable for the name of the server The Server name is in the server.properties "server-name=Test-1" Thank you FridiousHD
  17. SoMuchWessel

    List Variables -- Not working

    Hey guys, i did some testing, and i came up with this: on rightclick on sign: line 2 of the clicked block is "test": line 3 of the clicked block is "1": add player to {team::blue::*} #blue execute console command "warp test1 %player%" on rightclick on...
  18. Kamino_Ramos

    Sort variables list by value

    I want to create clan top based on kdr for my clan system. on death: add 1 to {clans::points::%{clans::players::%attacker%}%} # this would be {clans::points::tag of attacker's clan} remove 1 from {clans::points::%{clans::players::%victim%}%} # this would be {clans::points::tag of...
  19. B

    Using variables from function return

    I would like to stop the skript if a permission is negative, but I don't know how to check a value from a function return :emoji_frowning: Her's the code, the real code is more complicated, but I let only the important things, to let you understand it. That's why you could thing that I don't...
  20. J

    Solved HELP - Lists not working!

    Hi! Look at this: command /sounds [<text>] [<text>]: trigger: if arg 1 is not set: send "&d&m---------------------[ &9Sounds &d&m]---------------------" send "&a&o/sounds &7- &6&oShow this help page." send "&a&o/sounds list &7- &6&oList every sound...