function

  • 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. T

    Function cant compare passed text to "string"

    i am trying to make chatcolor but there is some error in the function i have when i am trying to compare a argument passed to the function with text the argument is passed as text would be nice if anyone can help me ty Skript: newest 2.3 function Error: Can't compare "%{_c}% with a text (if...
  2. L

    Enchantment level through variable.

    Hello :emoji_slight_smile: I'm using a function through a GUI to declare the level of an enchantment, but this variable can have a lot of different values (from 0 to 36) and I wouldn't be able to list every single enchantment on the code, therefore I have to use this code: enchant {_p}'s tool...
  3. PatoFrango

    Key Generator

    This function generates a random key (using numbers and lower, upper case letters) with a given amount of characters. Code: function genKey(l: number) :: text: set {_abc} to "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuYvVwWxXyYzZ" loop {_l} times: set {_t} to random integer...
  4. Spartan9802

    subroutine and function

    Hello, I would like to know the difference between a subroutine and a function, can it be executed async?
  5. D

    Functions not working

    Minecraft Version:1.8 --- Full Code: function myFunction(p: player): set helmet of {_p} to leather helmet Errors on Reload: myFunction(p: player) is not a text So I got another error that I just can't find a solution to. I've tried to make the p in player capitalized but that doesn't...
  6. K

    Functions

    Functions do not return antything only SkQuery 3 do that but is bugged and can't return multiple varaibles only 1 Maybe a addon for Functions support
  7. A

    Location At Expression

    Recently I noticed that the location at expression is said to be broken. Location At Allows to create a location from three coordinates and a world. "This expression is currently not parsed correctly, and there is no ETA on a fix yet." – http://skunity.com/expressions#LocationAt. Has the...
  8. glowgrew

    Solved ColorRandomizer

    Category: ChatDesign Suggested name: ColorRandomizer What I want: I would like a chat script, which making chat more colourful and simple. On every message it randomize the main color. It can be a function. Ideas for commands: - Ideas for permissions: - When I'd like it by: - @BrettPlayMC...
  9. FUZIK

    Solved Help(functions).

    There are two functions: start and startWait. function startWait(0:int=0): broadcast "startWait" start(0) function start(0:int=0) broadcast "start" startWait(0) The function "startWait" does not see the function "start'. how to solve such a problem.
  10. 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...
  11. FistoF

    Solved Faster Ladder Climbing

    Category Suggested Name Faster Ladder Climbing What I want A simple script that allows Players go up and down ladders much faster (with Levitation or push, maybe). Look straight up to go up the ladder (a bit like in Counter-Strike). Look straight down to go down the ladder. Ideas for Options...