LocalPlayerWand
Defined in: client/api.d.ts:4138
The local player’s wand. Equip state and style are replicated, so remote players see both. Every mutator returns a status code: “OK”, or WAND_UNKNOWN_STYLE / WAND_NONE / WAND_UNAVAILABLE / WAND_FAILED.
Methods
Section titled “Methods”equip()
Section titled “equip()”equip():
string
Defined in: client/api.d.ts:4147
Draws the wand, and holds it drawn: the request is pinned above the idle that would otherwise stow it, but below casting and cutscenes, so those still take the arm and the wand returns afterwards.
Returns
Section titled “Returns”string
isEquipped()
Section titled “isEquipped()”isEquipped():
boolean|null
Defined in: client/api.d.ts:4142
Whether the wand is drawn, read from the right-arm state the body is actually playing. null without a pawn.
Returns
Section titled “Returns”boolean | null
setStyle()
Section titled “setStyle()”setStyle(
style):string
Defined in: client/api.d.ts:4173
Changes which wand the player carries and persists the choice. Refused for a row the table doesn’t have, because the game writes the saved style before it validates anything.
Parameters
Section titled “Parameters”string
A row key from styles(); matched case-insensitively.
Returns
Section titled “Returns”string
style()
Section titled “style()”style():
string
Defined in: client/api.d.ts:4157
The DT_CustomWandStyle row the wand actually renders (e.g. “T003_M01_H007_M02”). Empty only before the pawn is up, or on a character that has never been given one.
Returns
Section titled “Returns”string
styles()
Section titled “styles()”styles():
string[]
Defined in: client/api.d.ts:4162
Every wand style the game’s own table offers — 1034 rows in the stock game, plus anything a UGC mod added. Empty until the player’s wand exists, since the table is reached through it.
Returns
Section titled “Returns”string[]
unequip()
Section titled “unequip()”unequip():
string
Defined in: client/api.d.ts:4152
Stows the wand, and holds it stowed. Same priority rules as equip, so a cast still draws it: setCastingEnabled and setAimEnabled hold casting and aim off.
Returns
Section titled “Returns”string