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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  1. BaeFell
    Created by BaeFell
    Feb 18, 2017
    Hi everyone,

    After remembering yesterday, then forgetting and remembering now, here are the winners of the second skUnity Skript Challenge! There weren't many entries this time (to be honest, it was slightly more complex), but there were some amazing ones anyway! I've also got the medal system up and running, and have created a medal for the people who win a Skript Challenge! The 3 winners from #1 were award their medals earlier.

    Anyway, without further ado, here are the winners:

    In first place is @SwiKZiiK - a French Skripter who created the shortest way of doing it, while not using any loops, addons or splitting!
    Code (Skript):
    1.     set {_num} to "Put your number here."
    2.     length of {_num} <= 2:
    3.         return {_num}
    4.     else if length of {_num} = 3:
    5.         return "%first character of {_num}% hundred and %last 2 characters of {_num}%"
    6.     else if length of {_num} <= 6:
    7.         return "%first (length of {_num} - 3) characters of {_num}% thousand, %subtext of {_num} from (length of {_num} - 2) and (length of {_num} - 2)% hundred and %last 2 characters of {_num}%"
    8.     else if length of {_num} <= 9:
    9.         return "%first (length of {_num} - 6) characters of {_num}% million, %subtext of {_num} from (length of {_num} - 5) and (length of {_num} - 3)% thousand, %subtext of {_num} from (length of {_num} - 2) and (length of {_num} - 2)% hundred and %last 2 characters of {_num}%"
    (while I'm not looking for the shortest, it amazed me and many others on how this one was so simple for the challenge).

    In join-second place is @Rezz - a beautiful and well crafted solution to the challenge. Massively extensive and covers a wide range of features.
    Code (Skript):
    1. options:
    2.     TABLE: number-to-name
    3.     ERROR: [Error]
    6. # Define all masks in a string with pattern:name pairs.
    8. function defineMasksIn(values: text):
    10.     set {_pairs::*} to {_values} split at " "
    12.     loop {_pairs::*}:...
  2. BaeFell
    Created by BaeFell
    Feb 9, 2017
    Hi everyone,

    Welcome to another Skript Challenge! I did post a poll on the first Skript Challenge, and the vast majority of users who voted, liked Skript Challenges!

    So here's the second one! If you have any suggestions for #3 or general improvements, let me know :emoji_slight_smile:

    This Skript Challenge is another number related one! Basically, you must turn numbers into their word versions. Example:
    58654 -> 58 thousand, 6 hundred and 54 OR
    58654 -> fifty-eight thousand, six hundred and fifty-four
    Commas and string formatting isn't important, but extra points for making it pretty

    The rules are as follows (note: rules may change between challenge):
    - Your code must be in [code]<code>[/code] tags so that I can easily read it.
    - You can use addons, but, you're not allowed to use a feature from an addon which does this (don't think any do) and the addon must of been released publicly prior to the creation of this thread. So not, you cannot use a feature like "output {_number} in word form" or whatever.
    - You can use another user's code, but please don't edit your messages. I can see all message history and you'll not be counted at all. Remember: this one is about quality, not just length. So trying to cut variable names from someone elses code will lose points!
    - WebAPI's or using an external source (outside of Skript), to get your result in not allowed. All submissions must actually do the conversions themselves.

    Challenge details (specifics about this challenge):
    - Your code must accept any length of number inputted from 0 to 999 million (if you can easily support higher, go for it).
    - You do not have to message it back to the player
    - It can be a function, command or just a block of code. Just explain where you're getting the input if it's not obvious to me.

    How answers will be judged:
    Unlike others, the...
  3. BaeFell
    Created by BaeFell
    Feb 6, 2017
    Hi everyone,

    After remembering it's Monday and that I hadn't posted the winners of the first Skript Challenge, I've just done it now. Woo! :emoji_grinning:

    I've slightly changed the judgement, because there were a variety of answers and like, only 2 people followed the exact rules :emoji_rolling_eyes:.

    In first place is @it_twit with the shortest length:
    Code (Text):
    2. regex replace "(?<=\d)(?=(\d{3})+(?!\d))" with "," in {_integer}
    In second place is @Snow-Pyon with the code that got @it_twit first:
    Code (Text):
    2. regex replace "(?<=\d)(?=(\d\d\d)+(?!\d))" with "," in {_integer}
    In third place is @Sylfare with code that doesn't require any addons but is compact:
    Code (Text):
    2. set {_r} to "%{_number}%"
    3. set {_t} to ""
    4. loop round up length of {_r} / 3 times:
    5.     set {_l} to the last 3 characters of {_r}
    6.     set {_r} to the first length of {_r} - 3 characters of {_r}
    7.     if loop-number = 1:
    8.         set {_t} to "%{_l}%%{_t}%"
    9.     else:
    10.         set {_t} to "%{_l}%,%{_t}%"
    There is currently no prizes, but @xXAndrew28Xx might have a prize, apparently. I'm looking at getting some sort of medal system or something to reward people.

    Hope you all enjoyed this Skript challenge! If you have an idea for the next one, PM me and I'll see what I can do.

  4. BaeFell
    Created by BaeFell
    Feb 6, 2017
    Hi everyone,

    After messing around with the Resource addon, and even ending up PMing 13 random users, I've managed to add a feature which will now send a PM when a resource is approved or denied. The PM is automatically sent by @skUnity, the PM is locked for both approved and denied PM's (as we don't monitor activity on the @skUnity account). The denied PM also includes a link to the Resource Standards.

    The idea behind the automatic PM system is that when you submit a resource, you're told straight away if it was approved or denied, and don't have to keep checking the status of it.

    Future plans:
    - Option to enable/disable this feature
    - Reason as to why your resource was denied
    - Got an idea? Suggest it below.

    If you have any questions, just let me know.

  5. itismejoey
    Created by itismejoey
    Feb 2, 2017
    Hello there,

    It is with deep sadness to inform you that I will be stepping down from the skUnity staff team. I have moved on from my previous career, as a freelance graphic/web designer, and started a new career that will take away most of the free time that I used to have. It also comes at a time where I have begun to lose interest in the Minecraft gameplay. I personally never enjoyed playing Minecraft, but instead found a love creating the gameplay for others. Unfortunately, that love has died over the past few months. It is because of those reasons that I have decided to move on from the Minecraft community all together.

    I have met so many awesome people in this community and I still care so much about it. I know that this comes at a time when the forums are undergoing a huge change and shortly after @BaeFell announced me as becoming an admin. Because of the timing, I have agreed to stay on as a support staff member and help out as needed.

    If you have any questions or anything, please feel free to reply or PM me (on here or Discord).

    Thank you.