Rado?sk

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

Pexien

New Member
Aug 10, 2017
2
3
3
View attachment 3368
Welcome to Rado?sk, Rado?sk is a general purpose Skript API which brings some features that you might not be able to get without addons, such as advanced math calculations, powerful utilities and simpler syntax for a whole host of other amenities.

Installation:
Step 1: Down the the radonsk.sk file from SkUnity
Step 2: Move the radonsk.sk file to your plugins/Skript/scripts/ folder on your server.
Step 3. Run the command /skript reload radonsk

Usage:
If you do not have a basic understanding of how skript functions work, please refer to this tutorial.

Syntax / Documentation:

Math
Mean
The mean is a way of getting a general representation of all of the values in a data set, this is done my adding all of the values and dividing by the total number of values.

Usage: mean(numbers)

Code:
command /dataset <numbers>:
    trigger:
        send "%mean(arg-1)%" to command executor
Mode
The mode of a data set is the number(s) that come up the most.

Usage: mode(numbers)

Code:
command /dataset <numbers>:
    trigger:
        send "%mode(arg-1)%" to command executor
Median
The median is yet another way to find a representation of an entire data set, this is done by ordering all of the values from least to greatest and then selecting the middle value, if there are two middle values, you take the mean of the two values.

Usage: median(numbers)

Code:
command /dataset <numbers>:
    trigger:
        send "%median(arg-1)%" to command executor
Range
The range is the distance between two values on the number line.

Usage: range(numbers)

Code:
command /dataset <numbers>:
    trigger:
        send "%range(arg-1)%" to command executor
Mean Absolute Deviation
The mean absolute deviation of a data set is the average distance between each data point and the mean. It gives us an idea about the variability in a data set.

Usage: mad(numbers)

Code:
command /dataset <numbers>:
    trigger:
        send "%mad(arg-1)%" to command executor
Inverse
This simply inverses the number, if the number is positive it replies with it's additive inverse, or the negative variant.

Usage: inverse(number)

Code:
command /dataset <number>:
    trigger:
        send "%inverse(arg-1)%" to command executor

Utility

Convert Lower Case
Converts all of the capital letters to lower case ones, in the given string.

Usage: convertLowerCase(text)

Code:
command /test <text>:
    trigger:
        set {_output} to convertLowerCase(arg-1)
        send "%{_output}%" to command executor
Convert Upper Case
Converts all of the lower case letters to capital ones, in the given string.

Usage: convertUpperCase(text)

Code:
command /test <text>:
    trigger:
        set {_output} to convertUpperCase(arg-1)
        send "%{_output}%" to command executor
Player Count
Get the number of online players

Usage: playerCount()

Code:
command /test <text>:
    trigger:
        send "%playerCount()%" to command executor
Get online players
Get a list of all of the online players.

Usage: onlinePlayers()

Code:
command /test <text>:
    trigger:
        send "%onlinePlayers(arg-1)%" to command executor
Convert Lower Case
Reloads a script, all, or config.

Usage: skReload(text)

Code:
command /reload:
    trigger:
        skReload("radonsk")
Set Weather
Set the weather in a given world

Usage: setWeather(world, weather type)

Code:
command /sun:
    trigger:
        setWeather(player's world, sun)

Potion Effects

Temp Effect
Give a player a temporary potion effect.

Usage: tempEffect(player, potion effect, integer (amplifier), timespan)

Code:
command /run:
    trigger:
        tempEffect(player, speed, 10, 60 seconds)
Perm Effect
Give a player a permanent potion effect. (until cleared, or death/ milk)

Usage: permEffect(player, potion effect, integer (amplifier))

Code:
command /runforever:
    trigger:
        permEffect(player, speed, 10)
Clear All Effects
Clear all of the player's potion effects.

Usage: clearAllEffects(player)

Code:
command /milk:
    trigger:
        clearAllEffects(player)

Plugin Hooks

CYOM
Create your own menus integration.

Usage: cyom(Open/Edit)(text (menu), player)

Code:
command /open:
    trigger:
        cyomOpen("main", player)

Mine Reset Lite
MRL integration.

Usage: mrlReset(text (mine))

Code:
command /reset:
    trigger:
        mrlReset("coal")