Skript that changes outcome of a command everyday

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

SamuelCH

Member
Dec 18, 2021
1
0
1
22
I need a skript that changes the command that it executes every day.

What i tried doing:

command shoptest:
trigger:
make the player execute command "/testshop"
wait 15 seconds
command shoptest:
trigger:
make the player execute command "/testshop2"

I know this skript is horrible, i'm really new.

So when the player executes "/shoptest" it makes the player execute command "/testshop" and the next the when the player executes the same command "/shoptest" now it makes the player execute "/testshop2" instead.
 
Try this. I have not had time to verify.
The "wait 15 seconds" is useless. You also can't register a command twice.

Code:
command /shoptest:
    trigger:
        {shoptest::%player%} is true:
            make player execute command "testshop2"
        else:
            set {shoptest::%player%} to true
            make player execute command "testshop"