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

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

  1. 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...
  2. FUZIK

    Solved variables

    how difference between ""delete {list::*}" and "clear {list::*}"?
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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?
  10. 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...
  11. 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
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. YourMCAdmin

    Solved Nesting variables within option nams

    Skript Version:2.2-dev23 Skript Author:Bensku Minecraft Version:1.11.2 Bare with me here when I try to explain what I mean and what I'm doing. I want to know if it's possible (or if anyone can think of a work around) to use a variable later in the code to call an option. As you will see I'm...
  17. Kamino_Ramos

    Chat placeholders, possible?

    I want to create my own clan system, and everything seems pretty clear but one thing, clan tags in chat. Idea is, similar to SimpleClans, leader of clan can choose clan tag, maximum of 3 symbols (color codes not in count), and this tag will be displayed near nickname of clam members, and if...