Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeClient APIGenerated

SpellLessonDefinition

Defined in: client/api.d.ts:5823

A resource’s own spell lesson. Points are on the lesson’s 1024 x 1024 canvas, x right and y down.

optional art?: SpellLessonArt

Defined in: client/api.d.ts:5862

Hand-drawn art instead of the drawn stroke.


optional chaser?: number | SpellLessonChaser | null

Defined in: client/api.d.ts:5852

Seconds before the bad spark chases: a number is the Normal delay (Easy x2, Hard x0.5, Story none), null is none. Misses only cost speed boosts, so with no chaser the lesson can’t be failed.


optional checkpoints?: SpellLessonCheckpoint[]

Defined in: client/api.d.ts:5842

Up to 16. Default: look’s, or one per ~300 px of a new path (4-10).


optional finalButton?: 2 | 1 | 3 | 4

Defined in: client/api.d.ts:5847

The button shown at the path’s end. Default 1.


optional icon?: string

Defined in: client/api.d.ts:5857

A spell whose spell-bar icon to show, or a PNG among the resource’s client files. Default: look’s.


optional look?: string

Defined in: client/api.d.ts:5832

A stock lesson (supportedSpells) to start from: its path, art, checkpoints, delays and icon.


optional path?: [number, number][]

Defined in: client/api.d.ts:5837

3-65 points, 800-4000 px long in all. Replaces look’s path; its art is drawn from the points unless art is set.


optional stroke?: number

Defined in: client/api.d.ts:5867

Width of the drawn stroke in canvas pixels, 8-160. Default 56, the stock lessons’ width.


title: string

Defined in: client/api.d.ts:5827

Shown as the lesson’s title, up to 128 characters.