#Small question regarding menu
1 messages · Page 1 of 1 (latest)
I mean, what are you using to do this?
Its a deluxe menus gui I’m doing in a yml file, but honestly idek what specifically it is as I’ve only been doing this for 2 weeks. I’ll send the equation I’m using to see if that helps.
%math_0:_((({deluxemenus_meta_REWARD-1-PLAYTIME_INTEGER_0}+1440-{statistic_minutes_played})/60)-(23-({statistic_hours_played}-{deluxemenus_meta_1-HOURS_INTEGER_0})))*60%
This is the equation to calculate the minutes remaining, as this is a repeatable playtime reward using meta
I think you should stick to storing only one statistic
I would recommend minutes played, or whatever your lowest number needed is
and use that for everything
vs storing seconds, minutes, hours, etc.
but i could be wrong
not sure what {deluxemenus_meta_1-HOURS_INTEGER_0} is actually, Im thinking your storing the hours and minutes played which is why I wrote all of the above, but now I'm not sure
the reason you get 60 is because you end up subtracting 23 from 24
and multiplying it by 60
I plugged in 0 as my number to test against