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 25, 2017
    Hi everyone,

    Welcome to another Skript Challenge!

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

    This Skript Challenge is kinda mathematical, but mostly around being smart with how your script works. The task is to create a way for me to fill an area. The area fill must be suitable for any size or shape area. The areas will be completely closed in (so no holes in walls etc). Example:

    [​IMG]
    Filled:
    [​IMG]
    There are no holes in the walls, floor or ceiling (apart from an open door but they're classed as a block). But also note the odd shape. This is just an example, areas can be very complex.

    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.
    - You cannot use a feature like "fill area from location of player" 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.
    - You can use an addon to place blocks, but not to fill the area.
    - You must list all addons used. I will be testing on Spigot 1.11.2.

    I might add a rule after a submission has been made, it's up to me whether or not that submission is valid. I can deny any submission for any reason.

    Challenge details (specifics about this challenge):
    -...
  2. BaeFell
    Created by BaeFell
    Feb 19, 2017
    Hi everyone,

    It feels like I've already posted this thread before... but we've done it again! skUnity Forums has hit 1,000 members! The 1000th was at 2:40pm (GMT) today! @SchnapsKy. There are now 97 new users from them at the time of this thread because xenForo takes a while to actually update statistics.

    What is crazy is that it has only taken us less than a month to get this level of users back to the forums. I understand completely that it was a difficult process of downtime, a (failed) move, downtime and a wipe. But eventually everything has turned out ok! xenForo is treating us great and the community is expanding rapidly.

    A huge thank you to everyone who has been a part of the community, here's to another 1,000!

    Another huge thank you from,
    BaeFell and the rest of the skUnity Forums Team...
    @Wrong, @Sashie, @Gatt, @Mr_Simba, @Tuke_Nuke, @xXAndrew28Xx, @Blitz and @TonyMaster21 :emoji_heart:
  3. 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}%"
    10.  
    (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]
    4.     ENABLE_LARGE_NUMBER_NAMES: true
    5.  
    6. # Define all masks in a string with pattern:name pairs.
    7.  
    8. function defineMasksIn(values: text):
    9.  
    10.     set {_pairs::*} to {_values} split at " "
    11.  
    12.     loop {_pairs::*}:...
  4. 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!
    [​IMG]

    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...
  5. 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):
    1.  
    2. regex replace "(?<=\d)(?=(\d{3})+(?!\d))" with "," in {_integer}
    3.  
    In second place is @Snow-Pyon with the code that got @it_twit first:
    Code (Text):
    1.  
    2. regex replace "(?<=\d)(?=(\d\d\d)+(?!\d))" with "," in {_integer}
    3.  
    In third place is @Sylfare with code that doesn't require any addons but is compact:
    Code (Text):
    1.  
    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}%"
    11.  
    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.

    Thanks,
    BaeFell
  • About Us

    Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.
  • Support skUnity

    The staff team works very hard to make sure the community is running its best. This means constantly performing upgrades to systems and other features. This does cost a bit of money to keep doing. Donating to skUnity would allow the server to keep running smoothly for years to come!

    Support Us!
  • Join Our Discord

    Discord is an all-in-one voice and text chat for gamers that’s free, secure, and works on both your desktop and phone.