Countdowns
A button counts something down on its face: the seconds left of a roundtime, a cast roundtime, an effect, or a spell laid on the room. The countdown is the macro’s, set under Advanced › Counts down on the Macros page, so every button that runs the macro shows the same seconds, in the window, on the web page and in the terminal alike.
What can be counted
| Source | What it counts |
|---|---|
| Roundtime | Your roundtime. |
| Cast roundtime | Your cast roundtime. |
| An effect | The time left of a spell, buff, debuff or cooldown, by its name – as written, or as the start or part of it. |
| A spell on the room | The time left of a spell you laid on this room: Breeze, and the others the room-spell table knows. |
Timers in order
A macro may count several things, in order: the first that is running is shown. A buff’s time while it is up, then its cooldown’s once it has gone, is the usual pair. Each timer has a colour of its own, so the seconds say which they are at a glance – green while the buff holds, red while it cools; with none, the theme’s. + then on the Macros page adds the next timer.
[[macros]]
name = "barrage"
commands = "barrage"
countdown = [
{ source = "effect", category = "Buffs", name = "Enh. Dexterity", colour = "#4caf50" },
{ source = "effect", category = "Cooldowns", name = "Barrage", colour = "#c0392b" },
]
One timer is written as a table, countdown = { source = "roundtime" };
more than one as a list.
A state’s own countdown
A state may count down something else while it holds – Counts down instead under the state – so a button can show a spell’s time while it is up and the roundtime once it is not.
Spells laid on a room
Some spells stay in the room they were cast in and cannot be cast there
again until they end. Hydra knows these by a table, data/room_spells.tsv:
for each, the line that lays it, the line said while it lasts, the line
that ends it, the refusal when you cast it where one already lies, and
how long it lasts by its caster’s level. Breeze is the first row: a level
100’s blows for 297 seconds, in nine-second beats, and ends on the last
beat inside its time.
The time left is known for a spell you laid yourself; one laid by someone else, or only heard by its beats, lasts until its stop line, or at most what a level 100’s would. The countdown uses it, and so does the trigger and macro condition room spell, so a button greys while Breeze already blows here, and a trigger can say when it is about to stop.
A spell not yet in the table is added from the lines seen in play.