Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeServer APIGenerated

SpellDefinitionInput

Defined in: server/api.d.ts:5993

What Spells.define takes.

readonly base: string

Defined in: server/api.d.ts:6002

The player spell whose class it runs (projectile, effects, cast animation), as in its DA_SpellRecord, e.g. “Confringo” or “Glacius”.


optional description?: string

Defined in: server/api.d.ts:6027

The spell menu’s description text, at most 300 bytes. Omitted: none.


optional icon?: string

Defined in: server/api.d.ts:6012

A PNG for its symbol, as “/.png”: a file in that resource that its files ships to clients. Omitted: the base spell’s.


readonly id: string

Defined in: server/api.d.ts:5997

The new spell’s id: 3 to 32 characters, a letter then letters, digits or ‘_’. Not an existing game spell.


optional incantation?: string

Defined in: server/api.d.ts:6032

What the caster says: another player spell’s line, e.g. “Incendio”, or “none” for silence. Omitted: the base spell’s.


optional name?: string

Defined in: server/api.d.ts:6022

The title the game shows in its spell menu and spell bar, at most 48 bytes. Omitted: the id.


optional parts?: SpellParts

Defined in: server/api.d.ts:6017

Parts taken from other player spells: projectile, onHit, cast, muzzle.


optional record?: string

Defined in: server/api.d.ts:6037

A mod pak’s own SpellToolRecord to run in place of the base’s, as a plugin-rooted Package.Object path. The base still gives its database row, category and symbol, and is what a client without the pak casts. Omitted: the base’s record.


optional stats?: SpellStats

Defined in: server/api.d.ts:6007

Numbers that replace the base spell’s.