Reset at week day

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

vitusverden

Active Member
Aug 16, 2017
50
2
8
25
Okay, so I am coding an ontime skript, and I need it to reset a variable every Monday. But only one time a day, and it should always be at 12 o'clock.


How am i going to do that?
 
"on/at time" can only be used for minecraft world time. you have to set up a clock "every minute/hour/etc" that checks %now% for the current day of the week and current time (which can only be done with skutilities afaik)

from skutilities:
code_language.skript:
    ExprDateInner:
        ID: ExprDateInner
        Return type: Text
        Changers:
            none
        Patterns:
            [skutil[ities] ](0¦year|1¦month|2¦month name|3¦day of year|4¦day of month|5¦day of week|6¦day name|7¦hours|8¦minutes|9¦seconds) from date %date%
            [skutil[ities] ]date %date%'s (0¦year|1¦month|2¦month name|3¦day of year|4¦day of month|5¦day of week|6¦day name|7¦hours|8¦minutes|9¦seconds)
 
Status
Not open for further replies.