Is this not supported? I seem to be completely unable to store a duration in a variable unless I state that duration explicitly in the skript;
Try this with 3 seconds as your first argument; It should return "2 seconds"
I've also attempted to parse it as duration and timeperiod
It seems that it's unsupported, but I figured I'd check here to see if it's simply me not knowing about a syntax or something.
For reference, the following skript does work as expected, which confirms that variables can definitely store durations:
Would greatly appreciate any help!
code_language.skript:
command /duration <string>:
trigger:
set {_old} to now
wait 5 seconds
set {_time} to arg 1 parsed as time period
message "%difference between {_time} and difference between {_old} and now%"
I've also attempted to parse it as duration and timeperiod
It seems that it's unsupported, but I figured I'd check here to see if it's simply me not knowing about a syntax or something.
For reference, the following skript does work as expected, which confirms that variables can definitely store durations:
code_language.skript:
command /durationfixed:
trigger:
set {_old} to now
wait 5 seconds
set {_time} to 3 seconds
message "%difference between {_time} and difference between {_old} and now%"
Would greatly appreciate any help!