#(space.slayer) Flag expiration

15 messages · Page 1 of 1 (latest)

small crane
#

so i have given the player flag for (lets say) 10 minutes, but to make an if statement that if the time reaches 5 minutes it narrates something.

    - narrate "5"``` something like this
wise sinewBOT
#

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.

frozen eagle
#

!c wait

pseudo hillBOT
# frozen eagle !c wait
Group

queue

Syntax

wait (<duration>) (queue:<name>) (system/{delta})

Short Description

Delays a script for a specified amount of time.

Description

Pauses the script queue for the duration specified. If no duration is specified it defaults to 3 seconds.
Accepts the 'queue:<name>' argument which allows the delay of a different queue.

Accepts a 'system' argument to delay based on system time (real-world time on a clock).
When that argument is not used, waits based on delta time (in-game time tracking, which tends to vary by small amounts, especially when the server is lagging).
Generally, do not use the 'system' argument unless you have a specific good reason you need it.

small crane
# frozen eagle !c wait

wait wont work - what im trying to do is
if the remaining time is 5m it narrates smth, while 4m narrates something else

frozen eagle
#

the moment you flag someone with 10minutes

#

you can just wait 5minutes

#

after waiting 5minutes you can narrate to them and again wait xminutes

small crane
#

thats the thing.. it wont narrate unless the player clicks a certain block (dirt) so based on the dirt click, it checks how many mins are left

frozen eagle
#

oh then you can just

#

!t flag_expiration

pseudo hillBOT
frozen eagle
#

!t <FlaggableObject.flag_expiration[<flag_name>]>

pseudo hillBOT