#Daily Streak Function

20 messages · Page 1 of 1 (latest)

alpine solstice
#

Ok, im kinda lost and i have everything ready and have it in mind, but i can't figure out if they log on at least once each day and claim if it doesnt it resets? (not asking for answer just a rather hints towards the answer) i had the idea that has something to do with flags

silk jackalBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

river thicket
#

For a daily streak, I usually flag the player with the current day of their streak, which expires in 1.5-2 days

#

I usually do 2 flags, their streak progress, and a cooldown flag

#

so if a player was to claim his first day, id flag them with a streak_progress:++ which expires in however long you want (i'd go for a day and a half at least) and a streak_claim_cooldown which expires in a day

#

So if i tried to claim day x, I'd check if it's the next day in the streak progress, and if the player has a cooldown flag

graceful cave
alpine solstice
#

Alr

#

Thanks i got na idea that would work

#

An

graceful cave
#

If this is resolved then

golden tulipBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@alpine solstice

alpine solstice
#

alr well 1 more thing

#

how can i setup a 24h timer? like even if they arent on the 24 hours

alpine solstice
#

ah mb forgot to give more background to this

graceful cave
#

You can set the flag to expire in 24h if that's what you meant

alpine solstice
#

when a player joins it sets a 24 hour timer which should be active while even offline and only for the specific player and if they rejoin after already have the timer it does nothing

#

the last part can be done with a flag but just the first part of setting it