#(Niklas) count down

21 messages · Page 1 of 1 (latest)

opal nacelle
#

hey hey.

i want to make a countdown.

you do /countdown 11

it narrates from 11 to 0

how can i do that? i know how to use it but i dont know how i get the "11" in a script and sub 1 each second

lethal rivetBOT
#

(Niklas) count down

lethal rivetBOT
#

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.

opal nacelle
#

i've tried <util.int[<context.message>].sub[1]>

#

but this does not work 😦

versed summit
#

... util.int is not a thing

opal nacelle
#

i know that thats why i am asking what tag i need

versed summit
#

if you want to make the number customizable, you could probably use a foreach loop

#

subtract the loop number from the starting number within it

#

!c foreach

tall craneBOT
# versed summit !c foreach
Group

queue

Syntax

foreach [stop/next/<object>|...] (as:<name>) (key:<name>) [<commands>]

Short Description

Loops through a ListTag, running a set of commands for each item.

Description

Loops through a ListTag of any type. For each item in the ListTag, the specified commands will be ran for that list entry.

Alternately, specify a map tag to loop over the set of key/value pairs in the map, where the key will be <[key]> and the value will be <[value]>.
Specify "key:<name>" to set the key definition name (if unset, will be "key").

Specify "as:<name>" to set the value definition name (if unset, will be "value").
Use "as:__player" to change the queue's player link, or "as:__npc" t...

opal nacelle
#

how do i use it

versed summit
#

sorry not foreach, use repeat

#

!c repeat

tall craneBOT
# versed summit !c repeat
Group

queue

Syntax

repeat [stop/next/<amount>] (from:<#>) (as:<name>) [<commands>]

Short Description

Runs a series of braced commands several times.

Description

Loops through a series of braced commands a specified number of times.
To get the number of loops so far, you can use <[value]>.

Optionally, specify "as:<name>" to change the definition name to something other than "value".

Optionally, to specify a starting index, use "from:<#>". Note that the "amount" input is how many loops will happen, not an end index.
The default "from" index is "1". Note that the value you give to "from" will be the value of the first loop.

To stop a repeat loop, do - repeat stop

To jump immediately to the next number in the loop, do - repeat next

versed summit
#

you can use the <[value]> tag to get the current loop number

#

just subtract that from the starting number, add one, and you'll get the new value

opal nacelle
#

i have now added this to an inventory command but it sets me the items also in foot and leggings

#

newer mind i am just too dump to count xD