Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

CastControls

Property Type Description
cast (ability) => void Casts the ability, by its handle or its name, at the character’s AbilityTargetTrait. The player’s page starts the cast on the press, as the room will on the same tick: the cost off the player’s bar, the cast bar, the clip and, at the release, the cooldowns. The room alone decides what the release does. At a target past range the character walks into range first, where the ability approaches, and the character turns to face its target as the cast starts. An ability registered predicted: false waits for the room.
refusal Refusal | undefined Why the rules refused the player’s last cast, until the player casts again.
refusalText string | undefined The line to show for the player’s last cast where it did not run: the refusal’s, such as “Out of range” or “Not enough mana”, or the engine’s line from commandRefusalLines for one the engine refused, such as a cast that reached the room too late.