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
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:
Filled:
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):
- Your code must work with any size or shape area. Areas are not square and sometimes spin off into rooms.
- You must provide a way for me to know where you're starting from. So for example: using a command + location of player, right click on sign + location of player, right click on sign + event-location
Tips:
- Make it easy for me to change the block which is filling. Constantly repeating "set {_block} to 1", isn't going to be good.
- Be smart about how I can get out if the area is being filled
- Try not to crash my server
I have done this before and the code works well. It uses no addons and is 31 lines long (including some if checks etc).
How answers will be judged:
Unlike others, the winner for this one, will be judged based on quality. I and others (who I'm yet to pick), will go around and find the best answers. I'm not sure on the specifics of how the scoring will work, the final judgement and most other things, but I've got a week to figure that out!
Important
If you don't understand how your answer will be judged here is an explanation:
Better code quality = more points. I'm very anti-addon with some things. If you're using an addon for what can be done normally in Skript, then you're not Skripting right. Variable names, code structure, use of functions and code readability matters for this challenge. I'm specifically looking for the best code, not the smallest, but you shouldn't have code that is far too long, otherwise it's unlikely to be efficient.
The closing date is 7 days from now -> 4th of March - have fun!
(I might forget to do the winners, but should close after 7 days).
Welcome to another Skript Challenge!
So here's the third one! If you have any suggestions for #4 or general improvements, let me know
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:
Filled:
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):
- Your code must work with any size or shape area. Areas are not square and sometimes spin off into rooms.
- You must provide a way for me to know where you're starting from. So for example: using a command + location of player, right click on sign + location of player, right click on sign + event-location
Tips:
- Make it easy for me to change the block which is filling. Constantly repeating "set {_block} to 1", isn't going to be good.
- Be smart about how I can get out if the area is being filled
- Try not to crash my server
I have done this before and the code works well. It uses no addons and is 31 lines long (including some if checks etc).
How answers will be judged:
Unlike others, the winner for this one, will be judged based on quality. I and others (who I'm yet to pick), will go around and find the best answers. I'm not sure on the specifics of how the scoring will work, the final judgement and most other things, but I've got a week to figure that out!
Important
If you don't understand how your answer will be judged here is an explanation:
Better code quality = more points. I'm very anti-addon with some things. If you're using an addon for what can be done normally in Skript, then you're not Skripting right. Variable names, code structure, use of functions and code readability matters for this challenge. I'm specifically looking for the best code, not the smallest, but you shouldn't have code that is far too long, otherwise it's unlikely to be efficient.
The closing date is 7 days from now -> 4th of March - have fun!
(I might forget to do the winners, but should close after 7 days).