AbilitiesOptions
What abilities() takes.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
castsPerSecond? |
number |
20, defaultPredictedCommandsPerSecond |
Casts a player may send each second, past a burst of two, above 0 and up to 60: a guard against a flood, not a game rule, since an ability’s cooldown and cost are what limit its casts. A cast past it is refused too-fast. Set it to at least twice the fastest a player can honestly press, and leave it alone otherwise. |
cycleTargetKeys? |
readonly KeyCode[] |
["Tab"] |
The keys that pin the next hostile target in front for <Targeting>, as KeyboardEvent.code names them: the page action abilities.actions.cycleTarget, in the game’s key table like the slots’. [] frees Tab for a game that draws no <Targeting>. |
keys? |
AbilityBarKeys |
["Digit1", "Digit2", "Digit3", "Digit4"] |
The key that presses each slot of <AbilityBar>, as KeyboardEvent.code names it, in slot order: up to the four the fan holds and one more for its primary. Each is a page action, abilities.actions.slot1 to slot5, in the game’s key table, so a key another binding holds is refused as the world is made and the player’s talk key never takes one. |
kinds? |
readonly AbilityHandle[] |
undefined |
The abilities the world installs, each from defineAbility, so a character may be given one and a page in a room draws and predicts its casts: [frostNova, arcaneBolt], installed on the room and on every page. A plugin that owns an ability installs it with registerAbility in its setup instead. |