Solved How do you make it random?!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Adrihun

Member
Feb 1, 2017
368
6
0
Okay, so I got this easy script. If you type in /hub, it takes you to hub-1.
Is there a way to randomize it so every minute it changes? So say I do /hub
it takes me to hub-1, then one minute later, it could take me to hub-4, then another
min later, it could take me to hub-3
code_language.skript:
command /hub:
    usage: /hub
    trigger:
        send "%player%" to bungeecord server "hub-1"
 
code_language.skript:
command /hub:
    usage: /hub
    trigger:
        set {_server} to a random integer between 1 and 10
        send "%player%" to bungeecord server "hub-%{_server}%"
 
Last edited by a moderator:
@YoshYz Changed the "send player" part to "broadcast" and it broadcasted numbers like "8.25"
How do i change this?
 
Status
Not open for further replies.