Solved Can i set minutes to variable?

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

what do you mean by "minutes"? If you're talking about the current minutes then yes, you can in the following way:

code_language.skript:
#skUtilities
set {_minutes} to minutes from date now

#WildSkript
set {_minutes} to minutes

#Umbaska 3
set {_minutes} to minutes of now

#Vanilla Skript
#You would have to change this adjusting it to the format you have in your config.sk
#The following uses the default one
set {_time::*} to ("%now%") parsed as "%number%/%number%/%number% %number%:%number%"
set {_minutes} to {_time::4}

#Vanilla Skript Nº2
set {_time::*} to split "%now%" by " "
#Again, you would change this dependant of your config.sk, this one uses the default format
set {_hour::*} to split {_time::2} by ":"
set {_minutes} to {_hour::1} parsed as number

But if you're talking about, minutes, like timespan, it's as simply as do:
code_language.skript:
set {_minutes} to 5 minutes #Can be how many minutes you want it to be.
 
what do you mean by "minutes"? If you're talking about the current minutes then yes, you can in the following way:

code_language.skript:
#skUtilities
set {_minutes} to minutes from date now

#WildSkript
set {_minutes} to minutes

#Umbaska 3
set {_minutes} to minutes of now

#Vanilla Skript
#You would have to change this adjusting it to the format you have in your config.sk
#The following uses the default one
set {_time::*} to ("%now%") parsed as "%number%/%number%/%number% %number%:%number%"
set {_minutes} to {_time::4}

#Vanilla Skript Nº2
set {_time::*} to split "%now%" by " "
#Again, you would change this dependant of your config.sk, this one uses the default format
set {_hour::*} to split {_time::2} by ":"
set {_minutes} to {_hour::1} parsed as number

But if you're talking about, minutes, like timespan, it's as simply as do:
code_language.skript:
set {_minutes} to 5 minutes #Can be how many minutes you want it to be.
Thanks for help. And i meant it first like a time.