Solved Console Executes Random Commands from List of Commands

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

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

khelpire

Member
Feb 22, 2021
4
1
3
25
Hello everone, I am really new to skript, I am planning to let console do a single random command among a list of commands after every certain amount of ticks. Here is what I got so far.

make console execute command "/cmd1"
make console execute command "/cmd2"
make console execute command "/cmd3"

does anyone know how or what code should I use for this to work?

so in every certain number of ticks, the console will execute a single command from the list of 3 commands above. will really appreciate the help alot! thanks!
 
Code:
every ?? ticks:
    set {_x} to random integer between 1 and 3
    make console execute command "/cmd%{_x}%"
Eventually, you can use conditions:
Code:
    if {_x} = 1:
        make console execute "myfancycommand"
    else if {_x} = 2:
        make console execute "myuglycommand"
    else if {_x} = 3: #or just else:
        make console execute "something"
 
Okay thank you so much! will try this out and will provide a feedback here after trying but I think this is what I really need. Thank you appreciate the help alot!
[doublepost=1613984946,1613984331][/doublepost]every 60 ticks:
set {_x} to random integer between 1 and 3
if {_x} = 1:
make console execute "broadcast test 1"
make console execute "broadcast test 1 + 1"
else if {_x} = 2:
make console execute "broadcast test 2"
else if {_x} = 3: #or just else:
make console execute "broadcast test 3"

okay just tested it and it works 100% pretty well! thank you once again :emoji_slight_smile:
 
Status
Not open for further replies.